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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Describes the runtime configuration of an App Runner service instance (scaling unit). /// </summary> public partial class InstanceConfiguration { private string _cpu; private string _instanceRoleArn; private string _memory; /// <summary> /// Gets and sets the property Cpu. /// <para> /// The number of CPU units reserved for each instance of your App Runner service. /// </para> /// /// <para> /// Default: <code>1 vCPU</code> /// </para> /// </summary> [AWSProperty(Min=3, Max=9)] public string Cpu { get { return this._cpu; } set { this._cpu = value; } } // Check to see if Cpu property is set internal bool IsSetCpu() { return this._cpu != null; } /// <summary> /// Gets and sets the property InstanceRoleArn. /// <para> /// The Amazon Resource Name (ARN) of an IAM role that provides permissions to your App /// Runner service. These are permissions that your code needs when it calls any Amazon /// Web Services APIs. /// </para> /// </summary> [AWSProperty(Min=29, Max=1024)] public string InstanceRoleArn { get { return this._instanceRoleArn; } set { this._instanceRoleArn = value; } } // Check to see if InstanceRoleArn property is set internal bool IsSetInstanceRoleArn() { return this._instanceRoleArn != null; } /// <summary> /// Gets and sets the property Memory. /// <para> /// The amount of memory, in MB or GB, reserved for each instance of your App Runner service. /// </para> /// /// <para> /// Default: <code>2 GB</code> /// </para> /// </summary> [AWSProperty(Min=3, Max=6)] public string Memory { get { return this._memory; } set { this._memory = value; } } // Check to see if Memory property is set internal bool IsSetMemory() { return this._memory != null; } } }
108
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// An unexpected service exception occurred. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InternalServiceErrorException : AmazonAppRunnerException { /// <summary> /// Constructs a new InternalServiceErrorException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InternalServiceErrorException(string message) : base(message) {} /// <summary> /// Construct instance of InternalServiceErrorException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InternalServiceErrorException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InternalServiceErrorException /// </summary> /// <param name="innerException"></param> public InternalServiceErrorException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InternalServiceErrorException /// </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 InternalServiceErrorException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InternalServiceErrorException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InternalServiceErrorException(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 InternalServiceErrorException 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 InternalServiceErrorException(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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// One or more input parameters aren't valid. Refer to the API action's document page, /// correct the input parameters, and try the action again. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidRequestException : AmazonAppRunnerException { /// <summary> /// Constructs a new InvalidRequestException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidRequestException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidRequestException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidRequestException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidRequestException /// </summary> /// <param name="innerException"></param> public InvalidRequestException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidRequestException /// </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 InvalidRequestException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidRequestException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidRequestException(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 InvalidRequestException 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 InvalidRequestException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// You can't perform this action when the resource is in its current state. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidStateException : AmazonAppRunnerException { /// <summary> /// Constructs a new InvalidStateException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidStateException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidStateException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidStateException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidStateException /// </summary> /// <param name="innerException"></param> public InvalidStateException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidStateException /// </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 InvalidStateException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidStateException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidStateException(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 InvalidStateException 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 InvalidStateException(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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Container for the parameters to the ListAutoScalingConfigurations operation. /// Returns a list of active App Runner automatic scaling configurations in your Amazon /// Web Services account. You can query the revisions for a specific configuration name /// or the revisions for all active configurations in your account. You can optionally /// query only the latest revision of each requested name. /// /// /// <para> /// To retrieve a full description of a particular configuration revision, call and provide /// one of the ARNs returned by <code>ListAutoScalingConfigurations</code>. /// </para> /// </summary> public partial class ListAutoScalingConfigurationsRequest : AmazonAppRunnerRequest { private string _autoScalingConfigurationName; private bool? _latestOnly; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property AutoScalingConfigurationName. /// <para> /// The name of the App Runner auto scaling configuration that you want to list. If specified, /// App Runner lists revisions that share this name. If not specified, App Runner returns /// revisions of all active configurations. /// </para> /// </summary> [AWSProperty(Min=4, Max=32)] public string AutoScalingConfigurationName { get { return this._autoScalingConfigurationName; } set { this._autoScalingConfigurationName = value; } } // Check to see if AutoScalingConfigurationName property is set internal bool IsSetAutoScalingConfigurationName() { return this._autoScalingConfigurationName != null; } /// <summary> /// Gets and sets the property LatestOnly. /// <para> /// Set to <code>true</code> to list only the latest revision for each requested configuration /// name. /// </para> /// /// <para> /// Set to <code>false</code> to list all revisions for each requested configuration name. /// </para> /// /// <para> /// Default: <code>true</code> /// </para> /// </summary> public bool LatestOnly { get { return this._latestOnly.GetValueOrDefault(); } set { this._latestOnly = value; } } // Check to see if LatestOnly property is set internal bool IsSetLatestOnly() { return this._latestOnly.HasValue; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of results to include in each response (result page). It's used /// for a paginated request. /// </para> /// /// <para> /// If you don't specify <code>MaxResults</code>, the request retrieves all available /// results in a single response. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A token from a previous result page. It's used for a paginated request. The request /// retrieves the next result page. All other parameter values must be identical to the /// ones that are specified in the initial request. /// </para> /// /// <para> /// If you don't specify <code>NextToken</code>, the request retrieves the first result /// page. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] 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; } } }
151
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// This is the response object from the ListAutoScalingConfigurations operation. /// </summary> public partial class ListAutoScalingConfigurationsResponse : AmazonWebServiceResponse { private List<AutoScalingConfigurationSummary> _autoScalingConfigurationSummaryList = new List<AutoScalingConfigurationSummary>(); private string _nextToken; /// <summary> /// Gets and sets the property AutoScalingConfigurationSummaryList. /// <para> /// A list of summary information records for auto scaling configurations. In a paginated /// request, the request returns up to <code>MaxResults</code> records for each call. /// </para> /// </summary> [AWSProperty(Required=true)] public List<AutoScalingConfigurationSummary> AutoScalingConfigurationSummaryList { get { return this._autoScalingConfigurationSummaryList; } set { this._autoScalingConfigurationSummaryList = value; } } // Check to see if AutoScalingConfigurationSummaryList property is set internal bool IsSetAutoScalingConfigurationSummaryList() { return this._autoScalingConfigurationSummaryList != null && this._autoScalingConfigurationSummaryList.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token that you can pass in a subsequent request to get the next result page. It's /// returned in a paginated request. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] 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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Container for the parameters to the ListConnections operation. /// Returns a list of App Runner connections that are associated with your Amazon Web /// Services account. /// </summary> public partial class ListConnectionsRequest : AmazonAppRunnerRequest { private string _connectionName; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property ConnectionName. /// <para> /// If specified, only this connection is returned. If not specified, the result isn't /// filtered by name. /// </para> /// </summary> [AWSProperty(Min=4, Max=32)] public string ConnectionName { get { return this._connectionName; } set { this._connectionName = value; } } // Check to see if ConnectionName property is set internal bool IsSetConnectionName() { return this._connectionName != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of results to include in each response (result page). Used for /// a paginated request. /// </para> /// /// <para> /// If you don't specify <code>MaxResults</code>, the request retrieves all available /// results in a single response. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A token from a previous result page. Used for a paginated request. The request retrieves /// the next result page. All other parameter values must be identical to the ones specified /// in the initial request. /// </para> /// /// <para> /// If you don't specify <code>NextToken</code>, the request retrieves the first result /// page. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] 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; } } }
114
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// This is the response object from the ListConnections operation. /// </summary> public partial class ListConnectionsResponse : AmazonWebServiceResponse { private List<ConnectionSummary> _connectionSummaryList = new List<ConnectionSummary>(); private string _nextToken; /// <summary> /// Gets and sets the property ConnectionSummaryList. /// <para> /// A list of summary information records for connections. In a paginated request, the /// request returns up to <code>MaxResults</code> records for each call. /// </para> /// </summary> [AWSProperty(Required=true)] public List<ConnectionSummary> ConnectionSummaryList { get { return this._connectionSummaryList; } set { this._connectionSummaryList = value; } } // Check to see if ConnectionSummaryList property is set internal bool IsSetConnectionSummaryList() { return this._connectionSummaryList != null && this._connectionSummaryList.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token that you can pass in a subsequent request to get the next result page. Returned /// in a paginated request. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] 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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Container for the parameters to the ListObservabilityConfigurations operation. /// Returns a list of active App Runner observability configurations in your Amazon Web /// Services account. You can query the revisions for a specific configuration name or /// the revisions for all active configurations in your account. You can optionally query /// only the latest revision of each requested name. /// /// /// <para> /// To retrieve a full description of a particular configuration revision, call and provide /// one of the ARNs returned by <code>ListObservabilityConfigurations</code>. /// </para> /// </summary> public partial class ListObservabilityConfigurationsRequest : AmazonAppRunnerRequest { private bool? _latestOnly; private int? _maxResults; private string _nextToken; private string _observabilityConfigurationName; /// <summary> /// Gets and sets the property LatestOnly. /// <para> /// Set to <code>true</code> to list only the latest revision for each requested configuration /// name. /// </para> /// /// <para> /// Set to <code>false</code> to list all revisions for each requested configuration name. /// </para> /// /// <para> /// Default: <code>true</code> /// </para> /// </summary> public bool LatestOnly { get { return this._latestOnly.GetValueOrDefault(); } set { this._latestOnly = value; } } // Check to see if LatestOnly property is set internal bool IsSetLatestOnly() { return this._latestOnly.HasValue; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of results to include in each response (result page). It's used /// for a paginated request. /// </para> /// /// <para> /// If you don't specify <code>MaxResults</code>, the request retrieves all available /// results in a single response. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A token from a previous result page. It's used for a paginated request. The request /// retrieves the next result page. All other parameter values must be identical to the /// ones that are specified in the initial request. /// </para> /// /// <para> /// If you don't specify <code>NextToken</code>, the request retrieves the first result /// page. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] 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 ObservabilityConfigurationName. /// <para> /// The name of the App Runner observability configuration that you want to list. If specified, /// App Runner lists revisions that share this name. If not specified, App Runner returns /// revisions of all active configurations. /// </para> /// </summary> [AWSProperty(Min=4, Max=32)] public string ObservabilityConfigurationName { get { return this._observabilityConfigurationName; } set { this._observabilityConfigurationName = value; } } // Check to see if ObservabilityConfigurationName property is set internal bool IsSetObservabilityConfigurationName() { return this._observabilityConfigurationName != null; } } }
151
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// This is the response object from the ListObservabilityConfigurations operation. /// </summary> public partial class ListObservabilityConfigurationsResponse : AmazonWebServiceResponse { private string _nextToken; private List<ObservabilityConfigurationSummary> _observabilityConfigurationSummaryList = new List<ObservabilityConfigurationSummary>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token that you can pass in a subsequent request to get the next result page. It's /// returned in a paginated request. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] 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 ObservabilityConfigurationSummaryList. /// <para> /// A list of summary information records for observability configurations. In a paginated /// request, the request returns up to <code>MaxResults</code> records for each call. /// </para> /// </summary> [AWSProperty(Required=true)] public List<ObservabilityConfigurationSummary> ObservabilityConfigurationSummaryList { get { return this._observabilityConfigurationSummaryList; } set { this._observabilityConfigurationSummaryList = value; } } // Check to see if ObservabilityConfigurationSummaryList property is set internal bool IsSetObservabilityConfigurationSummaryList() { return this._observabilityConfigurationSummaryList != null && this._observabilityConfigurationSummaryList.Count > 0; } } }
80
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Container for the parameters to the ListOperations operation. /// Return a list of operations that occurred on an App Runner service. /// /// /// <para> /// The resulting list of <a>OperationSummary</a> objects is sorted in reverse chronological /// order. The first object on the list represents the last started operation. /// </para> /// </summary> public partial class ListOperationsRequest : AmazonAppRunnerRequest { private int? _maxResults; private string _nextToken; private string _serviceArn; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of results to include in each response (result page). It's used /// for a paginated request. /// </para> /// /// <para> /// If you don't specify <code>MaxResults</code>, the request retrieves all available /// results in a single response. /// </para> /// </summary> [AWSProperty(Min=1, Max=20)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A token from a previous result page. It's used for a paginated request. The request /// retrieves the next result page. All other parameter values must be identical to the /// ones specified in the initial request. /// </para> /// /// <para> /// If you don't specify <code>NextToken</code>, the request retrieves the first result /// page. /// </para> /// </summary> [AWSProperty(Min=0, Max=51200)] 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 ServiceArn. /// <para> /// The Amazon Resource Name (ARN) of the App Runner service that you want a list of operations /// for. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1011)] public string ServiceArn { get { return this._serviceArn; } set { this._serviceArn = value; } } // Check to see if ServiceArn property is set internal bool IsSetServiceArn() { return this._serviceArn != null; } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// This is the response object from the ListOperations operation. /// </summary> public partial class ListOperationsResponse : AmazonWebServiceResponse { private string _nextToken; private List<OperationSummary> _operationSummaryList = new List<OperationSummary>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token that you can pass in a subsequent request to get the next result page. It's /// returned in a paginated request. /// </para> /// </summary> [AWSProperty(Min=0, Max=51200)] 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 OperationSummaryList. /// <para> /// A list of operation summary information records. In a paginated request, the request /// returns up to <code>MaxResults</code> records for each call. /// </para> /// </summary> public List<OperationSummary> OperationSummaryList { get { return this._operationSummaryList; } set { this._operationSummaryList = value; } } // Check to see if OperationSummaryList property is set internal bool IsSetOperationSummaryList() { return this._operationSummaryList != null && this._operationSummaryList.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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Container for the parameters to the ListServices operation. /// Returns a list of running App Runner services in your Amazon Web Services account. /// </summary> public partial class ListServicesRequest : AmazonAppRunnerRequest { private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of results to include in each response (result page). It's used /// for a paginated request. /// </para> /// /// <para> /// If you don't specify <code>MaxResults</code>, the request retrieves all available /// results in a single response. /// </para> /// </summary> [AWSProperty(Min=1, Max=20)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A token from a previous result page. Used for a paginated request. The request retrieves /// the next result page. All other parameter values must be identical to the ones specified /// in the initial request. /// </para> /// /// <para> /// If you don't specify <code>NextToken</code>, the request retrieves the first result /// page. /// </para> /// </summary> [AWSProperty(Min=0, Max=51200)] 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; } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// This is the response object from the ListServices operation. /// </summary> public partial class ListServicesResponse : AmazonWebServiceResponse { private string _nextToken; private List<ServiceSummary> _serviceSummaryList = new List<ServiceSummary>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token that you can pass in a subsequent request to get the next result page. It's /// returned in a paginated request. /// </para> /// </summary> [AWSProperty(Min=0, Max=51200)] 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 ServiceSummaryList. /// <para> /// A list of service summary information records. In a paginated request, the request /// returns up to <code>MaxResults</code> records for each call. /// </para> /// </summary> [AWSProperty(Required=true)] public List<ServiceSummary> ServiceSummaryList { get { return this._serviceSummaryList; } set { this._serviceSummaryList = value; } } // Check to see if ServiceSummaryList property is set internal bool IsSetServiceSummaryList() { return this._serviceSummaryList != null && this._serviceSummaryList.Count > 0; } } }
80
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Container for the parameters to the ListTagsForResource operation. /// List tags that are associated with for an App Runner resource. The response contains /// a list of tag key-value pairs. /// </summary> public partial class ListTagsForResourceRequest : AmazonAppRunnerRequest { private string _resourceArn; /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The Amazon Resource Name (ARN) of the resource that a tag list is requested for. /// </para> /// /// <para> /// It must be the ARN of an App Runner resource. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1011)] 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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// This is the response object from the ListTagsForResource operation. /// </summary> public partial class ListTagsForResourceResponse : AmazonWebServiceResponse { private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property Tags. /// <para> /// A list of the tag key-value pairs that are associated with the resource. /// </para> /// </summary> public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Container for the parameters to the ListVpcConnectors operation. /// Returns a list of App Runner VPC connectors in your Amazon Web Services account. /// </summary> public partial class ListVpcConnectorsRequest : AmazonAppRunnerRequest { private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of results to include in each response (result page). It's used /// for a paginated request. /// </para> /// /// <para> /// If you don't specify <code>MaxResults</code>, the request retrieves all available /// results in a single response. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A token from a previous result page. It's used for a paginated request. The request /// retrieves the next result page. All other parameter values must be identical to the /// ones that are specified in the initial request. /// </para> /// /// <para> /// If you don't specify <code>NextToken</code>, the request retrieves the first result /// page. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] 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; } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// This is the response object from the ListVpcConnectors operation. /// </summary> public partial class ListVpcConnectorsResponse : AmazonWebServiceResponse { private string _nextToken; private List<VpcConnector> _vpcConnectors = new List<VpcConnector>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token that you can pass in a subsequent request to get the next result page. It's /// returned in a paginated request. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] 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 VpcConnectors. /// <para> /// A list of information records for VPC connectors. In a paginated request, the request /// returns up to <code>MaxResults</code> records for each call. /// </para> /// </summary> [AWSProperty(Required=true)] public List<VpcConnector> VpcConnectors { get { return this._vpcConnectors; } set { this._vpcConnectors = value; } } // Check to see if VpcConnectors property is set internal bool IsSetVpcConnectors() { return this._vpcConnectors != null && this._vpcConnectors.Count > 0; } } }
80
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Returns a list of VPC Ingress Connections based on the filter provided. It can return /// either <code>ServiceArn</code> or <code>VpcEndpointId</code>, or both. /// </summary> public partial class ListVpcIngressConnectionsFilter { private string _serviceArn; private string _vpcEndpointId; /// <summary> /// Gets and sets the property ServiceArn. /// <para> /// The Amazon Resource Name (ARN) of a service to filter by. /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string ServiceArn { get { return this._serviceArn; } set { this._serviceArn = value; } } // Check to see if ServiceArn property is set internal bool IsSetServiceArn() { return this._serviceArn != null; } /// <summary> /// Gets and sets the property VpcEndpointId. /// <para> /// The ID of a VPC Endpoint to filter by. /// </para> /// </summary> [AWSProperty(Min=0, Max=51200)] public string VpcEndpointId { get { return this._vpcEndpointId; } set { this._vpcEndpointId = value; } } // Check to see if VpcEndpointId property is set internal bool IsSetVpcEndpointId() { return this._vpcEndpointId != null; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Container for the parameters to the ListVpcIngressConnections operation. /// Return a list of App Runner VPC Ingress Connections in your Amazon Web Services account. /// </summary> public partial class ListVpcIngressConnectionsRequest : AmazonAppRunnerRequest { private ListVpcIngressConnectionsFilter _filter; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property Filter. /// <para> /// The VPC Ingress Connections to be listed based on either the Service Arn or Vpc Endpoint /// Id, or both. /// </para> /// </summary> public ListVpcIngressConnectionsFilter Filter { get { return this._filter; } set { this._filter = value; } } // Check to see if Filter property is set internal bool IsSetFilter() { return this._filter != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of results to include in each response (result page). It's used /// for a paginated request. /// </para> /// /// <para> /// If you don't specify <code>MaxResults</code>, the request retrieves all available /// results in a single response. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A token from a previous result page. It's used for a paginated request. The request /// retrieves the next result page. All other parameter values must be identical to the /// ones that are specified in the initial request. /// </para> /// /// <para> /// If you don't specify <code>NextToken</code>, the request retrieves the first result /// page. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
112
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// This is the response object from the ListVpcIngressConnections operation. /// </summary> public partial class ListVpcIngressConnectionsResponse : AmazonWebServiceResponse { private string _nextToken; private List<VpcIngressConnectionSummary> _vpcIngressConnectionSummaryList = new List<VpcIngressConnectionSummary>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token that you can pass in a subsequent request to get the next result page. It's /// returned in a paginated request. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] 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 VpcIngressConnectionSummaryList. /// <para> /// A list of summary information records for VPC Ingress Connections. In a paginated /// request, the request returns up to <code>MaxResults</code> records for each call. /// </para> /// </summary> [AWSProperty(Required=true)] public List<VpcIngressConnectionSummary> VpcIngressConnectionSummaryList { get { return this._vpcIngressConnectionSummaryList; } set { this._vpcIngressConnectionSummaryList = value; } } // Check to see if VpcIngressConnectionSummaryList property is set internal bool IsSetVpcIngressConnectionSummaryList() { return this._vpcIngressConnectionSummaryList != null && this._vpcIngressConnectionSummaryList.Count > 0; } } }
80
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Describes configuration settings related to network traffic of an App Runner service. /// Consists of embedded objects for each configurable network feature. /// </summary> public partial class NetworkConfiguration { private EgressConfiguration _egressConfiguration; private IngressConfiguration _ingressConfiguration; /// <summary> /// Gets and sets the property EgressConfiguration. /// <para> /// Network configuration settings for outbound message traffic. /// </para> /// </summary> public EgressConfiguration EgressConfiguration { get { return this._egressConfiguration; } set { this._egressConfiguration = value; } } // Check to see if EgressConfiguration property is set internal bool IsSetEgressConfiguration() { return this._egressConfiguration != null; } /// <summary> /// Gets and sets the property IngressConfiguration. /// <para> /// Network configuration settings for inbound message traffic. /// </para> /// </summary> public IngressConfiguration IngressConfiguration { get { return this._ingressConfiguration; } set { this._ingressConfiguration = value; } } // Check to see if IngressConfiguration property is set internal bool IsSetIngressConfiguration() { return this._ingressConfiguration != 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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Describes an App Runner observability configuration resource. Multiple revisions of /// a configuration have the same <code>ObservabilityConfigurationName</code> and different /// <code>ObservabilityConfigurationRevision</code> values. /// /// /// <para> /// The resource is designed to configure multiple features (currently one feature, tracing). /// This type contains optional members that describe the configuration of these features /// (currently one member, <code>TraceConfiguration</code>). If a feature member isn't /// specified, the feature isn't enabled. /// </para> /// </summary> public partial class ObservabilityConfiguration { private DateTime? _createdAt; private DateTime? _deletedAt; private bool? _latest; private string _observabilityConfigurationArn; private string _observabilityConfigurationName; private int? _observabilityConfigurationRevision; private ObservabilityConfigurationStatus _status; private TraceConfiguration _traceConfiguration; /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// The time when the observability configuration was created. It's in Unix time stamp /// format. /// </para> /// </summary> public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// <summary> /// Gets and sets the property DeletedAt. /// <para> /// The time when the observability configuration was deleted. It's in Unix time stamp /// format. /// </para> /// </summary> public DateTime DeletedAt { get { return this._deletedAt.GetValueOrDefault(); } set { this._deletedAt = value; } } // Check to see if DeletedAt property is set internal bool IsSetDeletedAt() { return this._deletedAt.HasValue; } /// <summary> /// Gets and sets the property Latest. /// <para> /// It's set to <code>true</code> for the configuration with the highest <code>Revision</code> /// among all configurations that share the same <code>ObservabilityConfigurationName</code>. /// It's set to <code>false</code> otherwise. /// </para> /// </summary> public bool Latest { get { return this._latest.GetValueOrDefault(); } set { this._latest = value; } } // Check to see if Latest property is set internal bool IsSetLatest() { return this._latest.HasValue; } /// <summary> /// Gets and sets the property ObservabilityConfigurationArn. /// <para> /// The Amazon Resource Name (ARN) of this observability configuration. /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string ObservabilityConfigurationArn { get { return this._observabilityConfigurationArn; } set { this._observabilityConfigurationArn = value; } } // Check to see if ObservabilityConfigurationArn property is set internal bool IsSetObservabilityConfigurationArn() { return this._observabilityConfigurationArn != null; } /// <summary> /// Gets and sets the property ObservabilityConfigurationName. /// <para> /// The customer-provided observability configuration name. It can be used in multiple /// revisions of a configuration. /// </para> /// </summary> [AWSProperty(Min=4, Max=32)] public string ObservabilityConfigurationName { get { return this._observabilityConfigurationName; } set { this._observabilityConfigurationName = value; } } // Check to see if ObservabilityConfigurationName property is set internal bool IsSetObservabilityConfigurationName() { return this._observabilityConfigurationName != null; } /// <summary> /// Gets and sets the property ObservabilityConfigurationRevision. /// <para> /// The revision of this observability configuration. It's unique among all the active /// configurations (<code>"Status": "ACTIVE"</code>) that share the same <code>ObservabilityConfigurationName</code>. /// </para> /// </summary> public int ObservabilityConfigurationRevision { get { return this._observabilityConfigurationRevision.GetValueOrDefault(); } set { this._observabilityConfigurationRevision = value; } } // Check to see if ObservabilityConfigurationRevision property is set internal bool IsSetObservabilityConfigurationRevision() { return this._observabilityConfigurationRevision.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// The current state of the observability configuration. If the status of a configuration /// revision is <code>INACTIVE</code>, it was deleted and can't be used. Inactive configuration /// revisions are permanently removed some time after they are deleted. /// </para> /// </summary> public ObservabilityConfigurationStatus 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 TraceConfiguration. /// <para> /// The configuration of the tracing feature within this observability configuration. /// If not specified, tracing isn't enabled. /// </para> /// </summary> public TraceConfiguration TraceConfiguration { get { return this._traceConfiguration; } set { this._traceConfiguration = value; } } // Check to see if TraceConfiguration property is set internal bool IsSetTraceConfiguration() { return this._traceConfiguration != null; } } }
211
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Provides summary information about an App Runner observability configuration resource. /// /// /// <para> /// This type contains limited information about an observability configuration. It includes /// only identification information, without configuration details. It's returned by the /// <a>ListObservabilityConfigurations</a> action. Complete configuration information /// is returned by the <a>CreateObservabilityConfiguration</a>, <a>DescribeObservabilityConfiguration</a>, /// and <a>DeleteObservabilityConfiguration</a> actions using the <a>ObservabilityConfiguration</a> /// type. /// </para> /// </summary> public partial class ObservabilityConfigurationSummary { private string _observabilityConfigurationArn; private string _observabilityConfigurationName; private int? _observabilityConfigurationRevision; /// <summary> /// Gets and sets the property ObservabilityConfigurationArn. /// <para> /// The Amazon Resource Name (ARN) of this observability configuration. /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string ObservabilityConfigurationArn { get { return this._observabilityConfigurationArn; } set { this._observabilityConfigurationArn = value; } } // Check to see if ObservabilityConfigurationArn property is set internal bool IsSetObservabilityConfigurationArn() { return this._observabilityConfigurationArn != null; } /// <summary> /// Gets and sets the property ObservabilityConfigurationName. /// <para> /// The customer-provided observability configuration name. It can be used in multiple /// revisions of a configuration. /// </para> /// </summary> [AWSProperty(Min=4, Max=32)] public string ObservabilityConfigurationName { get { return this._observabilityConfigurationName; } set { this._observabilityConfigurationName = value; } } // Check to see if ObservabilityConfigurationName property is set internal bool IsSetObservabilityConfigurationName() { return this._observabilityConfigurationName != null; } /// <summary> /// Gets and sets the property ObservabilityConfigurationRevision. /// <para> /// The revision of this observability configuration. It's unique among all the active /// configurations (<code>"Status": "ACTIVE"</code>) that share the same <code>ObservabilityConfigurationName</code>. /// </para> /// </summary> public int ObservabilityConfigurationRevision { get { return this._observabilityConfigurationRevision.GetValueOrDefault(); } set { this._observabilityConfigurationRevision = value; } } // Check to see if ObservabilityConfigurationRevision property is set internal bool IsSetObservabilityConfigurationRevision() { return this._observabilityConfigurationRevision.HasValue; } } }
109
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Provides summary information for an operation that occurred on an App Runner service. /// </summary> public partial class OperationSummary { private DateTime? _endedAt; private string _id; private DateTime? _startedAt; private OperationStatus _status; private string _targetArn; private OperationType _type; private DateTime? _updatedAt; /// <summary> /// Gets and sets the property EndedAt. /// <para> /// The time when the operation ended. It's in the Unix time stamp format. /// </para> /// </summary> public DateTime EndedAt { get { return this._endedAt.GetValueOrDefault(); } set { this._endedAt = value; } } // Check to see if EndedAt property is set internal bool IsSetEndedAt() { return this._endedAt.HasValue; } /// <summary> /// Gets and sets the property Id. /// <para> /// A unique ID of this operation. It's unique in the scope of the App Runner service. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property StartedAt. /// <para> /// The time when the operation started. It's in the Unix time stamp format. /// </para> /// </summary> public DateTime 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 state of the operation. /// </para> /// </summary> public OperationStatus 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 TargetArn. /// <para> /// The Amazon Resource Name (ARN) of the resource that the operation acted on (for example, /// an App Runner service). /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string TargetArn { get { return this._targetArn; } set { this._targetArn = value; } } // Check to see if TargetArn property is set internal bool IsSetTargetArn() { return this._targetArn != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The type of operation. It indicates a specific action that occured. /// </para> /// </summary> public OperationType 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 UpdatedAt. /// <para> /// The time when the operation was last updated. It's in the Unix time stamp format. /// </para> /// </summary> public DateTime UpdatedAt { get { return this._updatedAt.GetValueOrDefault(); } set { this._updatedAt = value; } } // Check to see if UpdatedAt property is set internal bool IsSetUpdatedAt() { return this._updatedAt.HasValue; } } }
174
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Container for the parameters to the PauseService operation. /// Pause an active App Runner service. App Runner reduces compute capacity for the service /// to zero and loses state (for example, ephemeral storage is removed). /// /// /// <para> /// This is an asynchronous operation. On a successful call, you can use the returned /// <code>OperationId</code> and the <a>ListOperations</a> call to track the operation's /// progress. /// </para> /// </summary> public partial class PauseServiceRequest : AmazonAppRunnerRequest { private string _serviceArn; /// <summary> /// Gets and sets the property ServiceArn. /// <para> /// The Amazon Resource Name (ARN) of the App Runner service that you want to pause. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1011)] public string ServiceArn { get { return this._serviceArn; } set { this._serviceArn = value; } } // Check to see if ServiceArn property is set internal bool IsSetServiceArn() { return this._serviceArn != null; } } }
67
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// This is the response object from the PauseService operation. /// </summary> public partial class PauseServiceResponse : AmazonWebServiceResponse { private string _operationId; private Service _service; /// <summary> /// Gets and sets the property OperationId. /// <para> /// The unique ID of the asynchronous operation that this request started. You can use /// it combined with the <a>ListOperations</a> call to track the operation's progress. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string OperationId { get { return this._operationId; } set { this._operationId = value; } } // Check to see if OperationId property is set internal bool IsSetOperationId() { return this._operationId != null; } /// <summary> /// Gets and sets the property Service. /// <para> /// A description of the App Runner service that this request just paused. /// </para> /// </summary> [AWSProperty(Required=true)] public Service Service { get { return this._service; } set { this._service = value; } } // Check to see if Service property is set internal bool IsSetService() { return this._service != null; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon /// Web Services account. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResourceNotFoundException : AmazonAppRunnerException { /// <summary> /// Constructs a new ResourceNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ResourceNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ResourceNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="innerException"></param> public ResourceNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ResourceNotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Container for the parameters to the ResumeService operation. /// Resume an active App Runner service. App Runner provisions compute capacity for the /// service. /// /// /// <para> /// This is an asynchronous operation. On a successful call, you can use the returned /// <code>OperationId</code> and the <a>ListOperations</a> call to track the operation's /// progress. /// </para> /// </summary> public partial class ResumeServiceRequest : AmazonAppRunnerRequest { private string _serviceArn; /// <summary> /// Gets and sets the property ServiceArn. /// <para> /// The Amazon Resource Name (ARN) of the App Runner service that you want to resume. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1011)] public string ServiceArn { get { return this._serviceArn; } set { this._serviceArn = value; } } // Check to see if ServiceArn property is set internal bool IsSetServiceArn() { return this._serviceArn != null; } } }
67
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// This is the response object from the ResumeService operation. /// </summary> public partial class ResumeServiceResponse : AmazonWebServiceResponse { private string _operationId; private Service _service; /// <summary> /// Gets and sets the property OperationId. /// <para> /// The unique ID of the asynchronous operation that this request started. You can use /// it combined with the <a>ListOperations</a> call to track the operation's progress. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string OperationId { get { return this._operationId; } set { this._operationId = value; } } // Check to see if OperationId property is set internal bool IsSetOperationId() { return this._operationId != null; } /// <summary> /// Gets and sets the property Service. /// <para> /// A description of the App Runner service that this request just resumed. /// </para> /// </summary> [AWSProperty(Required=true)] public Service Service { get { return this._service; } set { this._service = value; } } // Check to see if Service property is set internal bool IsSetService() { return this._service != null; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Describes an App Runner service. It can describe a service in any state, including /// deleted services. /// /// /// <para> /// This type contains the full information about a service, including configuration details. /// It's returned by the <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_CreateService.html">CreateService</a>, /// <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_DescribeService.html">DescribeService</a>, /// and <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_DeleteService.html">DeleteService</a> /// actions. A subset of this information is returned by the <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_ListServices.html">ListServices</a> /// action using the <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_ServiceSummary.html">ServiceSummary</a> /// type. /// </para> /// </summary> public partial class Service { private AutoScalingConfigurationSummary _autoScalingConfigurationSummary; private DateTime? _createdAt; private DateTime? _deletedAt; private EncryptionConfiguration _encryptionConfiguration; private HealthCheckConfiguration _healthCheckConfiguration; private InstanceConfiguration _instanceConfiguration; private NetworkConfiguration _networkConfiguration; private ServiceObservabilityConfiguration _observabilityConfiguration; private string _serviceArn; private string _serviceId; private string _serviceName; private string _serviceUrl; private SourceConfiguration _sourceConfiguration; private ServiceStatus _status; private DateTime? _updatedAt; /// <summary> /// Gets and sets the property AutoScalingConfigurationSummary. /// <para> /// Summary information for the App Runner automatic scaling configuration resource that's /// associated with this service. /// </para> /// </summary> [AWSProperty(Required=true)] public AutoScalingConfigurationSummary AutoScalingConfigurationSummary { get { return this._autoScalingConfigurationSummary; } set { this._autoScalingConfigurationSummary = value; } } // Check to see if AutoScalingConfigurationSummary property is set internal bool IsSetAutoScalingConfigurationSummary() { return this._autoScalingConfigurationSummary != null; } /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// The time when the App Runner service was created. It's in the Unix time stamp format. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// <summary> /// Gets and sets the property DeletedAt. /// <para> /// The time when the App Runner service was deleted. It's in the Unix time stamp format. /// </para> /// </summary> public DateTime DeletedAt { get { return this._deletedAt.GetValueOrDefault(); } set { this._deletedAt = value; } } // Check to see if DeletedAt property is set internal bool IsSetDeletedAt() { return this._deletedAt.HasValue; } /// <summary> /// Gets and sets the property EncryptionConfiguration. /// <para> /// The encryption key that App Runner uses to encrypt the service logs and the copy of /// the source repository that App Runner maintains for the service. It can be either /// a customer-provided encryption key or an Amazon Web Services managed key. /// </para> /// </summary> public EncryptionConfiguration EncryptionConfiguration { get { return this._encryptionConfiguration; } set { this._encryptionConfiguration = value; } } // Check to see if EncryptionConfiguration property is set internal bool IsSetEncryptionConfiguration() { return this._encryptionConfiguration != null; } /// <summary> /// Gets and sets the property HealthCheckConfiguration. /// <para> /// The settings for the health check that App Runner performs to monitor the health of /// this service. /// </para> /// </summary> public HealthCheckConfiguration HealthCheckConfiguration { get { return this._healthCheckConfiguration; } set { this._healthCheckConfiguration = value; } } // Check to see if HealthCheckConfiguration property is set internal bool IsSetHealthCheckConfiguration() { return this._healthCheckConfiguration != null; } /// <summary> /// Gets and sets the property InstanceConfiguration. /// <para> /// The runtime configuration of instances (scaling units) of this service. /// </para> /// </summary> [AWSProperty(Required=true)] public InstanceConfiguration InstanceConfiguration { get { return this._instanceConfiguration; } set { this._instanceConfiguration = value; } } // Check to see if InstanceConfiguration property is set internal bool IsSetInstanceConfiguration() { return this._instanceConfiguration != null; } /// <summary> /// Gets and sets the property NetworkConfiguration. /// <para> /// Configuration settings related to network traffic of the web application that this /// service runs. /// </para> /// </summary> [AWSProperty(Required=true)] public NetworkConfiguration NetworkConfiguration { get { return this._networkConfiguration; } set { this._networkConfiguration = value; } } // Check to see if NetworkConfiguration property is set internal bool IsSetNetworkConfiguration() { return this._networkConfiguration != null; } /// <summary> /// Gets and sets the property ObservabilityConfiguration. /// <para> /// The observability configuration of this service. /// </para> /// </summary> public ServiceObservabilityConfiguration ObservabilityConfiguration { get { return this._observabilityConfiguration; } set { this._observabilityConfiguration = value; } } // Check to see if ObservabilityConfiguration property is set internal bool IsSetObservabilityConfiguration() { return this._observabilityConfiguration != null; } /// <summary> /// Gets and sets the property ServiceArn. /// <para> /// The Amazon Resource Name (ARN) of this service. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1011)] public string ServiceArn { get { return this._serviceArn; } set { this._serviceArn = value; } } // Check to see if ServiceArn property is set internal bool IsSetServiceArn() { return this._serviceArn != null; } /// <summary> /// Gets and sets the property ServiceId. /// <para> /// An ID that App Runner generated for this service. It's unique within the Amazon Web /// Services Region. /// </para> /// </summary> [AWSProperty(Required=true, Min=32, Max=32)] public string ServiceId { get { return this._serviceId; } set { this._serviceId = value; } } // Check to see if ServiceId property is set internal bool IsSetServiceId() { return this._serviceId != null; } /// <summary> /// Gets and sets the property ServiceName. /// <para> /// The customer-provided service name. /// </para> /// </summary> [AWSProperty(Required=true, Min=4, Max=40)] public string ServiceName { get { return this._serviceName; } set { this._serviceName = value; } } // Check to see if ServiceName property is set internal bool IsSetServiceName() { return this._serviceName != null; } /// <summary> /// Gets and sets the property ServiceUrl. /// <para> /// A subdomain URL that App Runner generated for this service. You can use this URL to /// access your service web application. /// </para> /// </summary> [AWSProperty(Min=0, Max=51200)] public string ServiceUrl { get { return this._serviceUrl; } set { this._serviceUrl = value; } } // Check to see if ServiceUrl property is set internal bool IsSetServiceUrl() { return this._serviceUrl != null; } /// <summary> /// Gets and sets the property SourceConfiguration. /// <para> /// The source deployed to the App Runner service. It can be a code or an image repository. /// </para> /// </summary> [AWSProperty(Required=true)] public SourceConfiguration SourceConfiguration { get { return this._sourceConfiguration; } set { this._sourceConfiguration = value; } } // Check to see if SourceConfiguration property is set internal bool IsSetSourceConfiguration() { return this._sourceConfiguration != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The current state of the App Runner service. These particular values mean the following. /// </para> /// <ul> <li> /// <para> /// <code>CREATE_FAILED</code> – The service failed to create. To troubleshoot this failure, /// read the failure events and logs, change any parameters that need to be fixed, and /// retry the call to create the service. /// </para> /// /// <para> /// The failed service isn't usable, and still counts towards your service quota. When /// you're done analyzing the failure, delete the service. /// </para> /// </li> <li> /// <para> /// <code>DELETE_FAILED</code> – The service failed to delete and can't be successfully /// recovered. Retry the service deletion call to ensure that all related resources are /// removed. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public ServiceStatus 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 UpdatedAt. /// <para> /// The time when the App Runner service was last updated at. It's in the Unix time stamp /// format. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime UpdatedAt { get { return this._updatedAt.GetValueOrDefault(); } set { this._updatedAt = value; } } // Check to see if UpdatedAt property is set internal bool IsSetUpdatedAt() { return this._updatedAt.HasValue; } } }
372
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Describes the observability configuration of an App Runner service. These are additional /// observability features, like tracing, that you choose to enable. They're configured /// in a separate resource that you associate with your service. /// </summary> public partial class ServiceObservabilityConfiguration { private string _observabilityConfigurationArn; private bool? _observabilityEnabled; /// <summary> /// Gets and sets the property ObservabilityConfigurationArn. /// <para> /// The Amazon Resource Name (ARN) of the observability configuration that is associated /// with the service. Specified only when <code>ObservabilityEnabled</code> is <code>true</code>. /// </para> /// /// <para> /// Specify an ARN with a name and a revision number to associate that revision. For example: /// <code>arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing/3</code> /// /// </para> /// /// <para> /// Specify just the name to associate the latest revision. For example: <code>arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing</code> /// /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string ObservabilityConfigurationArn { get { return this._observabilityConfigurationArn; } set { this._observabilityConfigurationArn = value; } } // Check to see if ObservabilityConfigurationArn property is set internal bool IsSetObservabilityConfigurationArn() { return this._observabilityConfigurationArn != null; } /// <summary> /// Gets and sets the property ObservabilityEnabled. /// <para> /// When <code>true</code>, an observability configuration resource is associated with /// the service, and an <code>ObservabilityConfigurationArn</code> is specified. /// </para> /// </summary> [AWSProperty(Required=true)] public bool ObservabilityEnabled { get { return this._observabilityEnabled.GetValueOrDefault(); } set { this._observabilityEnabled = value; } } // Check to see if ObservabilityEnabled property is set internal bool IsSetObservabilityEnabled() { return this._observabilityEnabled.HasValue; } } }
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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// App Runner can't create this resource. You've reached your account quota for this /// resource type. /// /// /// <para> /// For App Runner per-resource quotas, see <a href="https://docs.aws.amazon.com/general/latest/gr/apprunner.html">App /// Runner endpoints and quotas</a> in the <i>Amazon Web Services General Reference</i>. /// </para> /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ServiceQuotaExceededException : AmazonAppRunnerException { /// <summary> /// Constructs a new ServiceQuotaExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ServiceQuotaExceededException(string message) : base(message) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ServiceQuotaExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </summary> /// <param name="innerException"></param> public ServiceQuotaExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceQuotaExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceQuotaExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ServiceQuotaExceededException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ServiceQuotaExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
131
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Provides summary information for an App Runner service. /// /// /// <para> /// This type contains limited information about a service. It doesn't include configuration /// details. It's returned by the <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_ListServices.html">ListServices</a> /// action. Complete service information is returned by the <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_CreateService.html">CreateService</a>, /// <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_DescribeService.html">DescribeService</a>, /// and <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_DeleteService.html">DeleteService</a> /// actions using the <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_Service.html">Service</a> /// type. /// </para> /// </summary> public partial class ServiceSummary { private DateTime? _createdAt; private string _serviceArn; private string _serviceId; private string _serviceName; private string _serviceUrl; private ServiceStatus _status; private DateTime? _updatedAt; /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// The time when the App Runner service was created. It's in the Unix time stamp format. /// </para> /// </summary> public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// <summary> /// Gets and sets the property ServiceArn. /// <para> /// The Amazon Resource Name (ARN) of this service. /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string ServiceArn { get { return this._serviceArn; } set { this._serviceArn = value; } } // Check to see if ServiceArn property is set internal bool IsSetServiceArn() { return this._serviceArn != null; } /// <summary> /// Gets and sets the property ServiceId. /// <para> /// An ID that App Runner generated for this service. It's unique within the Amazon Web /// Services Region. /// </para> /// </summary> [AWSProperty(Min=32, Max=32)] public string ServiceId { get { return this._serviceId; } set { this._serviceId = value; } } // Check to see if ServiceId property is set internal bool IsSetServiceId() { return this._serviceId != null; } /// <summary> /// Gets and sets the property ServiceName. /// <para> /// The customer-provided service name. /// </para> /// </summary> [AWSProperty(Min=4, Max=40)] public string ServiceName { get { return this._serviceName; } set { this._serviceName = value; } } // Check to see if ServiceName property is set internal bool IsSetServiceName() { return this._serviceName != null; } /// <summary> /// Gets and sets the property ServiceUrl. /// <para> /// A subdomain URL that App Runner generated for this service. You can use this URL to /// access your service web application. /// </para> /// </summary> [AWSProperty(Min=0, Max=51200)] public string ServiceUrl { get { return this._serviceUrl; } set { this._serviceUrl = value; } } // Check to see if ServiceUrl property is set internal bool IsSetServiceUrl() { return this._serviceUrl != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The current state of the App Runner service. These particular values mean the following. /// </para> /// <ul> <li> /// <para> /// <code>CREATE_FAILED</code> – The service failed to create. Read the failure events /// and logs, change any parameters that need to be fixed, and retry the call to create /// the service. /// </para> /// /// <para> /// The failed service isn't usable, and still counts towards your service quota. When /// you're done analyzing the failure, delete the service. /// </para> /// </li> <li> /// <para> /// <code>DELETE_FAILED</code> – The service failed to delete and can't be successfully /// recovered. Retry the service deletion call to ensure that all related resources are /// removed. /// </para> /// </li> </ul> /// </summary> public ServiceStatus 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 UpdatedAt. /// <para> /// The time when the App Runner service was last updated. It's in theUnix time stamp /// format. /// </para> /// </summary> public DateTime UpdatedAt { get { return this._updatedAt.GetValueOrDefault(); } set { this._updatedAt = value; } } // Check to see if UpdatedAt property is set internal bool IsSetUpdatedAt() { return this._updatedAt.HasValue; } } }
207
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Identifies a version of code that App Runner refers to within a source code repository. /// </summary> public partial class SourceCodeVersion { private SourceCodeVersionType _type; private string _value; /// <summary> /// Gets and sets the property Type. /// <para> /// The type of version identifier. /// </para> /// /// <para> /// For a git-based repository, branches represent versions. /// </para> /// </summary> [AWSProperty(Required=true)] public SourceCodeVersionType 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> /// A source code version. /// </para> /// /// <para> /// For a git-based repository, a branch name maps to a specific version. App Runner uses /// the most recent commit to the branch. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=51200)] 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; } } }
87
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Describes the source deployed to an App Runner service. It can be a code or an image /// repository. /// </summary> public partial class SourceConfiguration { private AuthenticationConfiguration _authenticationConfiguration; private bool? _autoDeploymentsEnabled; private CodeRepository _codeRepository; private ImageRepository _imageRepository; /// <summary> /// Gets and sets the property AuthenticationConfiguration. /// <para> /// Describes the resources that are needed to authenticate access to some source repositories. /// </para> /// </summary> public AuthenticationConfiguration AuthenticationConfiguration { get { return this._authenticationConfiguration; } set { this._authenticationConfiguration = value; } } // Check to see if AuthenticationConfiguration property is set internal bool IsSetAuthenticationConfiguration() { return this._authenticationConfiguration != null; } /// <summary> /// Gets and sets the property AutoDeploymentsEnabled. /// <para> /// If <code>true</code>, continuous integration from the source repository is enabled /// for the App Runner service. Each repository change (including any source code commit /// or new image version) starts a deployment. /// </para> /// /// <para> /// Default: App Runner sets to <code>false</code> for a source image that uses an ECR /// Public repository or an ECR repository that's in an Amazon Web Services account other /// than the one that the service is in. App Runner sets to <code>true</code> in all other /// cases (which currently include a source code repository or a source image using a /// same-account ECR repository). /// </para> /// </summary> public bool AutoDeploymentsEnabled { get { return this._autoDeploymentsEnabled.GetValueOrDefault(); } set { this._autoDeploymentsEnabled = value; } } // Check to see if AutoDeploymentsEnabled property is set internal bool IsSetAutoDeploymentsEnabled() { return this._autoDeploymentsEnabled.HasValue; } /// <summary> /// Gets and sets the property CodeRepository. /// <para> /// The description of a source code repository. /// </para> /// /// <para> /// You must provide either this member or <code>ImageRepository</code> (but not both). /// </para> /// </summary> public CodeRepository CodeRepository { get { return this._codeRepository; } set { this._codeRepository = value; } } // Check to see if CodeRepository property is set internal bool IsSetCodeRepository() { return this._codeRepository != null; } /// <summary> /// Gets and sets the property ImageRepository. /// <para> /// The description of a source image repository. /// </para> /// /// <para> /// You must provide either this member or <code>CodeRepository</code> (but not both). /// </para> /// </summary> public ImageRepository ImageRepository { get { return this._imageRepository; } set { this._imageRepository = value; } } // Check to see if ImageRepository property is set internal bool IsSetImageRepository() { return this._imageRepository != 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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Container for the parameters to the StartDeployment operation. /// Initiate a manual deployment of the latest commit in a source code repository or the /// latest image in a source image repository to an App Runner service. /// /// /// <para> /// For a source code repository, App Runner retrieves the commit and builds a Docker /// image. For a source image repository, App Runner retrieves the latest Docker image. /// In both cases, App Runner then deploys the new image to your service and starts a /// new container instance. /// </para> /// /// <para> /// This is an asynchronous operation. On a successful call, you can use the returned /// <code>OperationId</code> and the <a>ListOperations</a> call to track the operation's /// progress. /// </para> /// </summary> public partial class StartDeploymentRequest : AmazonAppRunnerRequest { private string _serviceArn; /// <summary> /// Gets and sets the property ServiceArn. /// <para> /// The Amazon Resource Name (ARN) of the App Runner service that you want to manually /// deploy to. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1011)] public string ServiceArn { get { return this._serviceArn; } set { this._serviceArn = value; } } // Check to see if ServiceArn property is set internal bool IsSetServiceArn() { return this._serviceArn != null; } } }
75
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// This is the response object from the StartDeployment operation. /// </summary> public partial class StartDeploymentResponse : AmazonWebServiceResponse { private string _operationId; /// <summary> /// Gets and sets the property OperationId. /// <para> /// The unique ID of the asynchronous operation that this request started. You can use /// it combined with the <a>ListOperations</a> call to track the operation's progress. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string OperationId { get { return this._operationId; } set { this._operationId = value; } } // Check to see if OperationId property is set internal bool IsSetOperationId() { return this._operationId != 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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Describes a tag that is applied to an App Runner resource. A tag is a metadata item /// consisting of a key-value pair. /// </summary> public partial class Tag { private string _key; private string _value; /// <summary> /// Gets and sets the property Key. /// <para> /// The key of the tag. /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string Key { get { return this._key; } set { this._key = value; } } // Check to see if Key property is set internal bool IsSetKey() { return this._key != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// The value of the tag. /// </para> /// </summary> [AWSProperty(Min=0, Max=256)] 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; } } }
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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Container for the parameters to the TagResource operation. /// Add tags to, or update the tag values of, an App Runner resource. A tag is a key-value /// pair. /// </summary> public partial class TagResourceRequest : AmazonAppRunnerRequest { private string _resourceArn; private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The Amazon Resource Name (ARN) of the resource that you want to update tags for. /// </para> /// /// <para> /// It must be the ARN of an App Runner resource. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1011)] 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> /// A list of tag key-value pairs to add or update. If a key is new to the resource, the /// tag is added with the provided value. If a key is already associated with the resource, /// the value of the tag is updated. /// </para> /// </summary> [AWSProperty(Required=true)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Describes the configuration of the tracing feature within an App Runner observability /// configuration. /// </summary> public partial class TraceConfiguration { private TracingVendor _vendor; /// <summary> /// Gets and sets the property Vendor. /// <para> /// The implementation provider chosen for tracing App Runner services. /// </para> /// </summary> [AWSProperty(Required=true)] public TracingVendor Vendor { get { return this._vendor; } set { this._vendor = value; } } // Check to see if Vendor property is set internal bool IsSetVendor() { return this._vendor != 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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Container for the parameters to the UntagResource operation. /// Remove tags from an App Runner resource. /// </summary> public partial class UntagResourceRequest : AmazonAppRunnerRequest { 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 that you want to remove tags from. /// </para> /// /// <para> /// It must be the ARN of an App Runner resource. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1011)] 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> /// A list of tag keys that you want to remove. /// </para> /// </summary> [AWSProperty(Required=true)] 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; } } }
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 apprunner-2020-05-15.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.AppRunner.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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Container for the parameters to the UpdateService operation. /// Update an App Runner service. You can update the source configuration and instance /// configuration of the service. You can also update the ARN of the auto scaling configuration /// resource that's associated with the service. However, you can't change the name or /// the encryption configuration of the service. These can be set only when you create /// the service. /// /// /// <para> /// To update the tags applied to your service, use the separate actions <a>TagResource</a> /// and <a>UntagResource</a>. /// </para> /// /// <para> /// This is an asynchronous operation. On a successful call, you can use the returned /// <code>OperationId</code> and the <a>ListOperations</a> call to track the operation's /// progress. /// </para> /// </summary> public partial class UpdateServiceRequest : AmazonAppRunnerRequest { private string _autoScalingConfigurationArn; private HealthCheckConfiguration _healthCheckConfiguration; private InstanceConfiguration _instanceConfiguration; private NetworkConfiguration _networkConfiguration; private ServiceObservabilityConfiguration _observabilityConfiguration; private string _serviceArn; private SourceConfiguration _sourceConfiguration; /// <summary> /// Gets and sets the property AutoScalingConfigurationArn. /// <para> /// The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource /// that you want to associate with the App Runner service. /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string AutoScalingConfigurationArn { get { return this._autoScalingConfigurationArn; } set { this._autoScalingConfigurationArn = value; } } // Check to see if AutoScalingConfigurationArn property is set internal bool IsSetAutoScalingConfigurationArn() { return this._autoScalingConfigurationArn != null; } /// <summary> /// Gets and sets the property HealthCheckConfiguration. /// <para> /// The settings for the health check that App Runner performs to monitor the health of /// the App Runner service. /// </para> /// </summary> public HealthCheckConfiguration HealthCheckConfiguration { get { return this._healthCheckConfiguration; } set { this._healthCheckConfiguration = value; } } // Check to see if HealthCheckConfiguration property is set internal bool IsSetHealthCheckConfiguration() { return this._healthCheckConfiguration != null; } /// <summary> /// Gets and sets the property InstanceConfiguration. /// <para> /// The runtime configuration to apply to instances (scaling units) of your service. /// </para> /// </summary> public InstanceConfiguration InstanceConfiguration { get { return this._instanceConfiguration; } set { this._instanceConfiguration = value; } } // Check to see if InstanceConfiguration property is set internal bool IsSetInstanceConfiguration() { return this._instanceConfiguration != null; } /// <summary> /// Gets and sets the property NetworkConfiguration. /// <para> /// Configuration settings related to network traffic of the web application that the /// App Runner service runs. /// </para> /// </summary> public NetworkConfiguration NetworkConfiguration { get { return this._networkConfiguration; } set { this._networkConfiguration = value; } } // Check to see if NetworkConfiguration property is set internal bool IsSetNetworkConfiguration() { return this._networkConfiguration != null; } /// <summary> /// Gets and sets the property ObservabilityConfiguration. /// <para> /// The observability configuration of your service. /// </para> /// </summary> public ServiceObservabilityConfiguration ObservabilityConfiguration { get { return this._observabilityConfiguration; } set { this._observabilityConfiguration = value; } } // Check to see if ObservabilityConfiguration property is set internal bool IsSetObservabilityConfiguration() { return this._observabilityConfiguration != null; } /// <summary> /// Gets and sets the property ServiceArn. /// <para> /// The Amazon Resource Name (ARN) of the App Runner service that you want to update. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1011)] public string ServiceArn { get { return this._serviceArn; } set { this._serviceArn = value; } } // Check to see if ServiceArn property is set internal bool IsSetServiceArn() { return this._serviceArn != null; } /// <summary> /// Gets and sets the property SourceConfiguration. /// <para> /// The source configuration to apply to the App Runner service. /// </para> /// /// <para> /// You can change the configuration of the code or image repository that the service /// uses. However, you can't switch from code to image or the other way around. This means /// that you must provide the same structure member of <code>SourceConfiguration</code> /// that you originally included when you created the service. Specifically, you can include /// either <code>CodeRepository</code> or <code>ImageRepository</code>. To update the /// source configuration, set the values to members of the structure that you include. /// </para> /// </summary> public SourceConfiguration SourceConfiguration { get { return this._sourceConfiguration; } set { this._sourceConfiguration = value; } } // Check to see if SourceConfiguration property is set internal bool IsSetSourceConfiguration() { return this._sourceConfiguration != null; } } }
202
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// This is the response object from the UpdateService operation. /// </summary> public partial class UpdateServiceResponse : AmazonWebServiceResponse { private string _operationId; private Service _service; /// <summary> /// Gets and sets the property OperationId. /// <para> /// The unique ID of the asynchronous operation that this request started. You can use /// it combined with the <a>ListOperations</a> call to track the operation's progress. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string OperationId { get { return this._operationId; } set { this._operationId = value; } } // Check to see if OperationId property is set internal bool IsSetOperationId() { return this._operationId != null; } /// <summary> /// Gets and sets the property Service. /// <para> /// A description of the App Runner service updated by this request. All configuration /// values in the returned <code>Service</code> structure reflect configuration changes /// that are being applied by this request. /// </para> /// </summary> [AWSProperty(Required=true)] public Service Service { get { return this._service; } set { this._service = value; } } // Check to see if Service property is set internal bool IsSetService() { return this._service != 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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Container for the parameters to the UpdateVpcIngressConnection operation. /// Update an existing App Runner VPC Ingress Connection resource. The VPC Ingress Connection /// must be in one of the following states to be updated: /// /// <ul> <li> /// <para> /// AVAILABLE /// </para> /// </li> <li> /// <para> /// FAILED_CREATION /// </para> /// </li> <li> /// <para> /// FAILED_UPDATE /// </para> /// </li> </ul> /// </summary> public partial class UpdateVpcIngressConnectionRequest : AmazonAppRunnerRequest { private IngressVpcConfiguration _ingressVpcConfiguration; private string _vpcIngressConnectionArn; /// <summary> /// Gets and sets the property IngressVpcConfiguration. /// <para> /// Specifications for the customer’s Amazon VPC and the related Amazon Web Services PrivateLink /// VPC endpoint that are used to update the VPC Ingress Connection resource. /// </para> /// </summary> [AWSProperty(Required=true)] public IngressVpcConfiguration IngressVpcConfiguration { get { return this._ingressVpcConfiguration; } set { this._ingressVpcConfiguration = value; } } // Check to see if IngressVpcConfiguration property is set internal bool IsSetIngressVpcConfiguration() { return this._ingressVpcConfiguration != null; } /// <summary> /// Gets and sets the property VpcIngressConnectionArn. /// <para> /// The Amazon Resource Name (Arn) for the App Runner VPC Ingress Connection resource /// that you want to update. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1011)] public string VpcIngressConnectionArn { get { return this._vpcIngressConnectionArn; } set { this._vpcIngressConnectionArn = value; } } // Check to see if VpcIngressConnectionArn property is set internal bool IsSetVpcIngressConnectionArn() { return this._vpcIngressConnectionArn != 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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// This is the response object from the UpdateVpcIngressConnection operation. /// </summary> public partial class UpdateVpcIngressConnectionResponse : AmazonWebServiceResponse { private VpcIngressConnection _vpcIngressConnection; /// <summary> /// Gets and sets the property VpcIngressConnection. /// <para> /// A description of the App Runner VPC Ingress Connection resource that's updated by /// this request. /// </para> /// </summary> [AWSProperty(Required=true)] public VpcIngressConnection VpcIngressConnection { get { return this._vpcIngressConnection; } set { this._vpcIngressConnection = value; } } // Check to see if VpcIngressConnection property is set internal bool IsSetVpcIngressConnection() { return this._vpcIngressConnection != 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 apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Describes an App Runner VPC connector resource. A VPC connector describes the Amazon /// Virtual Private Cloud (Amazon VPC) that an App Runner service is associated with, /// and the subnets and security group that are used. /// /// /// <para> /// Multiple revisions of a connector might have the same <code>Name</code> and different /// <code>Revision</code> values. /// </para> /// <note> /// <para> /// At this time, App Runner supports only one revision per name. /// </para> /// </note> /// </summary> public partial class VpcConnector { private DateTime? _createdAt; private DateTime? _deletedAt; private List<string> _securityGroups = new List<string>(); private VpcConnectorStatus _status; private List<string> _subnets = new List<string>(); private string _vpcConnectorArn; private string _vpcConnectorName; private int? _vpcConnectorRevision; /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// The time when the VPC connector was created. It's in Unix time stamp format. /// </para> /// </summary> public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// <summary> /// Gets and sets the property DeletedAt. /// <para> /// The time when the VPC connector was deleted. It's in Unix time stamp format. /// </para> /// </summary> public DateTime DeletedAt { get { return this._deletedAt.GetValueOrDefault(); } set { this._deletedAt = value; } } // Check to see if DeletedAt property is set internal bool IsSetDeletedAt() { return this._deletedAt.HasValue; } /// <summary> /// Gets and sets the property SecurityGroups. /// <para> /// A list of IDs of security groups that App Runner uses for access to Amazon Web Services /// resources under the specified subnets. If not specified, App Runner uses the default /// security group of the Amazon VPC. The default security group allows all outbound traffic. /// </para> /// </summary> public List<string> SecurityGroups { get { return this._securityGroups; } set { this._securityGroups = value; } } // Check to see if SecurityGroups property is set internal bool IsSetSecurityGroups() { return this._securityGroups != null && this._securityGroups.Count > 0; } /// <summary> /// Gets and sets the property Status. /// <para> /// The current state of the VPC connector. If the status of a connector revision is <code>INACTIVE</code>, /// it was deleted and can't be used. Inactive connector revisions are permanently removed /// some time after they are deleted. /// </para> /// </summary> public VpcConnectorStatus 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 Subnets. /// <para> /// A list of IDs of subnets that App Runner uses for your service. All IDs are of subnets /// of a single Amazon VPC. /// </para> /// </summary> public List<string> Subnets { get { return this._subnets; } set { this._subnets = value; } } // Check to see if Subnets property is set internal bool IsSetSubnets() { return this._subnets != null && this._subnets.Count > 0; } /// <summary> /// Gets and sets the property VpcConnectorArn. /// <para> /// The Amazon Resource Name (ARN) of this VPC connector. /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string VpcConnectorArn { get { return this._vpcConnectorArn; } set { this._vpcConnectorArn = value; } } // Check to see if VpcConnectorArn property is set internal bool IsSetVpcConnectorArn() { return this._vpcConnectorArn != null; } /// <summary> /// Gets and sets the property VpcConnectorName. /// <para> /// The customer-provided VPC connector name. /// </para> /// </summary> [AWSProperty(Min=4, Max=40)] public string VpcConnectorName { get { return this._vpcConnectorName; } set { this._vpcConnectorName = value; } } // Check to see if VpcConnectorName property is set internal bool IsSetVpcConnectorName() { return this._vpcConnectorName != null; } /// <summary> /// Gets and sets the property VpcConnectorRevision. /// <para> /// The revision of this VPC connector. It's unique among all the active connectors (<code>"Status": /// "ACTIVE"</code>) that share the same <code>Name</code>. /// </para> /// <note> /// <para> /// At this time, App Runner supports only one revision per name. /// </para> /// </note> /// </summary> public int VpcConnectorRevision { get { return this._vpcConnectorRevision.GetValueOrDefault(); } set { this._vpcConnectorRevision = value; } } // Check to see if VpcConnectorRevision property is set internal bool IsSetVpcConnectorRevision() { return this._vpcConnectorRevision.HasValue; } } }
216
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// DNS Target record for a custom domain of this Amazon VPC. /// </summary> public partial class VpcDNSTarget { private string _domainName; private string _vpcId; private string _vpcIngressConnectionArn; /// <summary> /// Gets and sets the property DomainName. /// <para> /// The domain name of your target DNS that is associated with the Amazon VPC. /// </para> /// </summary> [AWSProperty(Min=1, Max=255)] public string DomainName { get { return this._domainName; } set { this._domainName = value; } } // Check to see if DomainName property is set internal bool IsSetDomainName() { return this._domainName != null; } /// <summary> /// Gets and sets the property VpcId. /// <para> /// The ID of the Amazon VPC that is associated with the custom domain name of the target /// DNS. /// </para> /// </summary> [AWSProperty(Min=0, Max=51200)] public string VpcId { get { return this._vpcId; } set { this._vpcId = value; } } // Check to see if VpcId property is set internal bool IsSetVpcId() { return this._vpcId != null; } /// <summary> /// Gets and sets the property VpcIngressConnectionArn. /// <para> /// The Amazon Resource Name (ARN) of the VPC Ingress Connection that is associated with /// your service. /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string VpcIngressConnectionArn { get { return this._vpcIngressConnectionArn; } set { this._vpcIngressConnectionArn = value; } } // Check to see if VpcIngressConnectionArn property is set internal bool IsSetVpcIngressConnectionArn() { return this._vpcIngressConnectionArn != null; } } }
100
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// The App Runner resource that specifies an App Runner endpoint for incoming traffic. /// It establishes a connection between a VPC interface endpoint and a App Runner service, /// to make your App Runner service accessible from only within an Amazon VPC. /// </summary> public partial class VpcIngressConnection { private string _accountId; private DateTime? _createdAt; private DateTime? _deletedAt; private string _domainName; private IngressVpcConfiguration _ingressVpcConfiguration; private string _serviceArn; private VpcIngressConnectionStatus _status; private string _vpcIngressConnectionArn; private string _vpcIngressConnectionName; /// <summary> /// Gets and sets the property AccountId. /// <para> /// The Account Id you use to create the VPC Ingress Connection resource. /// </para> /// </summary> [AWSProperty(Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// The time when the VPC Ingress Connection was created. It's in the Unix time stamp /// format. /// </para> /// <ul> <li> /// <para> /// Type: Timestamp /// </para> /// </li> <li> /// <para> /// Required: Yes /// </para> /// </li> </ul> /// </summary> public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// <summary> /// Gets and sets the property DeletedAt. /// <para> /// The time when the App Runner service was deleted. It's in the Unix time stamp format. /// </para> /// <ul> <li> /// <para> /// Type: Timestamp /// </para> /// </li> <li> /// <para> /// Required: No /// </para> /// </li> </ul> /// </summary> public DateTime DeletedAt { get { return this._deletedAt.GetValueOrDefault(); } set { this._deletedAt = value; } } // Check to see if DeletedAt property is set internal bool IsSetDeletedAt() { return this._deletedAt.HasValue; } /// <summary> /// Gets and sets the property DomainName. /// <para> /// The domain name associated with the VPC Ingress Connection resource. /// </para> /// </summary> [AWSProperty(Min=1, Max=255)] public string DomainName { get { return this._domainName; } set { this._domainName = value; } } // Check to see if DomainName property is set internal bool IsSetDomainName() { return this._domainName != null; } /// <summary> /// Gets and sets the property IngressVpcConfiguration. /// <para> /// Specifications for the customer’s VPC and related PrivateLink VPC endpoint that are /// used to associate with the VPC Ingress Connection resource. /// </para> /// </summary> public IngressVpcConfiguration IngressVpcConfiguration { get { return this._ingressVpcConfiguration; } set { this._ingressVpcConfiguration = value; } } // Check to see if IngressVpcConfiguration property is set internal bool IsSetIngressVpcConfiguration() { return this._ingressVpcConfiguration != null; } /// <summary> /// Gets and sets the property ServiceArn. /// <para> /// The Amazon Resource Name (ARN) of the service associated with the VPC Ingress Connection. /// /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string ServiceArn { get { return this._serviceArn; } set { this._serviceArn = value; } } // Check to see if ServiceArn property is set internal bool IsSetServiceArn() { return this._serviceArn != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The current status of the VPC Ingress Connection. The VPC Ingress Connection displays /// one of the following statuses: <code>AVAILABLE</code>, <code>PENDING_CREATION</code>, /// <code>PENDING_UPDATE</code>, <code>PENDING_DELETION</code>,<code>FAILED_CREATION</code>, /// <code>FAILED_UPDATE</code>, <code>FAILED_DELETION</code>, and <code>DELETED</code>.. /// /// </para> /// </summary> public VpcIngressConnectionStatus 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 VpcIngressConnectionArn. /// <para> /// The Amazon Resource Name (ARN) of the VPC Ingress Connection. /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string VpcIngressConnectionArn { get { return this._vpcIngressConnectionArn; } set { this._vpcIngressConnectionArn = value; } } // Check to see if VpcIngressConnectionArn property is set internal bool IsSetVpcIngressConnectionArn() { return this._vpcIngressConnectionArn != null; } /// <summary> /// Gets and sets the property VpcIngressConnectionName. /// <para> /// The customer-provided VPC Ingress Connection name. /// </para> /// </summary> [AWSProperty(Min=4, Max=40)] public string VpcIngressConnectionName { get { return this._vpcIngressConnectionName; } set { this._vpcIngressConnectionName = value; } } // Check to see if VpcIngressConnectionName property is set internal bool IsSetVpcIngressConnectionName() { return this._vpcIngressConnectionName != null; } } }
241
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model { /// <summary> /// Provides summary information about an VPC Ingress Connection, which includes its VPC /// Ingress Connection ARN and its associated Service ARN. /// </summary> public partial class VpcIngressConnectionSummary { private string _serviceArn; private string _vpcIngressConnectionArn; /// <summary> /// Gets and sets the property ServiceArn. /// <para> /// The Amazon Resource Name (ARN) of the service associated with the VPC Ingress Connection. /// /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string ServiceArn { get { return this._serviceArn; } set { this._serviceArn = value; } } // Check to see if ServiceArn property is set internal bool IsSetServiceArn() { return this._serviceArn != null; } /// <summary> /// Gets and sets the property VpcIngressConnectionArn. /// <para> /// The Amazon Resource Name (ARN) of the VPC Ingress Connection. /// </para> /// </summary> [AWSProperty(Min=1, Max=1011)] public string VpcIngressConnectionArn { get { return this._vpcIngressConnectionArn; } set { this._vpcIngressConnectionArn = value; } } // Check to see if VpcIngressConnectionArn property is set internal bool IsSetVpcIngressConnectionArn() { return this._vpcIngressConnectionArn != 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// AssociateCustomDomain Request Marshaller /// </summary> public class AssociateCustomDomainRequestMarshaller : IMarshaller<IRequest, AssociateCustomDomainRequest> , 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((AssociateCustomDomainRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(AssociateCustomDomainRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.AssociateCustomDomain"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDomainName()) { context.Writer.WritePropertyName("DomainName"); context.Writer.Write(publicRequest.DomainName); } if(publicRequest.IsSetEnableWWWSubdomain()) { context.Writer.WritePropertyName("EnableWWWSubdomain"); context.Writer.Write(publicRequest.EnableWWWSubdomain); } if(publicRequest.IsSetServiceArn()) { context.Writer.WritePropertyName("ServiceArn"); context.Writer.Write(publicRequest.ServiceArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static AssociateCustomDomainRequestMarshaller _instance = new AssociateCustomDomainRequestMarshaller(); internal static AssociateCustomDomainRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AssociateCustomDomainRequestMarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssociateCustomDomain operation /// </summary> public class AssociateCustomDomainResponseUnmarshaller : 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) { AssociateCustomDomainResponse response = new AssociateCustomDomainResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CustomDomain", targetDepth)) { var unmarshaller = CustomDomainUnmarshaller.Instance; response.CustomDomain = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DNSTarget", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DNSTarget = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ServiceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ServiceArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VpcDNSTargets", targetDepth)) { var unmarshaller = new ListUnmarshaller<VpcDNSTarget, VpcDNSTargetUnmarshaller>(VpcDNSTargetUnmarshaller.Instance); response.VpcDNSTargets = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidStateException")) { return InvalidStateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static AssociateCustomDomainResponseUnmarshaller _instance = new AssociateCustomDomainResponseUnmarshaller(); internal static AssociateCustomDomainResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AssociateCustomDomainResponseUnmarshaller Instance { get { return _instance; } } } }
136
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// AuthenticationConfiguration Marshaller /// </summary> public class AuthenticationConfigurationMarshaller : IRequestMarshaller<AuthenticationConfiguration, 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(AuthenticationConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAccessRoleArn()) { context.Writer.WritePropertyName("AccessRoleArn"); context.Writer.Write(requestObject.AccessRoleArn); } if(requestObject.IsSetConnectionArn()) { context.Writer.WritePropertyName("ConnectionArn"); context.Writer.Write(requestObject.ConnectionArn); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AuthenticationConfigurationMarshaller Instance = new AuthenticationConfigurationMarshaller(); } }
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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AuthenticationConfiguration Object /// </summary> public class AuthenticationConfigurationUnmarshaller : IUnmarshaller<AuthenticationConfiguration, XmlUnmarshallerContext>, IUnmarshaller<AuthenticationConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AuthenticationConfiguration IUnmarshaller<AuthenticationConfiguration, 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 AuthenticationConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AuthenticationConfiguration unmarshalledObject = new AuthenticationConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AccessRoleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AccessRoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ConnectionArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectionArn = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AuthenticationConfigurationUnmarshaller _instance = new AuthenticationConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AuthenticationConfigurationUnmarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AutoScalingConfigurationSummary Object /// </summary> public class AutoScalingConfigurationSummaryUnmarshaller : IUnmarshaller<AutoScalingConfigurationSummary, XmlUnmarshallerContext>, IUnmarshaller<AutoScalingConfigurationSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AutoScalingConfigurationSummary IUnmarshaller<AutoScalingConfigurationSummary, 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 AutoScalingConfigurationSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AutoScalingConfigurationSummary unmarshalledObject = new AutoScalingConfigurationSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AutoScalingConfigurationArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AutoScalingConfigurationArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AutoScalingConfigurationName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AutoScalingConfigurationName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AutoScalingConfigurationRevision", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.AutoScalingConfigurationRevision = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AutoScalingConfigurationSummaryUnmarshaller _instance = new AutoScalingConfigurationSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AutoScalingConfigurationSummaryUnmarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AutoScalingConfiguration Object /// </summary> public class AutoScalingConfigurationUnmarshaller : IUnmarshaller<AutoScalingConfiguration, XmlUnmarshallerContext>, IUnmarshaller<AutoScalingConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AutoScalingConfiguration IUnmarshaller<AutoScalingConfiguration, 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 AutoScalingConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AutoScalingConfiguration unmarshalledObject = new AutoScalingConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AutoScalingConfigurationArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AutoScalingConfigurationArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AutoScalingConfigurationName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AutoScalingConfigurationName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AutoScalingConfigurationRevision", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.AutoScalingConfigurationRevision = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DeletedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.DeletedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Latest", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.Latest = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MaxConcurrency", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaxConcurrency = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MaxSize", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaxSize = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MinSize", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MinSize = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AutoScalingConfigurationUnmarshaller _instance = new AutoScalingConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AutoScalingConfigurationUnmarshaller Instance { get { return _instance; } } } }
146
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CertificateValidationRecord Object /// </summary> public class CertificateValidationRecordUnmarshaller : IUnmarshaller<CertificateValidationRecord, XmlUnmarshallerContext>, IUnmarshaller<CertificateValidationRecord, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CertificateValidationRecord IUnmarshaller<CertificateValidationRecord, 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 CertificateValidationRecord Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CertificateValidationRecord unmarshalledObject = new CertificateValidationRecord(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CertificateValidationRecordUnmarshaller _instance = new CertificateValidationRecordUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CertificateValidationRecordUnmarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// CodeConfiguration Marshaller /// </summary> public class CodeConfigurationMarshaller : IRequestMarshaller<CodeConfiguration, 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(CodeConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCodeConfigurationValues()) { context.Writer.WritePropertyName("CodeConfigurationValues"); context.Writer.WriteObjectStart(); var marshaller = CodeConfigurationValuesMarshaller.Instance; marshaller.Marshall(requestObject.CodeConfigurationValues, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetConfigurationSource()) { context.Writer.WritePropertyName("ConfigurationSource"); context.Writer.Write(requestObject.ConfigurationSource); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CodeConfigurationMarshaller Instance = new CodeConfigurationMarshaller(); } }
73
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CodeConfiguration Object /// </summary> public class CodeConfigurationUnmarshaller : IUnmarshaller<CodeConfiguration, XmlUnmarshallerContext>, IUnmarshaller<CodeConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CodeConfiguration IUnmarshaller<CodeConfiguration, 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 CodeConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CodeConfiguration unmarshalledObject = new CodeConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CodeConfigurationValues", targetDepth)) { var unmarshaller = CodeConfigurationValuesUnmarshaller.Instance; unmarshalledObject.CodeConfigurationValues = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ConfigurationSource", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConfigurationSource = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CodeConfigurationUnmarshaller _instance = new CodeConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CodeConfigurationUnmarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// CodeConfigurationValues Marshaller /// </summary> public class CodeConfigurationValuesMarshaller : IRequestMarshaller<CodeConfigurationValues, 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(CodeConfigurationValues requestObject, JsonMarshallerContext context) { if(requestObject.IsSetBuildCommand()) { context.Writer.WritePropertyName("BuildCommand"); context.Writer.Write(requestObject.BuildCommand); } if(requestObject.IsSetPort()) { context.Writer.WritePropertyName("Port"); context.Writer.Write(requestObject.Port); } if(requestObject.IsSetRuntime()) { context.Writer.WritePropertyName("Runtime"); context.Writer.Write(requestObject.Runtime); } if(requestObject.IsSetRuntimeEnvironmentSecrets()) { context.Writer.WritePropertyName("RuntimeEnvironmentSecrets"); context.Writer.WriteObjectStart(); foreach (var requestObjectRuntimeEnvironmentSecretsKvp in requestObject.RuntimeEnvironmentSecrets) { context.Writer.WritePropertyName(requestObjectRuntimeEnvironmentSecretsKvp.Key); var requestObjectRuntimeEnvironmentSecretsValue = requestObjectRuntimeEnvironmentSecretsKvp.Value; context.Writer.Write(requestObjectRuntimeEnvironmentSecretsValue); } context.Writer.WriteObjectEnd(); } if(requestObject.IsSetRuntimeEnvironmentVariables()) { context.Writer.WritePropertyName("RuntimeEnvironmentVariables"); context.Writer.WriteObjectStart(); foreach (var requestObjectRuntimeEnvironmentVariablesKvp in requestObject.RuntimeEnvironmentVariables) { context.Writer.WritePropertyName(requestObjectRuntimeEnvironmentVariablesKvp.Key); var requestObjectRuntimeEnvironmentVariablesValue = requestObjectRuntimeEnvironmentVariablesKvp.Value; context.Writer.Write(requestObjectRuntimeEnvironmentVariablesValue); } context.Writer.WriteObjectEnd(); } if(requestObject.IsSetStartCommand()) { context.Writer.WritePropertyName("StartCommand"); context.Writer.Write(requestObject.StartCommand); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CodeConfigurationValuesMarshaller Instance = new CodeConfigurationValuesMarshaller(); } }
108
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CodeConfigurationValues Object /// </summary> public class CodeConfigurationValuesUnmarshaller : IUnmarshaller<CodeConfigurationValues, XmlUnmarshallerContext>, IUnmarshaller<CodeConfigurationValues, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CodeConfigurationValues IUnmarshaller<CodeConfigurationValues, 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 CodeConfigurationValues Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CodeConfigurationValues unmarshalledObject = new CodeConfigurationValues(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("BuildCommand", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BuildCommand = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Port", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Port = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Runtime", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Runtime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RuntimeEnvironmentSecrets", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.RuntimeEnvironmentSecrets = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RuntimeEnvironmentVariables", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.RuntimeEnvironmentVariables = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StartCommand", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StartCommand = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CodeConfigurationValuesUnmarshaller _instance = new CodeConfigurationValuesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CodeConfigurationValuesUnmarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// CodeRepository Marshaller /// </summary> public class CodeRepositoryMarshaller : IRequestMarshaller<CodeRepository, 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(CodeRepository requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCodeConfiguration()) { context.Writer.WritePropertyName("CodeConfiguration"); context.Writer.WriteObjectStart(); var marshaller = CodeConfigurationMarshaller.Instance; marshaller.Marshall(requestObject.CodeConfiguration, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetRepositoryUrl()) { context.Writer.WritePropertyName("RepositoryUrl"); context.Writer.Write(requestObject.RepositoryUrl); } if(requestObject.IsSetSourceCodeVersion()) { context.Writer.WritePropertyName("SourceCodeVersion"); context.Writer.WriteObjectStart(); var marshaller = SourceCodeVersionMarshaller.Instance; marshaller.Marshall(requestObject.SourceCodeVersion, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CodeRepositoryMarshaller Instance = new CodeRepositoryMarshaller(); } }
84
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CodeRepository Object /// </summary> public class CodeRepositoryUnmarshaller : IUnmarshaller<CodeRepository, XmlUnmarshallerContext>, IUnmarshaller<CodeRepository, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CodeRepository IUnmarshaller<CodeRepository, 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 CodeRepository Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CodeRepository unmarshalledObject = new CodeRepository(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CodeConfiguration", targetDepth)) { var unmarshaller = CodeConfigurationUnmarshaller.Instance; unmarshalledObject.CodeConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RepositoryUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RepositoryUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceCodeVersion", targetDepth)) { var unmarshaller = SourceCodeVersionUnmarshaller.Instance; unmarshalledObject.SourceCodeVersion = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CodeRepositoryUnmarshaller _instance = new CodeRepositoryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CodeRepositoryUnmarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConnectionSummary Object /// </summary> public class ConnectionSummaryUnmarshaller : IUnmarshaller<ConnectionSummary, XmlUnmarshallerContext>, IUnmarshaller<ConnectionSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ConnectionSummary IUnmarshaller<ConnectionSummary, 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 ConnectionSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ConnectionSummary unmarshalledObject = new ConnectionSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ConnectionArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectionArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ConnectionName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectionName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProviderType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ProviderType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConnectionSummaryUnmarshaller _instance = new ConnectionSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConnectionSummaryUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Connection Object /// </summary> public class ConnectionUnmarshaller : IUnmarshaller<Connection, XmlUnmarshallerContext>, IUnmarshaller<Connection, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Connection IUnmarshaller<Connection, 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 Connection Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Connection unmarshalledObject = new Connection(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ConnectionArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectionArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ConnectionName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectionName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProviderType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ProviderType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConnectionUnmarshaller _instance = new ConnectionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConnectionUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// CreateAutoScalingConfiguration Request Marshaller /// </summary> public class CreateAutoScalingConfigurationRequestMarshaller : IMarshaller<IRequest, CreateAutoScalingConfigurationRequest> , 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((CreateAutoScalingConfigurationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateAutoScalingConfigurationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.CreateAutoScalingConfiguration"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAutoScalingConfigurationName()) { context.Writer.WritePropertyName("AutoScalingConfigurationName"); context.Writer.Write(publicRequest.AutoScalingConfigurationName); } if(publicRequest.IsSetMaxConcurrency()) { context.Writer.WritePropertyName("MaxConcurrency"); context.Writer.Write(publicRequest.MaxConcurrency); } if(publicRequest.IsSetMaxSize()) { context.Writer.WritePropertyName("MaxSize"); context.Writer.Write(publicRequest.MaxSize); } if(publicRequest.IsSetMinSize()) { context.Writer.WritePropertyName("MinSize"); context.Writer.Write(publicRequest.MinSize); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateAutoScalingConfigurationRequestMarshaller _instance = new CreateAutoScalingConfigurationRequestMarshaller(); internal static CreateAutoScalingConfigurationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateAutoScalingConfigurationRequestMarshaller Instance { get { return _instance; } } } }
137
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateAutoScalingConfiguration operation /// </summary> public class CreateAutoScalingConfigurationResponseUnmarshaller : 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) { CreateAutoScalingConfigurationResponse response = new CreateAutoScalingConfigurationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AutoScalingConfiguration", targetDepth)) { var unmarshaller = AutoScalingConfigurationUnmarshaller.Instance; response.AutoScalingConfiguration = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateAutoScalingConfigurationResponseUnmarshaller _instance = new CreateAutoScalingConfigurationResponseUnmarshaller(); internal static CreateAutoScalingConfigurationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateAutoScalingConfigurationResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// CreateConnection Request Marshaller /// </summary> public class CreateConnectionRequestMarshaller : IMarshaller<IRequest, CreateConnectionRequest> , 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((CreateConnectionRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateConnectionRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.CreateConnection"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetConnectionName()) { context.Writer.WritePropertyName("ConnectionName"); context.Writer.Write(publicRequest.ConnectionName); } if(publicRequest.IsSetProviderType()) { context.Writer.WritePropertyName("ProviderType"); context.Writer.Write(publicRequest.ProviderType); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateConnectionRequestMarshaller _instance = new CreateConnectionRequestMarshaller(); internal static CreateConnectionRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateConnectionRequestMarshaller Instance { get { return _instance; } } } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateConnection operation /// </summary> public class CreateConnectionResponseUnmarshaller : 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) { CreateConnectionResponse response = new CreateConnectionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Connection", targetDepth)) { var unmarshaller = ConnectionUnmarshaller.Instance; response.Connection = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateConnectionResponseUnmarshaller _instance = new CreateConnectionResponseUnmarshaller(); internal static CreateConnectionResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateConnectionResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// CreateObservabilityConfiguration Request Marshaller /// </summary> public class CreateObservabilityConfigurationRequestMarshaller : IMarshaller<IRequest, CreateObservabilityConfigurationRequest> , 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((CreateObservabilityConfigurationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateObservabilityConfigurationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.CreateObservabilityConfiguration"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetObservabilityConfigurationName()) { context.Writer.WritePropertyName("ObservabilityConfigurationName"); context.Writer.Write(publicRequest.ObservabilityConfigurationName); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetTraceConfiguration()) { context.Writer.WritePropertyName("TraceConfiguration"); context.Writer.WriteObjectStart(); var marshaller = TraceConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.TraceConfiguration, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateObservabilityConfigurationRequestMarshaller _instance = new CreateObservabilityConfigurationRequestMarshaller(); internal static CreateObservabilityConfigurationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateObservabilityConfigurationRequestMarshaller Instance { get { return _instance; } } } }
130
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateObservabilityConfiguration operation /// </summary> public class CreateObservabilityConfigurationResponseUnmarshaller : 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) { CreateObservabilityConfigurationResponse response = new CreateObservabilityConfigurationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ObservabilityConfiguration", targetDepth)) { var unmarshaller = ObservabilityConfigurationUnmarshaller.Instance; response.ObservabilityConfiguration = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateObservabilityConfigurationResponseUnmarshaller _instance = new CreateObservabilityConfigurationResponseUnmarshaller(); internal static CreateObservabilityConfigurationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateObservabilityConfigurationResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// CreateService Request Marshaller /// </summary> public class CreateServiceRequestMarshaller : IMarshaller<IRequest, CreateServiceRequest> , 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((CreateServiceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateServiceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.CreateService"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAutoScalingConfigurationArn()) { context.Writer.WritePropertyName("AutoScalingConfigurationArn"); context.Writer.Write(publicRequest.AutoScalingConfigurationArn); } if(publicRequest.IsSetEncryptionConfiguration()) { context.Writer.WritePropertyName("EncryptionConfiguration"); context.Writer.WriteObjectStart(); var marshaller = EncryptionConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.EncryptionConfiguration, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetHealthCheckConfiguration()) { context.Writer.WritePropertyName("HealthCheckConfiguration"); context.Writer.WriteObjectStart(); var marshaller = HealthCheckConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.HealthCheckConfiguration, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetInstanceConfiguration()) { context.Writer.WritePropertyName("InstanceConfiguration"); context.Writer.WriteObjectStart(); var marshaller = InstanceConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.InstanceConfiguration, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetNetworkConfiguration()) { context.Writer.WritePropertyName("NetworkConfiguration"); context.Writer.WriteObjectStart(); var marshaller = NetworkConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.NetworkConfiguration, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetObservabilityConfiguration()) { context.Writer.WritePropertyName("ObservabilityConfiguration"); context.Writer.WriteObjectStart(); var marshaller = ServiceObservabilityConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.ObservabilityConfiguration, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetServiceName()) { context.Writer.WritePropertyName("ServiceName"); context.Writer.Write(publicRequest.ServiceName); } if(publicRequest.IsSetSourceConfiguration()) { context.Writer.WritePropertyName("SourceConfiguration"); context.Writer.WriteObjectStart(); var marshaller = SourceConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.SourceConfiguration, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateServiceRequestMarshaller _instance = new CreateServiceRequestMarshaller(); internal static CreateServiceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateServiceRequestMarshaller Instance { get { return _instance; } } } }
191
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateService operation /// </summary> public class CreateServiceResponseUnmarshaller : 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) { CreateServiceResponse response = new CreateServiceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("OperationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.OperationId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Service", targetDepth)) { var unmarshaller = ServiceUnmarshaller.Instance; response.Service = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateServiceResponseUnmarshaller _instance = new CreateServiceResponseUnmarshaller(); internal static CreateServiceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateServiceResponseUnmarshaller Instance { get { return _instance; } } } }
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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// CreateVpcConnector Request Marshaller /// </summary> public class CreateVpcConnectorRequestMarshaller : IMarshaller<IRequest, CreateVpcConnectorRequest> , 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((CreateVpcConnectorRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateVpcConnectorRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.CreateVpcConnector"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetSecurityGroups()) { context.Writer.WritePropertyName("SecurityGroups"); context.Writer.WriteArrayStart(); foreach(var publicRequestSecurityGroupsListValue in publicRequest.SecurityGroups) { context.Writer.Write(publicRequestSecurityGroupsListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetSubnets()) { context.Writer.WritePropertyName("Subnets"); context.Writer.WriteArrayStart(); foreach(var publicRequestSubnetsListValue in publicRequest.Subnets) { context.Writer.Write(publicRequestSubnetsListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetVpcConnectorName()) { context.Writer.WritePropertyName("VpcConnectorName"); context.Writer.Write(publicRequest.VpcConnectorName); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateVpcConnectorRequestMarshaller _instance = new CreateVpcConnectorRequestMarshaller(); internal static CreateVpcConnectorRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateVpcConnectorRequestMarshaller Instance { get { return _instance; } } } }
141
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateVpcConnector operation /// </summary> public class CreateVpcConnectorResponseUnmarshaller : 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) { CreateVpcConnectorResponse response = new CreateVpcConnectorResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("VpcConnector", targetDepth)) { var unmarshaller = VpcConnectorUnmarshaller.Instance; response.VpcConnector = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateVpcConnectorResponseUnmarshaller _instance = new CreateVpcConnectorResponseUnmarshaller(); internal static CreateVpcConnectorResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateVpcConnectorResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// CreateVpcIngressConnection Request Marshaller /// </summary> public class CreateVpcIngressConnectionRequestMarshaller : IMarshaller<IRequest, CreateVpcIngressConnectionRequest> , 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((CreateVpcIngressConnectionRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateVpcIngressConnectionRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.CreateVpcIngressConnection"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetIngressVpcConfiguration()) { context.Writer.WritePropertyName("IngressVpcConfiguration"); context.Writer.WriteObjectStart(); var marshaller = IngressVpcConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.IngressVpcConfiguration, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetServiceArn()) { context.Writer.WritePropertyName("ServiceArn"); context.Writer.Write(publicRequest.ServiceArn); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetVpcIngressConnectionName()) { context.Writer.WritePropertyName("VpcIngressConnectionName"); context.Writer.Write(publicRequest.VpcIngressConnectionName); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateVpcIngressConnectionRequestMarshaller _instance = new CreateVpcIngressConnectionRequestMarshaller(); internal static CreateVpcIngressConnectionRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateVpcIngressConnectionRequestMarshaller Instance { get { return _instance; } } } }
136
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateVpcIngressConnection operation /// </summary> public class CreateVpcIngressConnectionResponseUnmarshaller : 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) { CreateVpcIngressConnectionResponse response = new CreateVpcIngressConnectionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("VpcIngressConnection", targetDepth)) { var unmarshaller = VpcIngressConnectionUnmarshaller.Instance; response.VpcIngressConnection = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidStateException")) { return InvalidStateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateVpcIngressConnectionResponseUnmarshaller _instance = new CreateVpcIngressConnectionResponseUnmarshaller(); internal static CreateVpcIngressConnectionResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateVpcIngressConnectionResponseUnmarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CustomDomain Object /// </summary> public class CustomDomainUnmarshaller : IUnmarshaller<CustomDomain, XmlUnmarshallerContext>, IUnmarshaller<CustomDomain, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CustomDomain IUnmarshaller<CustomDomain, 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 CustomDomain Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CustomDomain unmarshalledObject = new CustomDomain(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CertificateValidationRecords", targetDepth)) { var unmarshaller = new ListUnmarshaller<CertificateValidationRecord, CertificateValidationRecordUnmarshaller>(CertificateValidationRecordUnmarshaller.Instance); unmarshalledObject.CertificateValidationRecords = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DomainName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DomainName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EnableWWWSubdomain", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.EnableWWWSubdomain = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CustomDomainUnmarshaller _instance = new CustomDomainUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CustomDomainUnmarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// DeleteAutoScalingConfiguration Request Marshaller /// </summary> public class DeleteAutoScalingConfigurationRequestMarshaller : IMarshaller<IRequest, DeleteAutoScalingConfigurationRequest> , 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((DeleteAutoScalingConfigurationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteAutoScalingConfigurationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.DeleteAutoScalingConfiguration"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAutoScalingConfigurationArn()) { context.Writer.WritePropertyName("AutoScalingConfigurationArn"); context.Writer.Write(publicRequest.AutoScalingConfigurationArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DeleteAutoScalingConfigurationRequestMarshaller _instance = new DeleteAutoScalingConfigurationRequestMarshaller(); internal static DeleteAutoScalingConfigurationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteAutoScalingConfigurationRequestMarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteAutoScalingConfiguration operation /// </summary> public class DeleteAutoScalingConfigurationResponseUnmarshaller : 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) { DeleteAutoScalingConfigurationResponse response = new DeleteAutoScalingConfigurationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AutoScalingConfiguration", targetDepth)) { var unmarshaller = AutoScalingConfigurationUnmarshaller.Instance; response.AutoScalingConfiguration = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteAutoScalingConfigurationResponseUnmarshaller _instance = new DeleteAutoScalingConfigurationResponseUnmarshaller(); internal static DeleteAutoScalingConfigurationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteAutoScalingConfigurationResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// DeleteConnection Request Marshaller /// </summary> public class DeleteConnectionRequestMarshaller : IMarshaller<IRequest, DeleteConnectionRequest> , 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((DeleteConnectionRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteConnectionRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.DeleteConnection"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetConnectionArn()) { context.Writer.WritePropertyName("ConnectionArn"); context.Writer.Write(publicRequest.ConnectionArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DeleteConnectionRequestMarshaller _instance = new DeleteConnectionRequestMarshaller(); internal static DeleteConnectionRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteConnectionRequestMarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteConnection operation /// </summary> public class DeleteConnectionResponseUnmarshaller : 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) { DeleteConnectionResponse response = new DeleteConnectionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Connection", targetDepth)) { var unmarshaller = ConnectionUnmarshaller.Instance; response.Connection = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteConnectionResponseUnmarshaller _instance = new DeleteConnectionResponseUnmarshaller(); internal static DeleteConnectionResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteConnectionResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// DeleteObservabilityConfiguration Request Marshaller /// </summary> public class DeleteObservabilityConfigurationRequestMarshaller : IMarshaller<IRequest, DeleteObservabilityConfigurationRequest> , 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((DeleteObservabilityConfigurationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteObservabilityConfigurationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.DeleteObservabilityConfiguration"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetObservabilityConfigurationArn()) { context.Writer.WritePropertyName("ObservabilityConfigurationArn"); context.Writer.Write(publicRequest.ObservabilityConfigurationArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DeleteObservabilityConfigurationRequestMarshaller _instance = new DeleteObservabilityConfigurationRequestMarshaller(); internal static DeleteObservabilityConfigurationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteObservabilityConfigurationRequestMarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteObservabilityConfiguration operation /// </summary> public class DeleteObservabilityConfigurationResponseUnmarshaller : 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) { DeleteObservabilityConfigurationResponse response = new DeleteObservabilityConfigurationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ObservabilityConfiguration", targetDepth)) { var unmarshaller = ObservabilityConfigurationUnmarshaller.Instance; response.ObservabilityConfiguration = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteObservabilityConfigurationResponseUnmarshaller _instance = new DeleteObservabilityConfigurationResponseUnmarshaller(); internal static DeleteObservabilityConfigurationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteObservabilityConfigurationResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// DeleteService Request Marshaller /// </summary> public class DeleteServiceRequestMarshaller : IMarshaller<IRequest, DeleteServiceRequest> , 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((DeleteServiceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteServiceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.DeleteService"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetServiceArn()) { context.Writer.WritePropertyName("ServiceArn"); context.Writer.Write(publicRequest.ServiceArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DeleteServiceRequestMarshaller _instance = new DeleteServiceRequestMarshaller(); internal static DeleteServiceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteServiceRequestMarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteService operation /// </summary> public class DeleteServiceResponseUnmarshaller : 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) { DeleteServiceResponse response = new DeleteServiceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("OperationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.OperationId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Service", targetDepth)) { var unmarshaller = ServiceUnmarshaller.Instance; response.Service = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidStateException")) { return InvalidStateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteServiceResponseUnmarshaller _instance = new DeleteServiceResponseUnmarshaller(); internal static DeleteServiceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteServiceResponseUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// DeleteVpcConnector Request Marshaller /// </summary> public class DeleteVpcConnectorRequestMarshaller : IMarshaller<IRequest, DeleteVpcConnectorRequest> , 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((DeleteVpcConnectorRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteVpcConnectorRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.DeleteVpcConnector"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetVpcConnectorArn()) { context.Writer.WritePropertyName("VpcConnectorArn"); context.Writer.Write(publicRequest.VpcConnectorArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DeleteVpcConnectorRequestMarshaller _instance = new DeleteVpcConnectorRequestMarshaller(); internal static DeleteVpcConnectorRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteVpcConnectorRequestMarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteVpcConnector operation /// </summary> public class DeleteVpcConnectorResponseUnmarshaller : 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) { DeleteVpcConnectorResponse response = new DeleteVpcConnectorResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("VpcConnector", targetDepth)) { var unmarshaller = VpcConnectorUnmarshaller.Instance; response.VpcConnector = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteVpcConnectorResponseUnmarshaller _instance = new DeleteVpcConnectorResponseUnmarshaller(); internal static DeleteVpcConnectorResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteVpcConnectorResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// DeleteVpcIngressConnection Request Marshaller /// </summary> public class DeleteVpcIngressConnectionRequestMarshaller : IMarshaller<IRequest, DeleteVpcIngressConnectionRequest> , 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((DeleteVpcIngressConnectionRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteVpcIngressConnectionRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.DeleteVpcIngressConnection"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetVpcIngressConnectionArn()) { context.Writer.WritePropertyName("VpcIngressConnectionArn"); context.Writer.Write(publicRequest.VpcIngressConnectionArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DeleteVpcIngressConnectionRequestMarshaller _instance = new DeleteVpcIngressConnectionRequestMarshaller(); internal static DeleteVpcIngressConnectionRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteVpcIngressConnectionRequestMarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteVpcIngressConnection operation /// </summary> public class DeleteVpcIngressConnectionResponseUnmarshaller : 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) { DeleteVpcIngressConnectionResponse response = new DeleteVpcIngressConnectionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("VpcIngressConnection", targetDepth)) { var unmarshaller = VpcIngressConnectionUnmarshaller.Instance; response.VpcIngressConnection = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidStateException")) { return InvalidStateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteVpcIngressConnectionResponseUnmarshaller _instance = new DeleteVpcIngressConnectionResponseUnmarshaller(); internal static DeleteVpcIngressConnectionResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteVpcIngressConnectionResponseUnmarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// DescribeAutoScalingConfiguration Request Marshaller /// </summary> public class DescribeAutoScalingConfigurationRequestMarshaller : IMarshaller<IRequest, DescribeAutoScalingConfigurationRequest> , 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((DescribeAutoScalingConfigurationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeAutoScalingConfigurationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.DescribeAutoScalingConfiguration"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAutoScalingConfigurationArn()) { context.Writer.WritePropertyName("AutoScalingConfigurationArn"); context.Writer.Write(publicRequest.AutoScalingConfigurationArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeAutoScalingConfigurationRequestMarshaller _instance = new DescribeAutoScalingConfigurationRequestMarshaller(); internal static DescribeAutoScalingConfigurationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeAutoScalingConfigurationRequestMarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeAutoScalingConfiguration operation /// </summary> public class DescribeAutoScalingConfigurationResponseUnmarshaller : 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) { DescribeAutoScalingConfigurationResponse response = new DescribeAutoScalingConfigurationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AutoScalingConfiguration", targetDepth)) { var unmarshaller = AutoScalingConfigurationUnmarshaller.Instance; response.AutoScalingConfiguration = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeAutoScalingConfigurationResponseUnmarshaller _instance = new DescribeAutoScalingConfigurationResponseUnmarshaller(); internal static DescribeAutoScalingConfigurationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeAutoScalingConfigurationResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// DescribeCustomDomains Request Marshaller /// </summary> public class DescribeCustomDomainsRequestMarshaller : IMarshaller<IRequest, DescribeCustomDomainsRequest> , 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((DescribeCustomDomainsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeCustomDomainsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.DescribeCustomDomains"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("MaxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("NextToken"); context.Writer.Write(publicRequest.NextToken); } if(publicRequest.IsSetServiceArn()) { context.Writer.WritePropertyName("ServiceArn"); context.Writer.Write(publicRequest.ServiceArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeCustomDomainsRequestMarshaller _instance = new DescribeCustomDomainsRequestMarshaller(); internal static DescribeCustomDomainsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeCustomDomainsRequestMarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeCustomDomains operation /// </summary> public class DescribeCustomDomainsResponseUnmarshaller : 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) { DescribeCustomDomainsResponse response = new DescribeCustomDomainsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CustomDomains", targetDepth)) { var unmarshaller = new ListUnmarshaller<CustomDomain, CustomDomainUnmarshaller>(CustomDomainUnmarshaller.Instance); response.CustomDomains = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DNSTarget", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DNSTarget = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ServiceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ServiceArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VpcDNSTargets", targetDepth)) { var unmarshaller = new ListUnmarshaller<VpcDNSTarget, VpcDNSTargetUnmarshaller>(VpcDNSTargetUnmarshaller.Instance); response.VpcDNSTargets = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeCustomDomainsResponseUnmarshaller _instance = new DescribeCustomDomainsResponseUnmarshaller(); internal static DescribeCustomDomainsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeCustomDomainsResponseUnmarshaller Instance { get { return _instance; } } } }
142
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// DescribeObservabilityConfiguration Request Marshaller /// </summary> public class DescribeObservabilityConfigurationRequestMarshaller : IMarshaller<IRequest, DescribeObservabilityConfigurationRequest> , 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((DescribeObservabilityConfigurationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeObservabilityConfigurationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.DescribeObservabilityConfiguration"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetObservabilityConfigurationArn()) { context.Writer.WritePropertyName("ObservabilityConfigurationArn"); context.Writer.Write(publicRequest.ObservabilityConfigurationArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeObservabilityConfigurationRequestMarshaller _instance = new DescribeObservabilityConfigurationRequestMarshaller(); internal static DescribeObservabilityConfigurationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeObservabilityConfigurationRequestMarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeObservabilityConfiguration operation /// </summary> public class DescribeObservabilityConfigurationResponseUnmarshaller : 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) { DescribeObservabilityConfigurationResponse response = new DescribeObservabilityConfigurationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ObservabilityConfiguration", targetDepth)) { var unmarshaller = ObservabilityConfigurationUnmarshaller.Instance; response.ObservabilityConfiguration = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeObservabilityConfigurationResponseUnmarshaller _instance = new DescribeObservabilityConfigurationResponseUnmarshaller(); internal static DescribeObservabilityConfigurationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeObservabilityConfigurationResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// DescribeService Request Marshaller /// </summary> public class DescribeServiceRequestMarshaller : IMarshaller<IRequest, DescribeServiceRequest> , 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((DescribeServiceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeServiceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner"); string target = "AppRunner.DescribeService"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-05-15"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetServiceArn()) { context.Writer.WritePropertyName("ServiceArn"); context.Writer.Write(publicRequest.ServiceArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeServiceRequestMarshaller _instance = new DescribeServiceRequestMarshaller(); internal static DescribeServiceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeServiceRequestMarshaller 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 apprunner-2020-05-15.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.AppRunner.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppRunner.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeService operation /// </summary> public class DescribeServiceResponseUnmarshaller : 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) { DescribeServiceResponse response = new DescribeServiceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Service", targetDepth)) { var unmarshaller = ServiceUnmarshaller.Instance; response.Service = 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("InternalServiceErrorException")) { return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeServiceResponseUnmarshaller _instance = new DescribeServiceResponseUnmarshaller(); internal static DescribeServiceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeServiceResponseUnmarshaller Instance { get { return _instance; } } } }
118