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.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>
/// DescribeVpcConnector Request Marshaller
/// </summary>
public class DescribeVpcConnectorRequestMarshaller : IMarshaller<IRequest, DescribeVpcConnectorRequest> , 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((DescribeVpcConnectorRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeVpcConnectorRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.DescribeVpcConnector";
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 DescribeVpcConnectorRequestMarshaller _instance = new DescribeVpcConnectorRequestMarshaller();
internal static DescribeVpcConnectorRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeVpcConnectorRequestMarshaller 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 DescribeVpcConnector operation
/// </summary>
public class DescribeVpcConnectorResponseUnmarshaller : 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)
{
DescribeVpcConnectorResponse response = new DescribeVpcConnectorResponse();
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 DescribeVpcConnectorResponseUnmarshaller _instance = new DescribeVpcConnectorResponseUnmarshaller();
internal static DescribeVpcConnectorResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeVpcConnectorResponseUnmarshaller 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>
/// DescribeVpcIngressConnection Request Marshaller
/// </summary>
public class DescribeVpcIngressConnectionRequestMarshaller : IMarshaller<IRequest, DescribeVpcIngressConnectionRequest> , 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((DescribeVpcIngressConnectionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeVpcIngressConnectionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.DescribeVpcIngressConnection";
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 DescribeVpcIngressConnectionRequestMarshaller _instance = new DescribeVpcIngressConnectionRequestMarshaller();
internal static DescribeVpcIngressConnectionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeVpcIngressConnectionRequestMarshaller 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 DescribeVpcIngressConnection operation
/// </summary>
public class DescribeVpcIngressConnectionResponseUnmarshaller : 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)
{
DescribeVpcIngressConnectionResponse response = new DescribeVpcIngressConnectionResponse();
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("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeVpcIngressConnectionResponseUnmarshaller _instance = new DescribeVpcIngressConnectionResponseUnmarshaller();
internal static DescribeVpcIngressConnectionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeVpcIngressConnectionResponseUnmarshaller 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>
/// DisassociateCustomDomain Request Marshaller
/// </summary>
public class DisassociateCustomDomainRequestMarshaller : IMarshaller<IRequest, DisassociateCustomDomainRequest> , 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((DisassociateCustomDomainRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DisassociateCustomDomainRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.DisassociateCustomDomain";
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.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 DisassociateCustomDomainRequestMarshaller _instance = new DisassociateCustomDomainRequestMarshaller();
internal static DisassociateCustomDomainRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DisassociateCustomDomainRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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.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 DisassociateCustomDomain operation
/// </summary>
public class DisassociateCustomDomainResponseUnmarshaller : 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)
{
DisassociateCustomDomainResponse response = new DisassociateCustomDomainResponse();
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);
}
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 DisassociateCustomDomainResponseUnmarshaller _instance = new DisassociateCustomDomainResponseUnmarshaller();
internal static DisassociateCustomDomainResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DisassociateCustomDomainResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 140 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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>
/// EgressConfiguration Marshaller
/// </summary>
public class EgressConfigurationMarshaller : IRequestMarshaller<EgressConfiguration, 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(EgressConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetEgressType())
{
context.Writer.WritePropertyName("EgressType");
context.Writer.Write(requestObject.EgressType);
}
if(requestObject.IsSetVpcConnectorArn())
{
context.Writer.WritePropertyName("VpcConnectorArn");
context.Writer.Write(requestObject.VpcConnectorArn);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static EgressConfigurationMarshaller Instance = new EgressConfigurationMarshaller();
}
} | 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 EgressConfiguration Object
/// </summary>
public class EgressConfigurationUnmarshaller : IUnmarshaller<EgressConfiguration, XmlUnmarshallerContext>, IUnmarshaller<EgressConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
EgressConfiguration IUnmarshaller<EgressConfiguration, 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 EgressConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
EgressConfiguration unmarshalledObject = new EgressConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("EgressType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EgressType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VpcConnectorArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.VpcConnectorArn = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static EgressConfigurationUnmarshaller _instance = new EgressConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static EgressConfigurationUnmarshaller 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>
/// EncryptionConfiguration Marshaller
/// </summary>
public class EncryptionConfigurationMarshaller : IRequestMarshaller<EncryptionConfiguration, 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(EncryptionConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetKmsKey())
{
context.Writer.WritePropertyName("KmsKey");
context.Writer.Write(requestObject.KmsKey);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static EncryptionConfigurationMarshaller Instance = new EncryptionConfigurationMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 EncryptionConfiguration Object
/// </summary>
public class EncryptionConfigurationUnmarshaller : IUnmarshaller<EncryptionConfiguration, XmlUnmarshallerContext>, IUnmarshaller<EncryptionConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
EncryptionConfiguration IUnmarshaller<EncryptionConfiguration, 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 EncryptionConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
EncryptionConfiguration unmarshalledObject = new EncryptionConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("KmsKey", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.KmsKey = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static EncryptionConfigurationUnmarshaller _instance = new EncryptionConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static EncryptionConfigurationUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// HealthCheckConfiguration Marshaller
/// </summary>
public class HealthCheckConfigurationMarshaller : IRequestMarshaller<HealthCheckConfiguration, 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(HealthCheckConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetHealthyThreshold())
{
context.Writer.WritePropertyName("HealthyThreshold");
context.Writer.Write(requestObject.HealthyThreshold);
}
if(requestObject.IsSetInterval())
{
context.Writer.WritePropertyName("Interval");
context.Writer.Write(requestObject.Interval);
}
if(requestObject.IsSetPath())
{
context.Writer.WritePropertyName("Path");
context.Writer.Write(requestObject.Path);
}
if(requestObject.IsSetProtocol())
{
context.Writer.WritePropertyName("Protocol");
context.Writer.Write(requestObject.Protocol);
}
if(requestObject.IsSetTimeout())
{
context.Writer.WritePropertyName("Timeout");
context.Writer.Write(requestObject.Timeout);
}
if(requestObject.IsSetUnhealthyThreshold())
{
context.Writer.WritePropertyName("UnhealthyThreshold");
context.Writer.Write(requestObject.UnhealthyThreshold);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static HealthCheckConfigurationMarshaller Instance = new HealthCheckConfigurationMarshaller();
}
} | 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.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 HealthCheckConfiguration Object
/// </summary>
public class HealthCheckConfigurationUnmarshaller : IUnmarshaller<HealthCheckConfiguration, XmlUnmarshallerContext>, IUnmarshaller<HealthCheckConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
HealthCheckConfiguration IUnmarshaller<HealthCheckConfiguration, 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 HealthCheckConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
HealthCheckConfiguration unmarshalledObject = new HealthCheckConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("HealthyThreshold", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.HealthyThreshold = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Interval", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Interval = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Path", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Path = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Protocol", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Protocol = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Timeout", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Timeout = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("UnhealthyThreshold", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.UnhealthyThreshold = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static HealthCheckConfigurationUnmarshaller _instance = new HealthCheckConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static HealthCheckConfigurationUnmarshaller 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>
/// ImageConfiguration Marshaller
/// </summary>
public class ImageConfigurationMarshaller : IRequestMarshaller<ImageConfiguration, 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(ImageConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetPort())
{
context.Writer.WritePropertyName("Port");
context.Writer.Write(requestObject.Port);
}
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 ImageConfigurationMarshaller Instance = new ImageConfigurationMarshaller();
}
} | 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.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 ImageConfiguration Object
/// </summary>
public class ImageConfigurationUnmarshaller : IUnmarshaller<ImageConfiguration, XmlUnmarshallerContext>, IUnmarshaller<ImageConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ImageConfiguration IUnmarshaller<ImageConfiguration, 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 ImageConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ImageConfiguration unmarshalledObject = new ImageConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Port", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Port = 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 ImageConfigurationUnmarshaller _instance = new ImageConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ImageConfigurationUnmarshaller 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>
/// ImageRepository Marshaller
/// </summary>
public class ImageRepositoryMarshaller : IRequestMarshaller<ImageRepository, 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(ImageRepository requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetImageConfiguration())
{
context.Writer.WritePropertyName("ImageConfiguration");
context.Writer.WriteObjectStart();
var marshaller = ImageConfigurationMarshaller.Instance;
marshaller.Marshall(requestObject.ImageConfiguration, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetImageIdentifier())
{
context.Writer.WritePropertyName("ImageIdentifier");
context.Writer.Write(requestObject.ImageIdentifier);
}
if(requestObject.IsSetImageRepositoryType())
{
context.Writer.WritePropertyName("ImageRepositoryType");
context.Writer.Write(requestObject.ImageRepositoryType);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ImageRepositoryMarshaller Instance = new ImageRepositoryMarshaller();
}
} | 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.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 ImageRepository Object
/// </summary>
public class ImageRepositoryUnmarshaller : IUnmarshaller<ImageRepository, XmlUnmarshallerContext>, IUnmarshaller<ImageRepository, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ImageRepository IUnmarshaller<ImageRepository, 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 ImageRepository Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ImageRepository unmarshalledObject = new ImageRepository();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ImageConfiguration", targetDepth))
{
var unmarshaller = ImageConfigurationUnmarshaller.Instance;
unmarshalledObject.ImageConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ImageIdentifier", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ImageIdentifier = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ImageRepositoryType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ImageRepositoryType = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ImageRepositoryUnmarshaller _instance = new ImageRepositoryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ImageRepositoryUnmarshaller 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.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>
/// IngressConfiguration Marshaller
/// </summary>
public class IngressConfigurationMarshaller : IRequestMarshaller<IngressConfiguration, 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(IngressConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetIsPubliclyAccessible())
{
context.Writer.WritePropertyName("IsPubliclyAccessible");
context.Writer.Write(requestObject.IsPubliclyAccessible);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static IngressConfigurationMarshaller Instance = new IngressConfigurationMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 IngressConfiguration Object
/// </summary>
public class IngressConfigurationUnmarshaller : IUnmarshaller<IngressConfiguration, XmlUnmarshallerContext>, IUnmarshaller<IngressConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
IngressConfiguration IUnmarshaller<IngressConfiguration, 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 IngressConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
IngressConfiguration unmarshalledObject = new IngressConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("IsPubliclyAccessible", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.IsPubliclyAccessible = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static IngressConfigurationUnmarshaller _instance = new IngressConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static IngressConfigurationUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// IngressVpcConfiguration Marshaller
/// </summary>
public class IngressVpcConfigurationMarshaller : IRequestMarshaller<IngressVpcConfiguration, 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(IngressVpcConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetVpcEndpointId())
{
context.Writer.WritePropertyName("VpcEndpointId");
context.Writer.Write(requestObject.VpcEndpointId);
}
if(requestObject.IsSetVpcId())
{
context.Writer.WritePropertyName("VpcId");
context.Writer.Write(requestObject.VpcId);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static IngressVpcConfigurationMarshaller Instance = new IngressVpcConfigurationMarshaller();
}
} | 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 IngressVpcConfiguration Object
/// </summary>
public class IngressVpcConfigurationUnmarshaller : IUnmarshaller<IngressVpcConfiguration, XmlUnmarshallerContext>, IUnmarshaller<IngressVpcConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
IngressVpcConfiguration IUnmarshaller<IngressVpcConfiguration, 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 IngressVpcConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
IngressVpcConfiguration unmarshalledObject = new IngressVpcConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("VpcEndpointId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.VpcEndpointId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VpcId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.VpcId = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static IngressVpcConfigurationUnmarshaller _instance = new IngressVpcConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static IngressVpcConfigurationUnmarshaller 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>
/// InstanceConfiguration Marshaller
/// </summary>
public class InstanceConfigurationMarshaller : IRequestMarshaller<InstanceConfiguration, 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(InstanceConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetCpu())
{
context.Writer.WritePropertyName("Cpu");
context.Writer.Write(requestObject.Cpu);
}
if(requestObject.IsSetInstanceRoleArn())
{
context.Writer.WritePropertyName("InstanceRoleArn");
context.Writer.Write(requestObject.InstanceRoleArn);
}
if(requestObject.IsSetMemory())
{
context.Writer.WritePropertyName("Memory");
context.Writer.Write(requestObject.Memory);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static InstanceConfigurationMarshaller Instance = new InstanceConfigurationMarshaller();
}
} | 74 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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 InstanceConfiguration Object
/// </summary>
public class InstanceConfigurationUnmarshaller : IUnmarshaller<InstanceConfiguration, XmlUnmarshallerContext>, IUnmarshaller<InstanceConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
InstanceConfiguration IUnmarshaller<InstanceConfiguration, 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 InstanceConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
InstanceConfiguration unmarshalledObject = new InstanceConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Cpu", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Cpu = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("InstanceRoleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.InstanceRoleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Memory", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Memory = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static InstanceConfigurationUnmarshaller _instance = new InstanceConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InstanceConfigurationUnmarshaller 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 InternalServiceErrorException Object
/// </summary>
public class InternalServiceErrorExceptionUnmarshaller : IErrorResponseUnmarshaller<InternalServiceErrorException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InternalServiceErrorException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public InternalServiceErrorException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InternalServiceErrorException unmarshalledObject = new InternalServiceErrorException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InternalServiceErrorExceptionUnmarshaller _instance = new InternalServiceErrorExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InternalServiceErrorExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 InvalidRequestException Object
/// </summary>
public class InvalidRequestExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidRequestException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InvalidRequestException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public InvalidRequestException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InvalidRequestException unmarshalledObject = new InvalidRequestException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InvalidRequestExceptionUnmarshaller _instance = new InvalidRequestExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InvalidRequestExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 InvalidStateException Object
/// </summary>
public class InvalidStateExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidStateException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InvalidStateException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public InvalidStateException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InvalidStateException unmarshalledObject = new InvalidStateException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InvalidStateExceptionUnmarshaller _instance = new InvalidStateExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InvalidStateExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// ListAutoScalingConfigurations Request Marshaller
/// </summary>
public class ListAutoScalingConfigurationsRequestMarshaller : IMarshaller<IRequest, ListAutoScalingConfigurationsRequest> , 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((ListAutoScalingConfigurationsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListAutoScalingConfigurationsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.ListAutoScalingConfigurations";
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.IsSetLatestOnly())
{
context.Writer.WritePropertyName("LatestOnly");
context.Writer.Write(publicRequest.LatestOnly);
}
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("MaxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("NextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListAutoScalingConfigurationsRequestMarshaller _instance = new ListAutoScalingConfigurationsRequestMarshaller();
internal static ListAutoScalingConfigurationsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListAutoScalingConfigurationsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 121 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 ListAutoScalingConfigurations operation
/// </summary>
public class ListAutoScalingConfigurationsResponseUnmarshaller : 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)
{
ListAutoScalingConfigurationsResponse response = new ListAutoScalingConfigurationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AutoScalingConfigurationSummaryList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<AutoScalingConfigurationSummary, AutoScalingConfigurationSummaryUnmarshaller>(AutoScalingConfigurationSummaryUnmarshaller.Instance);
response.AutoScalingConfigurationSummaryList = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceErrorException"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListAutoScalingConfigurationsResponseUnmarshaller _instance = new ListAutoScalingConfigurationsResponseUnmarshaller();
internal static ListAutoScalingConfigurationsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListAutoScalingConfigurationsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// ListConnections Request Marshaller
/// </summary>
public class ListConnectionsRequestMarshaller : IMarshaller<IRequest, ListConnectionsRequest> , 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((ListConnectionsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListConnectionsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.ListConnections";
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.IsSetMaxResults())
{
context.Writer.WritePropertyName("MaxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("NextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListConnectionsRequestMarshaller _instance = new ListConnectionsRequestMarshaller();
internal static ListConnectionsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListConnectionsRequestMarshaller 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 ListConnections operation
/// </summary>
public class ListConnectionsResponseUnmarshaller : 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)
{
ListConnectionsResponse response = new ListConnectionsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ConnectionSummaryList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ConnectionSummary, ConnectionSummaryUnmarshaller>(ConnectionSummaryUnmarshaller.Instance);
response.ConnectionSummaryList = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceErrorException"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListConnectionsResponseUnmarshaller _instance = new ListConnectionsResponseUnmarshaller();
internal static ListConnectionsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListConnectionsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// ListObservabilityConfigurations Request Marshaller
/// </summary>
public class ListObservabilityConfigurationsRequestMarshaller : IMarshaller<IRequest, ListObservabilityConfigurationsRequest> , 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((ListObservabilityConfigurationsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListObservabilityConfigurationsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.ListObservabilityConfigurations";
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.IsSetLatestOnly())
{
context.Writer.WritePropertyName("LatestOnly");
context.Writer.Write(publicRequest.LatestOnly);
}
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.IsSetObservabilityConfigurationName())
{
context.Writer.WritePropertyName("ObservabilityConfigurationName");
context.Writer.Write(publicRequest.ObservabilityConfigurationName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListObservabilityConfigurationsRequestMarshaller _instance = new ListObservabilityConfigurationsRequestMarshaller();
internal static ListObservabilityConfigurationsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListObservabilityConfigurationsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 121 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 ListObservabilityConfigurations operation
/// </summary>
public class ListObservabilityConfigurationsResponseUnmarshaller : 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)
{
ListObservabilityConfigurationsResponse response = new ListObservabilityConfigurationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ObservabilityConfigurationSummaryList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ObservabilityConfigurationSummary, ObservabilityConfigurationSummaryUnmarshaller>(ObservabilityConfigurationSummaryUnmarshaller.Instance);
response.ObservabilityConfigurationSummaryList = 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);
}
}
return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListObservabilityConfigurationsResponseUnmarshaller _instance = new ListObservabilityConfigurationsResponseUnmarshaller();
internal static ListObservabilityConfigurationsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListObservabilityConfigurationsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// ListOperations Request Marshaller
/// </summary>
public class ListOperationsRequestMarshaller : IMarshaller<IRequest, ListOperationsRequest> , 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((ListOperationsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListOperationsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.ListOperations";
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 ListOperationsRequestMarshaller _instance = new ListOperationsRequestMarshaller();
internal static ListOperationsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListOperationsRequestMarshaller 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 ListOperations operation
/// </summary>
public class ListOperationsResponseUnmarshaller : 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)
{
ListOperationsResponse response = new ListOperationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("OperationSummaryList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<OperationSummary, OperationSummaryUnmarshaller>(OperationSummaryUnmarshaller.Instance);
response.OperationSummaryList = 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 ListOperationsResponseUnmarshaller _instance = new ListOperationsResponseUnmarshaller();
internal static ListOperationsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListOperationsResponseUnmarshaller 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>
/// ListServices Request Marshaller
/// </summary>
public class ListServicesRequestMarshaller : IMarshaller<IRequest, ListServicesRequest> , 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((ListServicesRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListServicesRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.ListServices";
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);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListServicesRequestMarshaller _instance = new ListServicesRequestMarshaller();
internal static ListServicesRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListServicesRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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.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 ListServices operation
/// </summary>
public class ListServicesResponseUnmarshaller : 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)
{
ListServicesResponse response = new ListServicesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceSummaryList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ServiceSummary, ServiceSummaryUnmarshaller>(ServiceSummaryUnmarshaller.Instance);
response.ServiceSummaryList = 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);
}
}
return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListServicesResponseUnmarshaller _instance = new ListServicesResponseUnmarshaller();
internal static ListServicesResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListServicesResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// ListTagsForResource Request Marshaller
/// </summary>
public class ListTagsForResourceRequestMarshaller : IMarshaller<IRequest, ListTagsForResourceRequest> , 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((ListTagsForResourceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListTagsForResourceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.ListTagsForResource";
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.IsSetResourceArn())
{
context.Writer.WritePropertyName("ResourceArn");
context.Writer.Write(publicRequest.ResourceArn);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListTagsForResourceRequestMarshaller _instance = new ListTagsForResourceRequestMarshaller();
internal static ListTagsForResourceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListTagsForResourceRequestMarshaller 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 ListTagsForResource operation
/// </summary>
public class ListTagsForResourceResponseUnmarshaller : 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)
{
ListTagsForResourceResponse response = new ListTagsForResourceResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Tags", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Tag, TagUnmarshaller>(TagUnmarshaller.Instance);
response.Tags = 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 ListTagsForResourceResponseUnmarshaller _instance = new ListTagsForResourceResponseUnmarshaller();
internal static ListTagsForResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListTagsForResourceResponseUnmarshaller 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>
/// ListVpcConnectors Request Marshaller
/// </summary>
public class ListVpcConnectorsRequestMarshaller : IMarshaller<IRequest, ListVpcConnectorsRequest> , 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((ListVpcConnectorsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListVpcConnectorsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.ListVpcConnectors";
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);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListVpcConnectorsRequestMarshaller _instance = new ListVpcConnectorsRequestMarshaller();
internal static ListVpcConnectorsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListVpcConnectorsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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.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 ListVpcConnectors operation
/// </summary>
public class ListVpcConnectorsResponseUnmarshaller : 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)
{
ListVpcConnectorsResponse response = new ListVpcConnectorsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VpcConnectors", targetDepth))
{
var unmarshaller = new ListUnmarshaller<VpcConnector, VpcConnectorUnmarshaller>(VpcConnectorUnmarshaller.Instance);
response.VpcConnectors = 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);
}
}
return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListVpcConnectorsResponseUnmarshaller _instance = new ListVpcConnectorsResponseUnmarshaller();
internal static ListVpcConnectorsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListVpcConnectorsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// ListVpcIngressConnectionsFilter Marshaller
/// </summary>
public class ListVpcIngressConnectionsFilterMarshaller : IRequestMarshaller<ListVpcIngressConnectionsFilter, 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(ListVpcIngressConnectionsFilter requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetServiceArn())
{
context.Writer.WritePropertyName("ServiceArn");
context.Writer.Write(requestObject.ServiceArn);
}
if(requestObject.IsSetVpcEndpointId())
{
context.Writer.WritePropertyName("VpcEndpointId");
context.Writer.Write(requestObject.VpcEndpointId);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ListVpcIngressConnectionsFilterMarshaller Instance = new ListVpcIngressConnectionsFilterMarshaller();
}
} | 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.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>
/// ListVpcIngressConnections Request Marshaller
/// </summary>
public class ListVpcIngressConnectionsRequestMarshaller : IMarshaller<IRequest, ListVpcIngressConnectionsRequest> , 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((ListVpcIngressConnectionsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListVpcIngressConnectionsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.ListVpcIngressConnections";
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.IsSetFilter())
{
context.Writer.WritePropertyName("Filter");
context.Writer.WriteObjectStart();
var marshaller = ListVpcIngressConnectionsFilterMarshaller.Instance;
marshaller.Marshall(publicRequest.Filter, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("MaxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("NextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListVpcIngressConnectionsRequestMarshaller _instance = new ListVpcIngressConnectionsRequestMarshaller();
internal static ListVpcIngressConnectionsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListVpcIngressConnectionsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 ListVpcIngressConnections operation
/// </summary>
public class ListVpcIngressConnectionsResponseUnmarshaller : 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)
{
ListVpcIngressConnectionsResponse response = new ListVpcIngressConnectionsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VpcIngressConnectionSummaryList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<VpcIngressConnectionSummary, VpcIngressConnectionSummaryUnmarshaller>(VpcIngressConnectionSummaryUnmarshaller.Instance);
response.VpcIngressConnectionSummaryList = 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);
}
}
return new AmazonAppRunnerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListVpcIngressConnectionsResponseUnmarshaller _instance = new ListVpcIngressConnectionsResponseUnmarshaller();
internal static ListVpcIngressConnectionsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListVpcIngressConnectionsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// NetworkConfiguration Marshaller
/// </summary>
public class NetworkConfigurationMarshaller : IRequestMarshaller<NetworkConfiguration, 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(NetworkConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetEgressConfiguration())
{
context.Writer.WritePropertyName("EgressConfiguration");
context.Writer.WriteObjectStart();
var marshaller = EgressConfigurationMarshaller.Instance;
marshaller.Marshall(requestObject.EgressConfiguration, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetIngressConfiguration())
{
context.Writer.WritePropertyName("IngressConfiguration");
context.Writer.WriteObjectStart();
var marshaller = IngressConfigurationMarshaller.Instance;
marshaller.Marshall(requestObject.IngressConfiguration, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static NetworkConfigurationMarshaller Instance = new NetworkConfigurationMarshaller();
}
} | 78 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 NetworkConfiguration Object
/// </summary>
public class NetworkConfigurationUnmarshaller : IUnmarshaller<NetworkConfiguration, XmlUnmarshallerContext>, IUnmarshaller<NetworkConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
NetworkConfiguration IUnmarshaller<NetworkConfiguration, 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 NetworkConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
NetworkConfiguration unmarshalledObject = new NetworkConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("EgressConfiguration", targetDepth))
{
var unmarshaller = EgressConfigurationUnmarshaller.Instance;
unmarshalledObject.EgressConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("IngressConfiguration", targetDepth))
{
var unmarshaller = IngressConfigurationUnmarshaller.Instance;
unmarshalledObject.IngressConfiguration = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static NetworkConfigurationUnmarshaller _instance = new NetworkConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static NetworkConfigurationUnmarshaller 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 ObservabilityConfigurationSummary Object
/// </summary>
public class ObservabilityConfigurationSummaryUnmarshaller : IUnmarshaller<ObservabilityConfigurationSummary, XmlUnmarshallerContext>, IUnmarshaller<ObservabilityConfigurationSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ObservabilityConfigurationSummary IUnmarshaller<ObservabilityConfigurationSummary, 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 ObservabilityConfigurationSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ObservabilityConfigurationSummary unmarshalledObject = new ObservabilityConfigurationSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ObservabilityConfigurationArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ObservabilityConfigurationArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ObservabilityConfigurationName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ObservabilityConfigurationName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ObservabilityConfigurationRevision", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ObservabilityConfigurationRevision = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ObservabilityConfigurationSummaryUnmarshaller _instance = new ObservabilityConfigurationSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ObservabilityConfigurationSummaryUnmarshaller 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 ObservabilityConfiguration Object
/// </summary>
public class ObservabilityConfigurationUnmarshaller : IUnmarshaller<ObservabilityConfiguration, XmlUnmarshallerContext>, IUnmarshaller<ObservabilityConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ObservabilityConfiguration IUnmarshaller<ObservabilityConfiguration, 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 ObservabilityConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ObservabilityConfiguration unmarshalledObject = new ObservabilityConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
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("ObservabilityConfigurationArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ObservabilityConfigurationArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ObservabilityConfigurationName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ObservabilityConfigurationName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ObservabilityConfigurationRevision", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ObservabilityConfigurationRevision = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("TraceConfiguration", targetDepth))
{
var unmarshaller = TraceConfigurationUnmarshaller.Instance;
unmarshalledObject.TraceConfiguration = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ObservabilityConfigurationUnmarshaller _instance = new ObservabilityConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ObservabilityConfigurationUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 134 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 OperationSummary Object
/// </summary>
public class OperationSummaryUnmarshaller : IUnmarshaller<OperationSummary, XmlUnmarshallerContext>, IUnmarshaller<OperationSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
OperationSummary IUnmarshaller<OperationSummary, 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 OperationSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
OperationSummary unmarshalledObject = new OperationSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("EndedAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.EndedAt = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Id", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Id = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StartedAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.StartedAt = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("TargetArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.TargetArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Type", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Type = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("UpdatedAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.UpdatedAt = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static OperationSummaryUnmarshaller _instance = new OperationSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static OperationSummaryUnmarshaller 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>
/// PauseService Request Marshaller
/// </summary>
public class PauseServiceRequestMarshaller : IMarshaller<IRequest, PauseServiceRequest> , 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((PauseServiceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(PauseServiceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.PauseService";
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 PauseServiceRequestMarshaller _instance = new PauseServiceRequestMarshaller();
internal static PauseServiceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PauseServiceRequestMarshaller 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 PauseService operation
/// </summary>
public class PauseServiceResponseUnmarshaller : 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)
{
PauseServiceResponse response = new PauseServiceResponse();
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 PauseServiceResponseUnmarshaller _instance = new PauseServiceResponseUnmarshaller();
internal static PauseServiceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PauseServiceResponseUnmarshaller 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.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 ResourceNotFoundException Object
/// </summary>
public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResourceNotFoundExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// ResumeService Request Marshaller
/// </summary>
public class ResumeServiceRequestMarshaller : IMarshaller<IRequest, ResumeServiceRequest> , 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((ResumeServiceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ResumeServiceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.ResumeService";
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 ResumeServiceRequestMarshaller _instance = new ResumeServiceRequestMarshaller();
internal static ResumeServiceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResumeServiceRequestMarshaller 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 ResumeService operation
/// </summary>
public class ResumeServiceResponseUnmarshaller : 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)
{
ResumeServiceResponse response = new ResumeServiceResponse();
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 ResumeServiceResponseUnmarshaller _instance = new ResumeServiceResponseUnmarshaller();
internal static ResumeServiceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResumeServiceResponseUnmarshaller 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>
/// ServiceObservabilityConfiguration Marshaller
/// </summary>
public class ServiceObservabilityConfigurationMarshaller : IRequestMarshaller<ServiceObservabilityConfiguration, 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(ServiceObservabilityConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetObservabilityConfigurationArn())
{
context.Writer.WritePropertyName("ObservabilityConfigurationArn");
context.Writer.Write(requestObject.ObservabilityConfigurationArn);
}
if(requestObject.IsSetObservabilityEnabled())
{
context.Writer.WritePropertyName("ObservabilityEnabled");
context.Writer.Write(requestObject.ObservabilityEnabled);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ServiceObservabilityConfigurationMarshaller Instance = new ServiceObservabilityConfigurationMarshaller();
}
} | 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 ServiceObservabilityConfiguration Object
/// </summary>
public class ServiceObservabilityConfigurationUnmarshaller : IUnmarshaller<ServiceObservabilityConfiguration, XmlUnmarshallerContext>, IUnmarshaller<ServiceObservabilityConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ServiceObservabilityConfiguration IUnmarshaller<ServiceObservabilityConfiguration, 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 ServiceObservabilityConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ServiceObservabilityConfiguration unmarshalledObject = new ServiceObservabilityConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ObservabilityConfigurationArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ObservabilityConfigurationArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ObservabilityEnabled", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.ObservabilityEnabled = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ServiceObservabilityConfigurationUnmarshaller _instance = new ServiceObservabilityConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ServiceObservabilityConfigurationUnmarshaller 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 ServiceQuotaExceededException Object
/// </summary>
public class ServiceQuotaExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<ServiceQuotaExceededException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ServiceQuotaExceededException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ServiceQuotaExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ServiceQuotaExceededException unmarshalledObject = new ServiceQuotaExceededException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ServiceQuotaExceededExceptionUnmarshaller _instance = new ServiceQuotaExceededExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ServiceQuotaExceededExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 ServiceSummary Object
/// </summary>
public class ServiceSummaryUnmarshaller : IUnmarshaller<ServiceSummary, XmlUnmarshallerContext>, IUnmarshaller<ServiceSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ServiceSummary IUnmarshaller<ServiceSummary, 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 ServiceSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ServiceSummary unmarshalledObject = new ServiceSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("CreatedAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceUrl = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("UpdatedAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.UpdatedAt = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ServiceSummaryUnmarshaller _instance = new ServiceSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ServiceSummaryUnmarshaller 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.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 Service Object
/// </summary>
public class ServiceUnmarshaller : IUnmarshaller<Service, XmlUnmarshallerContext>, IUnmarshaller<Service, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Service IUnmarshaller<Service, 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 Service Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Service unmarshalledObject = new Service();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AutoScalingConfigurationSummary", targetDepth))
{
var unmarshaller = AutoScalingConfigurationSummaryUnmarshaller.Instance;
unmarshalledObject.AutoScalingConfigurationSummary = 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("EncryptionConfiguration", targetDepth))
{
var unmarshaller = EncryptionConfigurationUnmarshaller.Instance;
unmarshalledObject.EncryptionConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HealthCheckConfiguration", targetDepth))
{
var unmarshaller = HealthCheckConfigurationUnmarshaller.Instance;
unmarshalledObject.HealthCheckConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("InstanceConfiguration", targetDepth))
{
var unmarshaller = InstanceConfigurationUnmarshaller.Instance;
unmarshalledObject.InstanceConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NetworkConfiguration", targetDepth))
{
var unmarshaller = NetworkConfigurationUnmarshaller.Instance;
unmarshalledObject.NetworkConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ObservabilityConfiguration", targetDepth))
{
var unmarshaller = ServiceObservabilityConfigurationUnmarshaller.Instance;
unmarshalledObject.ObservabilityConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceUrl = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SourceConfiguration", targetDepth))
{
var unmarshaller = SourceConfigurationUnmarshaller.Instance;
unmarshalledObject.SourceConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("UpdatedAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.UpdatedAt = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ServiceUnmarshaller _instance = new ServiceUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ServiceUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 176 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// SourceCodeVersion Marshaller
/// </summary>
public class SourceCodeVersionMarshaller : IRequestMarshaller<SourceCodeVersion, 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(SourceCodeVersion requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetType())
{
context.Writer.WritePropertyName("Type");
context.Writer.Write(requestObject.Type);
}
if(requestObject.IsSetValue())
{
context.Writer.WritePropertyName("Value");
context.Writer.Write(requestObject.Value);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SourceCodeVersionMarshaller Instance = new SourceCodeVersionMarshaller();
}
} | 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 SourceCodeVersion Object
/// </summary>
public class SourceCodeVersionUnmarshaller : IUnmarshaller<SourceCodeVersion, XmlUnmarshallerContext>, IUnmarshaller<SourceCodeVersion, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SourceCodeVersion IUnmarshaller<SourceCodeVersion, 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 SourceCodeVersion Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SourceCodeVersion unmarshalledObject = new SourceCodeVersion();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
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 SourceCodeVersionUnmarshaller _instance = new SourceCodeVersionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SourceCodeVersionUnmarshaller 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>
/// SourceConfiguration Marshaller
/// </summary>
public class SourceConfigurationMarshaller : IRequestMarshaller<SourceConfiguration, 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(SourceConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAuthenticationConfiguration())
{
context.Writer.WritePropertyName("AuthenticationConfiguration");
context.Writer.WriteObjectStart();
var marshaller = AuthenticationConfigurationMarshaller.Instance;
marshaller.Marshall(requestObject.AuthenticationConfiguration, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetAutoDeploymentsEnabled())
{
context.Writer.WritePropertyName("AutoDeploymentsEnabled");
context.Writer.Write(requestObject.AutoDeploymentsEnabled);
}
if(requestObject.IsSetCodeRepository())
{
context.Writer.WritePropertyName("CodeRepository");
context.Writer.WriteObjectStart();
var marshaller = CodeRepositoryMarshaller.Instance;
marshaller.Marshall(requestObject.CodeRepository, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetImageRepository())
{
context.Writer.WritePropertyName("ImageRepository");
context.Writer.WriteObjectStart();
var marshaller = ImageRepositoryMarshaller.Instance;
marshaller.Marshall(requestObject.ImageRepository, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SourceConfigurationMarshaller Instance = new SourceConfigurationMarshaller();
}
} | 95 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 SourceConfiguration Object
/// </summary>
public class SourceConfigurationUnmarshaller : IUnmarshaller<SourceConfiguration, XmlUnmarshallerContext>, IUnmarshaller<SourceConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SourceConfiguration IUnmarshaller<SourceConfiguration, 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 SourceConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SourceConfiguration unmarshalledObject = new SourceConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AuthenticationConfiguration", targetDepth))
{
var unmarshaller = AuthenticationConfigurationUnmarshaller.Instance;
unmarshalledObject.AuthenticationConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("AutoDeploymentsEnabled", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.AutoDeploymentsEnabled = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CodeRepository", targetDepth))
{
var unmarshaller = CodeRepositoryUnmarshaller.Instance;
unmarshalledObject.CodeRepository = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ImageRepository", targetDepth))
{
var unmarshaller = ImageRepositoryUnmarshaller.Instance;
unmarshalledObject.ImageRepository = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static SourceConfigurationUnmarshaller _instance = new SourceConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SourceConfigurationUnmarshaller 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>
/// StartDeployment Request Marshaller
/// </summary>
public class StartDeploymentRequestMarshaller : IMarshaller<IRequest, StartDeploymentRequest> , 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((StartDeploymentRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(StartDeploymentRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.StartDeployment";
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 StartDeploymentRequestMarshaller _instance = new StartDeploymentRequestMarshaller();
internal static StartDeploymentRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartDeploymentRequestMarshaller 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 StartDeployment operation
/// </summary>
public class StartDeploymentResponseUnmarshaller : 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)
{
StartDeploymentResponse response = new StartDeploymentResponse();
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;
}
}
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 StartDeploymentResponseUnmarshaller _instance = new StartDeploymentResponseUnmarshaller();
internal static StartDeploymentResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartDeploymentResponseUnmarshaller 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>
/// Tag Marshaller
/// </summary>
public class TagMarshaller : IRequestMarshaller<Tag, 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(Tag requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetKey())
{
context.Writer.WritePropertyName("Key");
context.Writer.Write(requestObject.Key);
}
if(requestObject.IsSetValue())
{
context.Writer.WritePropertyName("Value");
context.Writer.Write(requestObject.Value);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static TagMarshaller Instance = new TagMarshaller();
}
} | 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.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>
/// TagResource Request Marshaller
/// </summary>
public class TagResourceRequestMarshaller : IMarshaller<IRequest, TagResourceRequest> , 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((TagResourceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(TagResourceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.TagResource";
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.IsSetResourceArn())
{
context.Writer.WritePropertyName("ResourceArn");
context.Writer.Write(publicRequest.ResourceArn);
}
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 TagResourceRequestMarshaller _instance = new TagResourceRequestMarshaller();
internal static TagResourceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static TagResourceRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 119 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 TagResource operation
/// </summary>
public class TagResourceResponseUnmarshaller : 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)
{
TagResourceResponse response = new TagResourceResponse();
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 TagResourceResponseUnmarshaller _instance = new TagResourceResponseUnmarshaller();
internal static TagResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static TagResourceResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 111 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 Tag Object
/// </summary>
public class TagUnmarshaller : IUnmarshaller<Tag, XmlUnmarshallerContext>, IUnmarshaller<Tag, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Tag IUnmarshaller<Tag, 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 Tag Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Tag unmarshalledObject = new Tag();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Key", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Key = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Value", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Value = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TagUnmarshaller _instance = new TagUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TagUnmarshaller 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>
/// TraceConfiguration Marshaller
/// </summary>
public class TraceConfigurationMarshaller : IRequestMarshaller<TraceConfiguration, 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(TraceConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetVendor())
{
context.Writer.WritePropertyName("Vendor");
context.Writer.Write(requestObject.Vendor);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static TraceConfigurationMarshaller Instance = new TraceConfigurationMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 TraceConfiguration Object
/// </summary>
public class TraceConfigurationUnmarshaller : IUnmarshaller<TraceConfiguration, XmlUnmarshallerContext>, IUnmarshaller<TraceConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
TraceConfiguration IUnmarshaller<TraceConfiguration, 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 TraceConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
TraceConfiguration unmarshalledObject = new TraceConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Vendor", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Vendor = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TraceConfigurationUnmarshaller _instance = new TraceConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TraceConfigurationUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// UntagResource Request Marshaller
/// </summary>
public class UntagResourceRequestMarshaller : IMarshaller<IRequest, UntagResourceRequest> , 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((UntagResourceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UntagResourceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.UntagResource";
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.IsSetResourceArn())
{
context.Writer.WritePropertyName("ResourceArn");
context.Writer.Write(publicRequest.ResourceArn);
}
if(publicRequest.IsSetTagKeys())
{
context.Writer.WritePropertyName("TagKeys");
context.Writer.WriteArrayStart();
foreach(var publicRequestTagKeysListValue in publicRequest.TagKeys)
{
context.Writer.Write(publicRequestTagKeysListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static UntagResourceRequestMarshaller _instance = new UntagResourceRequestMarshaller();
internal static UntagResourceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UntagResourceRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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.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 UntagResource operation
/// </summary>
public class UntagResourceResponseUnmarshaller : 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)
{
UntagResourceResponse response = new UntagResourceResponse();
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 UntagResourceResponseUnmarshaller _instance = new UntagResourceResponseUnmarshaller();
internal static UntagResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UntagResourceResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 111 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// UpdateService Request Marshaller
/// </summary>
public class UpdateServiceRequestMarshaller : IMarshaller<IRequest, UpdateServiceRequest> , 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((UpdateServiceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UpdateServiceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.UpdateService";
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.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.IsSetServiceArn())
{
context.Writer.WritePropertyName("ServiceArn");
context.Writer.Write(publicRequest.ServiceArn);
}
if(publicRequest.IsSetSourceConfiguration())
{
context.Writer.WritePropertyName("SourceConfiguration");
context.Writer.WriteObjectStart();
var marshaller = SourceConfigurationMarshaller.Instance;
marshaller.Marshall(publicRequest.SourceConfiguration, context);
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static UpdateServiceRequestMarshaller _instance = new UpdateServiceRequestMarshaller();
internal static UpdateServiceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateServiceRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 164 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 UpdateService operation
/// </summary>
public class UpdateServiceResponseUnmarshaller : 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)
{
UpdateServiceResponse response = new UpdateServiceResponse();
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 UpdateServiceResponseUnmarshaller _instance = new UpdateServiceResponseUnmarshaller();
internal static UpdateServiceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateServiceResponseUnmarshaller 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>
/// UpdateVpcIngressConnection Request Marshaller
/// </summary>
public class UpdateVpcIngressConnectionRequestMarshaller : IMarshaller<IRequest, UpdateVpcIngressConnectionRequest> , 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((UpdateVpcIngressConnectionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UpdateVpcIngressConnectionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppRunner");
string target = "AppRunner.UpdateVpcIngressConnection";
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.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 UpdateVpcIngressConnectionRequestMarshaller _instance = new UpdateVpcIngressConnectionRequestMarshaller();
internal static UpdateVpcIngressConnectionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateVpcIngressConnectionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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.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 UpdateVpcIngressConnection operation
/// </summary>
public class UpdateVpcIngressConnectionResponseUnmarshaller : 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)
{
UpdateVpcIngressConnectionResponse response = new UpdateVpcIngressConnectionResponse();
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 UpdateVpcIngressConnectionResponseUnmarshaller _instance = new UpdateVpcIngressConnectionResponseUnmarshaller();
internal static UpdateVpcIngressConnectionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateVpcIngressConnectionResponseUnmarshaller 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 VpcConnector Object
/// </summary>
public class VpcConnectorUnmarshaller : IUnmarshaller<VpcConnector, XmlUnmarshallerContext>, IUnmarshaller<VpcConnector, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
VpcConnector IUnmarshaller<VpcConnector, 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 VpcConnector Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
VpcConnector unmarshalledObject = new VpcConnector();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
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("SecurityGroups", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.SecurityGroups = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Subnets", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.Subnets = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VpcConnectorArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.VpcConnectorArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VpcConnectorName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.VpcConnectorName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VpcConnectorRevision", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.VpcConnectorRevision = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static VpcConnectorUnmarshaller _instance = new VpcConnectorUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static VpcConnectorUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 134 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 VpcDNSTarget Object
/// </summary>
public class VpcDNSTargetUnmarshaller : IUnmarshaller<VpcDNSTarget, XmlUnmarshallerContext>, IUnmarshaller<VpcDNSTarget, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
VpcDNSTarget IUnmarshaller<VpcDNSTarget, 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 VpcDNSTarget Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
VpcDNSTarget unmarshalledObject = new VpcDNSTarget();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("DomainName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DomainName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VpcId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.VpcId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VpcIngressConnectionArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.VpcIngressConnectionArn = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static VpcDNSTargetUnmarshaller _instance = new VpcDNSTargetUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static VpcDNSTargetUnmarshaller 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 VpcIngressConnectionSummary Object
/// </summary>
public class VpcIngressConnectionSummaryUnmarshaller : IUnmarshaller<VpcIngressConnectionSummary, XmlUnmarshallerContext>, IUnmarshaller<VpcIngressConnectionSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
VpcIngressConnectionSummary IUnmarshaller<VpcIngressConnectionSummary, 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 VpcIngressConnectionSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
VpcIngressConnectionSummary unmarshalledObject = new VpcIngressConnectionSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ServiceArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VpcIngressConnectionArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.VpcIngressConnectionArn = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static VpcIngressConnectionSummaryUnmarshaller _instance = new VpcIngressConnectionSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static VpcIngressConnectionSummaryUnmarshaller 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 VpcIngressConnection Object
/// </summary>
public class VpcIngressConnectionUnmarshaller : IUnmarshaller<VpcIngressConnection, XmlUnmarshallerContext>, IUnmarshaller<VpcIngressConnection, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
VpcIngressConnection IUnmarshaller<VpcIngressConnection, 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 VpcIngressConnection Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
VpcIngressConnection unmarshalledObject = new VpcIngressConnection();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AccountId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AccountId = 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("DomainName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DomainName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("IngressVpcConfiguration", targetDepth))
{
var unmarshaller = IngressVpcConfigurationUnmarshaller.Instance;
unmarshalledObject.IngressVpcConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VpcIngressConnectionArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.VpcIngressConnectionArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VpcIngressConnectionName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.VpcIngressConnectionName = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static VpcIngressConnectionUnmarshaller _instance = new VpcIngressConnectionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static VpcIngressConnectionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 140 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Text;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Paginators for the AppRunner service
///</summary>
public class AppRunnerPaginatorFactory : IAppRunnerPaginatorFactory
{
private readonly IAmazonAppRunner client;
internal AppRunnerPaginatorFactory(IAmazonAppRunner client)
{
this.client = client;
}
/// <summary>
/// Paginator for DescribeCustomDomains operation
///</summary>
public IDescribeCustomDomainsPaginator DescribeCustomDomains(DescribeCustomDomainsRequest request)
{
return new DescribeCustomDomainsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListAutoScalingConfigurations operation
///</summary>
public IListAutoScalingConfigurationsPaginator ListAutoScalingConfigurations(ListAutoScalingConfigurationsRequest request)
{
return new ListAutoScalingConfigurationsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListConnections operation
///</summary>
public IListConnectionsPaginator ListConnections(ListConnectionsRequest request)
{
return new ListConnectionsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListObservabilityConfigurations operation
///</summary>
public IListObservabilityConfigurationsPaginator ListObservabilityConfigurations(ListObservabilityConfigurationsRequest request)
{
return new ListObservabilityConfigurationsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListOperations operation
///</summary>
public IListOperationsPaginator ListOperations(ListOperationsRequest request)
{
return new ListOperationsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListServices operation
///</summary>
public IListServicesPaginator ListServices(ListServicesRequest request)
{
return new ListServicesPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListVpcConnectors operation
///</summary>
public IListVpcConnectorsPaginator ListVpcConnectors(ListVpcConnectorsRequest request)
{
return new ListVpcConnectorsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListVpcIngressConnections operation
///</summary>
public IListVpcIngressConnectionsPaginator ListVpcIngressConnections(ListVpcIngressConnectionsRequest request)
{
return new ListVpcIngressConnectionsPaginator(this.client, request);
}
}
} | 102 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Base class for DescribeCustomDomains paginators.
/// </summary>
internal sealed partial class DescribeCustomDomainsPaginator : IPaginator<DescribeCustomDomainsResponse>, IDescribeCustomDomainsPaginator
{
private readonly IAmazonAppRunner _client;
private readonly DescribeCustomDomainsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeCustomDomainsResponse> Responses => new PaginatedResponse<DescribeCustomDomainsResponse>(this);
internal DescribeCustomDomainsPaginator(IAmazonAppRunner client, DescribeCustomDomainsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeCustomDomainsResponse> IPaginator<DescribeCustomDomainsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeCustomDomainsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeCustomDomains(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeCustomDomainsResponse> IPaginator<DescribeCustomDomainsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeCustomDomainsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeCustomDomainsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 91 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Paginators for the AppRunner service
///</summary>
public interface IAppRunnerPaginatorFactory
{
/// <summary>
/// Paginator for DescribeCustomDomains operation
///</summary>
IDescribeCustomDomainsPaginator DescribeCustomDomains(DescribeCustomDomainsRequest request);
/// <summary>
/// Paginator for ListAutoScalingConfigurations operation
///</summary>
IListAutoScalingConfigurationsPaginator ListAutoScalingConfigurations(ListAutoScalingConfigurationsRequest request);
/// <summary>
/// Paginator for ListConnections operation
///</summary>
IListConnectionsPaginator ListConnections(ListConnectionsRequest request);
/// <summary>
/// Paginator for ListObservabilityConfigurations operation
///</summary>
IListObservabilityConfigurationsPaginator ListObservabilityConfigurations(ListObservabilityConfigurationsRequest request);
/// <summary>
/// Paginator for ListOperations operation
///</summary>
IListOperationsPaginator ListOperations(ListOperationsRequest request);
/// <summary>
/// Paginator for ListServices operation
///</summary>
IListServicesPaginator ListServices(ListServicesRequest request);
/// <summary>
/// Paginator for ListVpcConnectors operation
///</summary>
IListVpcConnectorsPaginator ListVpcConnectors(ListVpcConnectorsRequest request);
/// <summary>
/// Paginator for ListVpcIngressConnections operation
///</summary>
IListVpcIngressConnectionsPaginator ListVpcIngressConnections(ListVpcIngressConnectionsRequest request);
}
} | 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 Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Paginator for the DescribeCustomDomains operation
///</summary>
public interface IDescribeCustomDomainsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeCustomDomainsResponse> Responses { get; }
}
} | 33 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Paginator for the ListAutoScalingConfigurations operation
///</summary>
public interface IListAutoScalingConfigurationsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListAutoScalingConfigurationsResponse> Responses { get; }
}
} | 33 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Paginator for the ListConnections operation
///</summary>
public interface IListConnectionsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListConnectionsResponse> Responses { get; }
}
} | 33 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Paginator for the ListObservabilityConfigurations operation
///</summary>
public interface IListObservabilityConfigurationsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListObservabilityConfigurationsResponse> Responses { get; }
}
} | 33 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Paginator for the ListOperations operation
///</summary>
public interface IListOperationsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListOperationsResponse> Responses { get; }
}
} | 33 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Paginator for the ListServices operation
///</summary>
public interface IListServicesPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListServicesResponse> Responses { get; }
}
} | 33 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Paginator for the ListVpcConnectors operation
///</summary>
public interface IListVpcConnectorsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListVpcConnectorsResponse> Responses { get; }
}
} | 33 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Paginator for the ListVpcIngressConnections operation
///</summary>
public interface IListVpcIngressConnectionsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListVpcIngressConnectionsResponse> Responses { get; }
}
} | 33 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Base class for ListAutoScalingConfigurations paginators.
/// </summary>
internal sealed partial class ListAutoScalingConfigurationsPaginator : IPaginator<ListAutoScalingConfigurationsResponse>, IListAutoScalingConfigurationsPaginator
{
private readonly IAmazonAppRunner _client;
private readonly ListAutoScalingConfigurationsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListAutoScalingConfigurationsResponse> Responses => new PaginatedResponse<ListAutoScalingConfigurationsResponse>(this);
internal ListAutoScalingConfigurationsPaginator(IAmazonAppRunner client, ListAutoScalingConfigurationsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListAutoScalingConfigurationsResponse> IPaginator<ListAutoScalingConfigurationsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListAutoScalingConfigurationsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListAutoScalingConfigurations(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListAutoScalingConfigurationsResponse> IPaginator<ListAutoScalingConfigurationsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListAutoScalingConfigurationsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListAutoScalingConfigurationsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 91 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Base class for ListConnections paginators.
/// </summary>
internal sealed partial class ListConnectionsPaginator : IPaginator<ListConnectionsResponse>, IListConnectionsPaginator
{
private readonly IAmazonAppRunner _client;
private readonly ListConnectionsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListConnectionsResponse> Responses => new PaginatedResponse<ListConnectionsResponse>(this);
internal ListConnectionsPaginator(IAmazonAppRunner client, ListConnectionsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListConnectionsResponse> IPaginator<ListConnectionsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListConnectionsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListConnections(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListConnectionsResponse> IPaginator<ListConnectionsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListConnectionsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListConnectionsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 91 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Base class for ListObservabilityConfigurations paginators.
/// </summary>
internal sealed partial class ListObservabilityConfigurationsPaginator : IPaginator<ListObservabilityConfigurationsResponse>, IListObservabilityConfigurationsPaginator
{
private readonly IAmazonAppRunner _client;
private readonly ListObservabilityConfigurationsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListObservabilityConfigurationsResponse> Responses => new PaginatedResponse<ListObservabilityConfigurationsResponse>(this);
internal ListObservabilityConfigurationsPaginator(IAmazonAppRunner client, ListObservabilityConfigurationsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListObservabilityConfigurationsResponse> IPaginator<ListObservabilityConfigurationsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListObservabilityConfigurationsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListObservabilityConfigurations(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListObservabilityConfigurationsResponse> IPaginator<ListObservabilityConfigurationsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListObservabilityConfigurationsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListObservabilityConfigurationsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 91 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Base class for ListOperations paginators.
/// </summary>
internal sealed partial class ListOperationsPaginator : IPaginator<ListOperationsResponse>, IListOperationsPaginator
{
private readonly IAmazonAppRunner _client;
private readonly ListOperationsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListOperationsResponse> Responses => new PaginatedResponse<ListOperationsResponse>(this);
internal ListOperationsPaginator(IAmazonAppRunner client, ListOperationsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListOperationsResponse> IPaginator<ListOperationsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListOperationsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListOperations(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListOperationsResponse> IPaginator<ListOperationsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListOperationsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListOperationsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 91 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Base class for ListServices paginators.
/// </summary>
internal sealed partial class ListServicesPaginator : IPaginator<ListServicesResponse>, IListServicesPaginator
{
private readonly IAmazonAppRunner _client;
private readonly ListServicesRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListServicesResponse> Responses => new PaginatedResponse<ListServicesResponse>(this);
internal ListServicesPaginator(IAmazonAppRunner client, ListServicesRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListServicesResponse> IPaginator<ListServicesResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListServicesResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListServices(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListServicesResponse> IPaginator<ListServicesResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListServicesResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListServicesAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 91 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Base class for ListVpcConnectors paginators.
/// </summary>
internal sealed partial class ListVpcConnectorsPaginator : IPaginator<ListVpcConnectorsResponse>, IListVpcConnectorsPaginator
{
private readonly IAmazonAppRunner _client;
private readonly ListVpcConnectorsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListVpcConnectorsResponse> Responses => new PaginatedResponse<ListVpcConnectorsResponse>(this);
internal ListVpcConnectorsPaginator(IAmazonAppRunner client, ListVpcConnectorsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListVpcConnectorsResponse> IPaginator<ListVpcConnectorsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListVpcConnectorsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListVpcConnectors(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListVpcConnectorsResponse> IPaginator<ListVpcConnectorsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListVpcConnectorsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListVpcConnectorsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 91 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AppRunner.Model
{
/// <summary>
/// Base class for ListVpcIngressConnections paginators.
/// </summary>
internal sealed partial class ListVpcIngressConnectionsPaginator : IPaginator<ListVpcIngressConnectionsResponse>, IListVpcIngressConnectionsPaginator
{
private readonly IAmazonAppRunner _client;
private readonly ListVpcIngressConnectionsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListVpcIngressConnectionsResponse> Responses => new PaginatedResponse<ListVpcIngressConnectionsResponse>(this);
internal ListVpcIngressConnectionsPaginator(IAmazonAppRunner client, ListVpcIngressConnectionsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListVpcIngressConnectionsResponse> IPaginator<ListVpcIngressConnectionsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListVpcIngressConnectionsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListVpcIngressConnections(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListVpcIngressConnectionsResponse> IPaginator<ListVpcIngressConnectionsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListVpcIngressConnectionsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListVpcIngressConnectionsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 91 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.AppRunner.Model;
using Amazon.AppRunner.Model.Internal.MarshallTransformations;
using Amazon.AppRunner.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AppRunner
{
/// <summary>
/// Implementation for accessing AppRunner
///
/// App Runner
/// <para>
/// App Runner is an application service that provides a fast, simple, and cost-effective
/// way to go directly from an existing container image or source code to a running service
/// in the Amazon Web Services Cloud in seconds. You don't need to learn new technologies,
/// decide which compute service to use, or understand how to provision and configure
/// Amazon Web Services resources.
/// </para>
///
/// <para>
/// App Runner connects directly to your container registry or source code repository.
/// It provides an automatic delivery pipeline with fully managed operations, high performance,
/// scalability, and security.
/// </para>
///
/// <para>
/// For more information about App Runner, see the <a href="https://docs.aws.amazon.com/apprunner/latest/dg/">App
/// Runner Developer Guide</a>. For release information, see the <a href="https://docs.aws.amazon.com/apprunner/latest/relnotes/">App
/// Runner Release Notes</a>.
/// </para>
///
/// <para>
/// To install the Software Development Kits (SDKs), Integrated Development Environment
/// (IDE) Toolkits, and command line tools that you can use to access the API, see <a
/// href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.
/// </para>
///
/// <para>
/// <b>Endpoints</b>
/// </para>
///
/// <para>
/// For a list of Region-specific endpoints that App Runner supports, 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>
public partial class AmazonAppRunnerClient : AmazonServiceClient, IAmazonAppRunner
{
private static IServiceMetadata serviceMetadata = new AmazonAppRunnerMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IAppRunnerPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAppRunnerPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AppRunnerPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
/// <summary>
/// Constructs AmazonAppRunnerClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonAppRunnerClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppRunnerConfig()) { }
/// <summary>
/// Constructs AmazonAppRunnerClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonAppRunnerClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppRunnerConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAppRunnerClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonAppRunnerClient Configuration Object</param>
public AmazonAppRunnerClient(AmazonAppRunnerConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAppRunnerClient(AWSCredentials credentials)
: this(credentials, new AmazonAppRunnerConfig())
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAppRunnerClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAppRunnerConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Credentials and an
/// AmazonAppRunnerClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAppRunnerClient Configuration Object</param>
public AmazonAppRunnerClient(AWSCredentials credentials, AmazonAppRunnerConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonAppRunnerClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppRunnerConfig())
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonAppRunnerClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppRunnerConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAppRunnerClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAppRunnerClient Configuration Object</param>
public AmazonAppRunnerClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAppRunnerConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonAppRunnerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppRunnerConfig())
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonAppRunnerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppRunnerConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAppRunnerClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonAppRunnerClient Configuration Object</param>
public AmazonAppRunnerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAppRunnerConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customize the pipeline
/// </summary>
/// <param name="pipeline"></param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAppRunnerEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region AssociateCustomDomain
/// <summary>
/// Associate your own domain name with the App Runner subdomain URL of your App Runner
/// service.
///
///
/// <para>
/// After you call <code>AssociateCustomDomain</code> and receive a successful response,
/// use the information in the <a>CustomDomain</a> record that's returned to add CNAME
/// records to your Domain Name System (DNS). For each mapped domain name, add a mapping
/// to the target App Runner subdomain and one or more certificate validation records.
/// App Runner then performs DNS validation to verify that you own or control the domain
/// name that you associated. App Runner tracks domain validity in a certificate stored
/// in <a href="https://docs.aws.amazon.com/acm/latest/userguide">AWS Certificate Manager
/// (ACM)</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AssociateCustomDomain service method.</param>
///
/// <returns>The response from the AssociateCustomDomain service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/AssociateCustomDomain">REST API Reference for AssociateCustomDomain Operation</seealso>
public virtual AssociateCustomDomainResponse AssociateCustomDomain(AssociateCustomDomainRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateCustomDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateCustomDomainResponseUnmarshaller.Instance;
return Invoke<AssociateCustomDomainResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the AssociateCustomDomain operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the AssociateCustomDomain operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociateCustomDomain
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/AssociateCustomDomain">REST API Reference for AssociateCustomDomain Operation</seealso>
public virtual IAsyncResult BeginAssociateCustomDomain(AssociateCustomDomainRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateCustomDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateCustomDomainResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the AssociateCustomDomain operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociateCustomDomain.</param>
///
/// <returns>Returns a AssociateCustomDomainResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/AssociateCustomDomain">REST API Reference for AssociateCustomDomain Operation</seealso>
public virtual AssociateCustomDomainResponse EndAssociateCustomDomain(IAsyncResult asyncResult)
{
return EndInvoke<AssociateCustomDomainResponse>(asyncResult);
}
#endregion
#region CreateAutoScalingConfiguration
/// <summary>
/// Create an App Runner automatic scaling configuration resource. App Runner requires
/// this resource when you create or update App Runner services and you require non-default
/// auto scaling settings. You can share an auto scaling configuration across multiple
/// services.
///
///
/// <para>
/// Create multiple revisions of a configuration by calling this action multiple times
/// using the same <code>AutoScalingConfigurationName</code>. The call returns incremental
/// <code>AutoScalingConfigurationRevision</code> values. When you create a service and
/// configure an auto scaling configuration resource, the service uses the latest active
/// revision of the auto scaling configuration by default. You can optionally configure
/// the service to use a specific revision.
/// </para>
///
/// <para>
/// Configure a higher <code>MinSize</code> to increase the spread of your App Runner
/// service over more Availability Zones in the Amazon Web Services Region. The tradeoff
/// is a higher minimal cost.
/// </para>
///
/// <para>
/// Configure a lower <code>MaxSize</code> to control your cost. The tradeoff is lower
/// responsiveness during peak demand.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingConfiguration service method.</param>
///
/// <returns>The response from the CreateAutoScalingConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateAutoScalingConfiguration">REST API Reference for CreateAutoScalingConfiguration Operation</seealso>
public virtual CreateAutoScalingConfigurationResponse CreateAutoScalingConfiguration(CreateAutoScalingConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAutoScalingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAutoScalingConfigurationResponseUnmarshaller.Instance;
return Invoke<CreateAutoScalingConfigurationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateAutoScalingConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingConfiguration operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAutoScalingConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateAutoScalingConfiguration">REST API Reference for CreateAutoScalingConfiguration Operation</seealso>
public virtual IAsyncResult BeginCreateAutoScalingConfiguration(CreateAutoScalingConfigurationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAutoScalingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAutoScalingConfigurationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateAutoScalingConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateAutoScalingConfiguration.</param>
///
/// <returns>Returns a CreateAutoScalingConfigurationResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateAutoScalingConfiguration">REST API Reference for CreateAutoScalingConfiguration Operation</seealso>
public virtual CreateAutoScalingConfigurationResponse EndCreateAutoScalingConfiguration(IAsyncResult asyncResult)
{
return EndInvoke<CreateAutoScalingConfigurationResponse>(asyncResult);
}
#endregion
#region CreateConnection
/// <summary>
/// Create an App Runner connection resource. App Runner requires a connection resource
/// when you create App Runner services that access private repositories from certain
/// third-party providers. You can share a connection across multiple services.
///
///
/// <para>
/// A connection resource is needed to access GitHub repositories. GitHub requires a user
/// interface approval process through the App Runner console before you can use the connection.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateConnection service method.</param>
///
/// <returns>The response from the CreateConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
public virtual CreateConnectionResponse CreateConnection(CreateConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateConnectionResponseUnmarshaller.Instance;
return Invoke<CreateConnectionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateConnection operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
public virtual IAsyncResult BeginCreateConnection(CreateConnectionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateConnectionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateConnection.</param>
///
/// <returns>Returns a CreateConnectionResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
public virtual CreateConnectionResponse EndCreateConnection(IAsyncResult asyncResult)
{
return EndInvoke<CreateConnectionResponse>(asyncResult);
}
#endregion
#region CreateObservabilityConfiguration
/// <summary>
/// Create an App Runner observability configuration resource. App Runner requires this
/// resource when you create or update App Runner services and you want to enable non-default
/// observability features. You can share an observability configuration across multiple
/// services.
///
///
/// <para>
/// Create multiple revisions of a configuration by calling this action multiple times
/// using the same <code>ObservabilityConfigurationName</code>. The call returns incremental
/// <code>ObservabilityConfigurationRevision</code> values. When you create a service
/// and configure an observability configuration resource, the service uses the latest
/// active revision of the observability configuration by default. You can optionally
/// configure the service to use a specific revision.
/// </para>
///
/// <para>
/// The observability configuration resource is designed to configure multiple features
/// (currently one feature, tracing). This action takes optional parameters that describe
/// the configuration of these features (currently one parameter, <code>TraceConfiguration</code>).
/// If you don't specify a feature parameter, App Runner doesn't enable the feature.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateObservabilityConfiguration service method.</param>
///
/// <returns>The response from the CreateObservabilityConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateObservabilityConfiguration">REST API Reference for CreateObservabilityConfiguration Operation</seealso>
public virtual CreateObservabilityConfigurationResponse CreateObservabilityConfiguration(CreateObservabilityConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateObservabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateObservabilityConfigurationResponseUnmarshaller.Instance;
return Invoke<CreateObservabilityConfigurationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateObservabilityConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateObservabilityConfiguration operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateObservabilityConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateObservabilityConfiguration">REST API Reference for CreateObservabilityConfiguration Operation</seealso>
public virtual IAsyncResult BeginCreateObservabilityConfiguration(CreateObservabilityConfigurationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateObservabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateObservabilityConfigurationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateObservabilityConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateObservabilityConfiguration.</param>
///
/// <returns>Returns a CreateObservabilityConfigurationResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateObservabilityConfiguration">REST API Reference for CreateObservabilityConfiguration Operation</seealso>
public virtual CreateObservabilityConfigurationResponse EndCreateObservabilityConfiguration(IAsyncResult asyncResult)
{
return EndInvoke<CreateObservabilityConfigurationResponse>(asyncResult);
}
#endregion
#region CreateService
/// <summary>
/// Create an App Runner service. After the service is created, the action also automatically
/// starts a deployment.
///
///
/// <para>
/// This is an asynchronous operation. On a successful call, you can use the returned
/// <code>OperationId</code> and the <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_ListOperations.html">ListOperations</a>
/// call to track the operation's progress.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateService service method.</param>
///
/// <returns>The response from the CreateService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateService">REST API Reference for CreateService Operation</seealso>
public virtual CreateServiceResponse CreateService(CreateServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateServiceResponseUnmarshaller.Instance;
return Invoke<CreateServiceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateService operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateService operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateService
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateService">REST API Reference for CreateService Operation</seealso>
public virtual IAsyncResult BeginCreateService(CreateServiceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateServiceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateService operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateService.</param>
///
/// <returns>Returns a CreateServiceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateService">REST API Reference for CreateService Operation</seealso>
public virtual CreateServiceResponse EndCreateService(IAsyncResult asyncResult)
{
return EndInvoke<CreateServiceResponse>(asyncResult);
}
#endregion
#region CreateVpcConnector
/// <summary>
/// Create an App Runner VPC connector resource. App Runner requires this resource when
/// you want to associate your App Runner service to a custom Amazon Virtual Private Cloud
/// (Amazon VPC).
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateVpcConnector service method.</param>
///
/// <returns>The response from the CreateVpcConnector service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcConnector">REST API Reference for CreateVpcConnector Operation</seealso>
public virtual CreateVpcConnectorResponse CreateVpcConnector(CreateVpcConnectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateVpcConnectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateVpcConnectorResponseUnmarshaller.Instance;
return Invoke<CreateVpcConnectorResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateVpcConnector operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateVpcConnector operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateVpcConnector
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcConnector">REST API Reference for CreateVpcConnector Operation</seealso>
public virtual IAsyncResult BeginCreateVpcConnector(CreateVpcConnectorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateVpcConnectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateVpcConnectorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateVpcConnector operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateVpcConnector.</param>
///
/// <returns>Returns a CreateVpcConnectorResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcConnector">REST API Reference for CreateVpcConnector Operation</seealso>
public virtual CreateVpcConnectorResponse EndCreateVpcConnector(IAsyncResult asyncResult)
{
return EndInvoke<CreateVpcConnectorResponse>(asyncResult);
}
#endregion
#region CreateVpcIngressConnection
/// <summary>
/// Create an App Runner VPC Ingress Connection resource. App Runner requires this resource
/// when you want to associate your App Runner service with an Amazon VPC endpoint.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateVpcIngressConnection service method.</param>
///
/// <returns>The response from the CreateVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcIngressConnection">REST API Reference for CreateVpcIngressConnection Operation</seealso>
public virtual CreateVpcIngressConnectionResponse CreateVpcIngressConnection(CreateVpcIngressConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateVpcIngressConnectionResponseUnmarshaller.Instance;
return Invoke<CreateVpcIngressConnectionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateVpcIngressConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateVpcIngressConnection operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateVpcIngressConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcIngressConnection">REST API Reference for CreateVpcIngressConnection Operation</seealso>
public virtual IAsyncResult BeginCreateVpcIngressConnection(CreateVpcIngressConnectionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateVpcIngressConnectionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateVpcIngressConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateVpcIngressConnection.</param>
///
/// <returns>Returns a CreateVpcIngressConnectionResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcIngressConnection">REST API Reference for CreateVpcIngressConnection Operation</seealso>
public virtual CreateVpcIngressConnectionResponse EndCreateVpcIngressConnection(IAsyncResult asyncResult)
{
return EndInvoke<CreateVpcIngressConnectionResponse>(asyncResult);
}
#endregion
#region DeleteAutoScalingConfiguration
/// <summary>
/// Delete an App Runner automatic scaling configuration resource. You can delete a specific
/// revision or the latest active revision. You can't delete a configuration that's used
/// by one or more App Runner services.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingConfiguration service method.</param>
///
/// <returns>The response from the DeleteAutoScalingConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfiguration">REST API Reference for DeleteAutoScalingConfiguration Operation</seealso>
public virtual DeleteAutoScalingConfigurationResponse DeleteAutoScalingConfiguration(DeleteAutoScalingConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAutoScalingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAutoScalingConfigurationResponseUnmarshaller.Instance;
return Invoke<DeleteAutoScalingConfigurationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteAutoScalingConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingConfiguration operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAutoScalingConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfiguration">REST API Reference for DeleteAutoScalingConfiguration Operation</seealso>
public virtual IAsyncResult BeginDeleteAutoScalingConfiguration(DeleteAutoScalingConfigurationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAutoScalingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAutoScalingConfigurationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteAutoScalingConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteAutoScalingConfiguration.</param>
///
/// <returns>Returns a DeleteAutoScalingConfigurationResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfiguration">REST API Reference for DeleteAutoScalingConfiguration Operation</seealso>
public virtual DeleteAutoScalingConfigurationResponse EndDeleteAutoScalingConfiguration(IAsyncResult asyncResult)
{
return EndInvoke<DeleteAutoScalingConfigurationResponse>(asyncResult);
}
#endregion
#region DeleteConnection
/// <summary>
/// Delete an App Runner connection. You must first ensure that there are no running App
/// Runner services that use this connection. If there are any, the <code>DeleteConnection</code>
/// action fails.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection service method.</param>
///
/// <returns>The response from the DeleteConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
public virtual DeleteConnectionResponse DeleteConnection(DeleteConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteConnectionResponseUnmarshaller.Instance;
return Invoke<DeleteConnectionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
public virtual IAsyncResult BeginDeleteConnection(DeleteConnectionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteConnectionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteConnection.</param>
///
/// <returns>Returns a DeleteConnectionResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
public virtual DeleteConnectionResponse EndDeleteConnection(IAsyncResult asyncResult)
{
return EndInvoke<DeleteConnectionResponse>(asyncResult);
}
#endregion
#region DeleteObservabilityConfiguration
/// <summary>
/// Delete an App Runner observability configuration resource. You can delete a specific
/// revision or the latest active revision. You can't delete a configuration that's used
/// by one or more App Runner services.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteObservabilityConfiguration service method.</param>
///
/// <returns>The response from the DeleteObservabilityConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteObservabilityConfiguration">REST API Reference for DeleteObservabilityConfiguration Operation</seealso>
public virtual DeleteObservabilityConfigurationResponse DeleteObservabilityConfiguration(DeleteObservabilityConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteObservabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteObservabilityConfigurationResponseUnmarshaller.Instance;
return Invoke<DeleteObservabilityConfigurationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteObservabilityConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteObservabilityConfiguration operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteObservabilityConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteObservabilityConfiguration">REST API Reference for DeleteObservabilityConfiguration Operation</seealso>
public virtual IAsyncResult BeginDeleteObservabilityConfiguration(DeleteObservabilityConfigurationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteObservabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteObservabilityConfigurationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteObservabilityConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteObservabilityConfiguration.</param>
///
/// <returns>Returns a DeleteObservabilityConfigurationResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteObservabilityConfiguration">REST API Reference for DeleteObservabilityConfiguration Operation</seealso>
public virtual DeleteObservabilityConfigurationResponse EndDeleteObservabilityConfiguration(IAsyncResult asyncResult)
{
return EndInvoke<DeleteObservabilityConfigurationResponse>(asyncResult);
}
#endregion
#region DeleteService
/// <summary>
/// Delete an App Runner 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>
/// <note>
/// <para>
/// Make sure that you don't have any active VPCIngressConnections associated with the
/// service you want to delete.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteService service method.</param>
///
/// <returns>The response from the DeleteService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteService">REST API Reference for DeleteService Operation</seealso>
public virtual DeleteServiceResponse DeleteService(DeleteServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteServiceResponseUnmarshaller.Instance;
return Invoke<DeleteServiceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteService operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteService operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteService
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteService">REST API Reference for DeleteService Operation</seealso>
public virtual IAsyncResult BeginDeleteService(DeleteServiceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteServiceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteService operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteService.</param>
///
/// <returns>Returns a DeleteServiceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteService">REST API Reference for DeleteService Operation</seealso>
public virtual DeleteServiceResponse EndDeleteService(IAsyncResult asyncResult)
{
return EndInvoke<DeleteServiceResponse>(asyncResult);
}
#endregion
#region DeleteVpcConnector
/// <summary>
/// Delete an App Runner VPC connector resource. You can't delete a connector that's used
/// by one or more App Runner services.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteVpcConnector service method.</param>
///
/// <returns>The response from the DeleteVpcConnector service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcConnector">REST API Reference for DeleteVpcConnector Operation</seealso>
public virtual DeleteVpcConnectorResponse DeleteVpcConnector(DeleteVpcConnectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVpcConnectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVpcConnectorResponseUnmarshaller.Instance;
return Invoke<DeleteVpcConnectorResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteVpcConnector operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteVpcConnector operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteVpcConnector
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcConnector">REST API Reference for DeleteVpcConnector Operation</seealso>
public virtual IAsyncResult BeginDeleteVpcConnector(DeleteVpcConnectorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVpcConnectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVpcConnectorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteVpcConnector operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteVpcConnector.</param>
///
/// <returns>Returns a DeleteVpcConnectorResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcConnector">REST API Reference for DeleteVpcConnector Operation</seealso>
public virtual DeleteVpcConnectorResponse EndDeleteVpcConnector(IAsyncResult asyncResult)
{
return EndInvoke<DeleteVpcConnectorResponse>(asyncResult);
}
#endregion
#region DeleteVpcIngressConnection
/// <summary>
/// Delete an App Runner VPC Ingress Connection resource that's associated with an App
/// Runner service. The VPC Ingress Connection must be in one of the following states
/// to be deleted:
///
/// <ul> <li>
/// <para>
/// <code>AVAILABLE</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>FAILED_CREATION</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>FAILED_UPDATE</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>FAILED_DELETION</code>
/// </para>
/// </li> </ul>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteVpcIngressConnection service method.</param>
///
/// <returns>The response from the DeleteVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcIngressConnection">REST API Reference for DeleteVpcIngressConnection Operation</seealso>
public virtual DeleteVpcIngressConnectionResponse DeleteVpcIngressConnection(DeleteVpcIngressConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVpcIngressConnectionResponseUnmarshaller.Instance;
return Invoke<DeleteVpcIngressConnectionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteVpcIngressConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteVpcIngressConnection operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteVpcIngressConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcIngressConnection">REST API Reference for DeleteVpcIngressConnection Operation</seealso>
public virtual IAsyncResult BeginDeleteVpcIngressConnection(DeleteVpcIngressConnectionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVpcIngressConnectionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteVpcIngressConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteVpcIngressConnection.</param>
///
/// <returns>Returns a DeleteVpcIngressConnectionResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcIngressConnection">REST API Reference for DeleteVpcIngressConnection Operation</seealso>
public virtual DeleteVpcIngressConnectionResponse EndDeleteVpcIngressConnection(IAsyncResult asyncResult)
{
return EndInvoke<DeleteVpcIngressConnectionResponse>(asyncResult);
}
#endregion
#region DescribeAutoScalingConfiguration
/// <summary>
/// Return a full description of an App Runner automatic scaling configuration resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingConfiguration service method.</param>
///
/// <returns>The response from the DescribeAutoScalingConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeAutoScalingConfiguration">REST API Reference for DescribeAutoScalingConfiguration Operation</seealso>
public virtual DescribeAutoScalingConfigurationResponse DescribeAutoScalingConfiguration(DescribeAutoScalingConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAutoScalingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAutoScalingConfigurationResponseUnmarshaller.Instance;
return Invoke<DescribeAutoScalingConfigurationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeAutoScalingConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingConfiguration operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAutoScalingConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeAutoScalingConfiguration">REST API Reference for DescribeAutoScalingConfiguration Operation</seealso>
public virtual IAsyncResult BeginDescribeAutoScalingConfiguration(DescribeAutoScalingConfigurationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAutoScalingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAutoScalingConfigurationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeAutoScalingConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAutoScalingConfiguration.</param>
///
/// <returns>Returns a DescribeAutoScalingConfigurationResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeAutoScalingConfiguration">REST API Reference for DescribeAutoScalingConfiguration Operation</seealso>
public virtual DescribeAutoScalingConfigurationResponse EndDescribeAutoScalingConfiguration(IAsyncResult asyncResult)
{
return EndInvoke<DescribeAutoScalingConfigurationResponse>(asyncResult);
}
#endregion
#region DescribeCustomDomains
/// <summary>
/// Return a description of custom domain names that are associated with an App Runner
/// service.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCustomDomains service method.</param>
///
/// <returns>The response from the DescribeCustomDomains service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeCustomDomains">REST API Reference for DescribeCustomDomains Operation</seealso>
public virtual DescribeCustomDomainsResponse DescribeCustomDomains(DescribeCustomDomainsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCustomDomainsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCustomDomainsResponseUnmarshaller.Instance;
return Invoke<DescribeCustomDomainsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeCustomDomains operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeCustomDomains operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeCustomDomains
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeCustomDomains">REST API Reference for DescribeCustomDomains Operation</seealso>
public virtual IAsyncResult BeginDescribeCustomDomains(DescribeCustomDomainsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCustomDomainsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCustomDomainsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeCustomDomains operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeCustomDomains.</param>
///
/// <returns>Returns a DescribeCustomDomainsResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeCustomDomains">REST API Reference for DescribeCustomDomains Operation</seealso>
public virtual DescribeCustomDomainsResponse EndDescribeCustomDomains(IAsyncResult asyncResult)
{
return EndInvoke<DescribeCustomDomainsResponse>(asyncResult);
}
#endregion
#region DescribeObservabilityConfiguration
/// <summary>
/// Return a full description of an App Runner observability configuration resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeObservabilityConfiguration service method.</param>
///
/// <returns>The response from the DescribeObservabilityConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeObservabilityConfiguration">REST API Reference for DescribeObservabilityConfiguration Operation</seealso>
public virtual DescribeObservabilityConfigurationResponse DescribeObservabilityConfiguration(DescribeObservabilityConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeObservabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeObservabilityConfigurationResponseUnmarshaller.Instance;
return Invoke<DescribeObservabilityConfigurationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeObservabilityConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeObservabilityConfiguration operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeObservabilityConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeObservabilityConfiguration">REST API Reference for DescribeObservabilityConfiguration Operation</seealso>
public virtual IAsyncResult BeginDescribeObservabilityConfiguration(DescribeObservabilityConfigurationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeObservabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeObservabilityConfigurationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeObservabilityConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeObservabilityConfiguration.</param>
///
/// <returns>Returns a DescribeObservabilityConfigurationResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeObservabilityConfiguration">REST API Reference for DescribeObservabilityConfiguration Operation</seealso>
public virtual DescribeObservabilityConfigurationResponse EndDescribeObservabilityConfiguration(IAsyncResult asyncResult)
{
return EndInvoke<DescribeObservabilityConfigurationResponse>(asyncResult);
}
#endregion
#region DescribeService
/// <summary>
/// Return a full description of an App Runner service.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeService service method.</param>
///
/// <returns>The response from the DescribeService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeService">REST API Reference for DescribeService Operation</seealso>
public virtual DescribeServiceResponse DescribeService(DescribeServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeServiceResponseUnmarshaller.Instance;
return Invoke<DescribeServiceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeService operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeService operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeService
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeService">REST API Reference for DescribeService Operation</seealso>
public virtual IAsyncResult BeginDescribeService(DescribeServiceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeServiceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeService operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeService.</param>
///
/// <returns>Returns a DescribeServiceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeService">REST API Reference for DescribeService Operation</seealso>
public virtual DescribeServiceResponse EndDescribeService(IAsyncResult asyncResult)
{
return EndInvoke<DescribeServiceResponse>(asyncResult);
}
#endregion
#region DescribeVpcConnector
/// <summary>
/// Return a description of an App Runner VPC connector resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeVpcConnector service method.</param>
///
/// <returns>The response from the DescribeVpcConnector service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcConnector">REST API Reference for DescribeVpcConnector Operation</seealso>
public virtual DescribeVpcConnectorResponse DescribeVpcConnector(DescribeVpcConnectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeVpcConnectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeVpcConnectorResponseUnmarshaller.Instance;
return Invoke<DescribeVpcConnectorResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeVpcConnector operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeVpcConnector operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeVpcConnector
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcConnector">REST API Reference for DescribeVpcConnector Operation</seealso>
public virtual IAsyncResult BeginDescribeVpcConnector(DescribeVpcConnectorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeVpcConnectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeVpcConnectorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeVpcConnector operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeVpcConnector.</param>
///
/// <returns>Returns a DescribeVpcConnectorResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcConnector">REST API Reference for DescribeVpcConnector Operation</seealso>
public virtual DescribeVpcConnectorResponse EndDescribeVpcConnector(IAsyncResult asyncResult)
{
return EndInvoke<DescribeVpcConnectorResponse>(asyncResult);
}
#endregion
#region DescribeVpcIngressConnection
/// <summary>
/// Return a full description of an App Runner VPC Ingress Connection resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeVpcIngressConnection service method.</param>
///
/// <returns>The response from the DescribeVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcIngressConnection">REST API Reference for DescribeVpcIngressConnection Operation</seealso>
public virtual DescribeVpcIngressConnectionResponse DescribeVpcIngressConnection(DescribeVpcIngressConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeVpcIngressConnectionResponseUnmarshaller.Instance;
return Invoke<DescribeVpcIngressConnectionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeVpcIngressConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeVpcIngressConnection operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeVpcIngressConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcIngressConnection">REST API Reference for DescribeVpcIngressConnection Operation</seealso>
public virtual IAsyncResult BeginDescribeVpcIngressConnection(DescribeVpcIngressConnectionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeVpcIngressConnectionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeVpcIngressConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeVpcIngressConnection.</param>
///
/// <returns>Returns a DescribeVpcIngressConnectionResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcIngressConnection">REST API Reference for DescribeVpcIngressConnection Operation</seealso>
public virtual DescribeVpcIngressConnectionResponse EndDescribeVpcIngressConnection(IAsyncResult asyncResult)
{
return EndInvoke<DescribeVpcIngressConnectionResponse>(asyncResult);
}
#endregion
#region DisassociateCustomDomain
/// <summary>
/// Disassociate a custom domain name from an App Runner service.
///
///
/// <para>
/// Certificates tracking domain validity are associated with a custom domain and are
/// stored in <a href="https://docs.aws.amazon.com/acm/latest/userguide">AWS Certificate
/// Manager (ACM)</a>. These certificates aren't deleted as part of this action. App Runner
/// delays certificate deletion for 30 days after a domain is disassociated from your
/// service.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisassociateCustomDomain service method.</param>
///
/// <returns>The response from the DisassociateCustomDomain service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DisassociateCustomDomain">REST API Reference for DisassociateCustomDomain Operation</seealso>
public virtual DisassociateCustomDomainResponse DisassociateCustomDomain(DisassociateCustomDomainRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateCustomDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateCustomDomainResponseUnmarshaller.Instance;
return Invoke<DisassociateCustomDomainResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DisassociateCustomDomain operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DisassociateCustomDomain operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateCustomDomain
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DisassociateCustomDomain">REST API Reference for DisassociateCustomDomain Operation</seealso>
public virtual IAsyncResult BeginDisassociateCustomDomain(DisassociateCustomDomainRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateCustomDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateCustomDomainResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DisassociateCustomDomain operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateCustomDomain.</param>
///
/// <returns>Returns a DisassociateCustomDomainResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DisassociateCustomDomain">REST API Reference for DisassociateCustomDomain Operation</seealso>
public virtual DisassociateCustomDomainResponse EndDisassociateCustomDomain(IAsyncResult asyncResult)
{
return EndInvoke<DisassociateCustomDomainResponse>(asyncResult);
}
#endregion
#region ListAutoScalingConfigurations
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListAutoScalingConfigurations service method.</param>
///
/// <returns>The response from the ListAutoScalingConfigurations service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListAutoScalingConfigurations">REST API Reference for ListAutoScalingConfigurations Operation</seealso>
public virtual ListAutoScalingConfigurationsResponse ListAutoScalingConfigurations(ListAutoScalingConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAutoScalingConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAutoScalingConfigurationsResponseUnmarshaller.Instance;
return Invoke<ListAutoScalingConfigurationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListAutoScalingConfigurations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListAutoScalingConfigurations operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAutoScalingConfigurations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListAutoScalingConfigurations">REST API Reference for ListAutoScalingConfigurations Operation</seealso>
public virtual IAsyncResult BeginListAutoScalingConfigurations(ListAutoScalingConfigurationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAutoScalingConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAutoScalingConfigurationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListAutoScalingConfigurations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListAutoScalingConfigurations.</param>
///
/// <returns>Returns a ListAutoScalingConfigurationsResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListAutoScalingConfigurations">REST API Reference for ListAutoScalingConfigurations Operation</seealso>
public virtual ListAutoScalingConfigurationsResponse EndListAutoScalingConfigurations(IAsyncResult asyncResult)
{
return EndInvoke<ListAutoScalingConfigurationsResponse>(asyncResult);
}
#endregion
#region ListConnections
/// <summary>
/// Returns a list of App Runner connections that are associated with your Amazon Web
/// Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConnections service method.</param>
///
/// <returns>The response from the ListConnections service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListConnections">REST API Reference for ListConnections Operation</seealso>
public virtual ListConnectionsResponse ListConnections(ListConnectionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConnectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConnectionsResponseUnmarshaller.Instance;
return Invoke<ListConnectionsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListConnections operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListConnections operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListConnections
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListConnections">REST API Reference for ListConnections Operation</seealso>
public virtual IAsyncResult BeginListConnections(ListConnectionsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConnectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConnectionsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListConnections operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListConnections.</param>
///
/// <returns>Returns a ListConnectionsResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListConnections">REST API Reference for ListConnections Operation</seealso>
public virtual ListConnectionsResponse EndListConnections(IAsyncResult asyncResult)
{
return EndInvoke<ListConnectionsResponse>(asyncResult);
}
#endregion
#region ListObservabilityConfigurations
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListObservabilityConfigurations service method.</param>
///
/// <returns>The response from the ListObservabilityConfigurations service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListObservabilityConfigurations">REST API Reference for ListObservabilityConfigurations Operation</seealso>
public virtual ListObservabilityConfigurationsResponse ListObservabilityConfigurations(ListObservabilityConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListObservabilityConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListObservabilityConfigurationsResponseUnmarshaller.Instance;
return Invoke<ListObservabilityConfigurationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListObservabilityConfigurations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListObservabilityConfigurations operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListObservabilityConfigurations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListObservabilityConfigurations">REST API Reference for ListObservabilityConfigurations Operation</seealso>
public virtual IAsyncResult BeginListObservabilityConfigurations(ListObservabilityConfigurationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListObservabilityConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListObservabilityConfigurationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListObservabilityConfigurations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListObservabilityConfigurations.</param>
///
/// <returns>Returns a ListObservabilityConfigurationsResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListObservabilityConfigurations">REST API Reference for ListObservabilityConfigurations Operation</seealso>
public virtual ListObservabilityConfigurationsResponse EndListObservabilityConfigurations(IAsyncResult asyncResult)
{
return EndInvoke<ListObservabilityConfigurationsResponse>(asyncResult);
}
#endregion
#region ListOperations
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListOperations service method.</param>
///
/// <returns>The response from the ListOperations service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListOperations">REST API Reference for ListOperations Operation</seealso>
public virtual ListOperationsResponse ListOperations(ListOperationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOperationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOperationsResponseUnmarshaller.Instance;
return Invoke<ListOperationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListOperations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListOperations operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListOperations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListOperations">REST API Reference for ListOperations Operation</seealso>
public virtual IAsyncResult BeginListOperations(ListOperationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOperationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOperationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListOperations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListOperations.</param>
///
/// <returns>Returns a ListOperationsResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListOperations">REST API Reference for ListOperations Operation</seealso>
public virtual ListOperationsResponse EndListOperations(IAsyncResult asyncResult)
{
return EndInvoke<ListOperationsResponse>(asyncResult);
}
#endregion
#region ListServices
/// <summary>
/// Returns a list of running App Runner services in your Amazon Web Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListServices service method.</param>
///
/// <returns>The response from the ListServices service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServices">REST API Reference for ListServices Operation</seealso>
public virtual ListServicesResponse ListServices(ListServicesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServicesResponseUnmarshaller.Instance;
return Invoke<ListServicesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListServices operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListServices operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListServices
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServices">REST API Reference for ListServices Operation</seealso>
public virtual IAsyncResult BeginListServices(ListServicesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServicesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListServices operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListServices.</param>
///
/// <returns>Returns a ListServicesResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServices">REST API Reference for ListServices Operation</seealso>
public virtual ListServicesResponse EndListServices(IAsyncResult asyncResult)
{
return EndInvoke<ListServicesResponse>(asyncResult);
}
#endregion
#region ListTagsForResource
/// <summary>
/// List tags that are associated with for an App Runner resource. The response contains
/// a list of tag key-value pairs.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke<ListTagsForResourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param>
///
/// <returns>Returns a ListTagsForResourceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult)
{
return EndInvoke<ListTagsForResourceResponse>(asyncResult);
}
#endregion
#region ListVpcConnectors
/// <summary>
/// Returns a list of App Runner VPC connectors in your Amazon Web Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListVpcConnectors service method.</param>
///
/// <returns>The response from the ListVpcConnectors service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcConnectors">REST API Reference for ListVpcConnectors Operation</seealso>
public virtual ListVpcConnectorsResponse ListVpcConnectors(ListVpcConnectorsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListVpcConnectorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListVpcConnectorsResponseUnmarshaller.Instance;
return Invoke<ListVpcConnectorsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListVpcConnectors operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListVpcConnectors operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListVpcConnectors
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcConnectors">REST API Reference for ListVpcConnectors Operation</seealso>
public virtual IAsyncResult BeginListVpcConnectors(ListVpcConnectorsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListVpcConnectorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListVpcConnectorsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListVpcConnectors operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListVpcConnectors.</param>
///
/// <returns>Returns a ListVpcConnectorsResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcConnectors">REST API Reference for ListVpcConnectors Operation</seealso>
public virtual ListVpcConnectorsResponse EndListVpcConnectors(IAsyncResult asyncResult)
{
return EndInvoke<ListVpcConnectorsResponse>(asyncResult);
}
#endregion
#region ListVpcIngressConnections
/// <summary>
/// Return a list of App Runner VPC Ingress Connections in your Amazon Web Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListVpcIngressConnections service method.</param>
///
/// <returns>The response from the ListVpcIngressConnections service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcIngressConnections">REST API Reference for ListVpcIngressConnections Operation</seealso>
public virtual ListVpcIngressConnectionsResponse ListVpcIngressConnections(ListVpcIngressConnectionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListVpcIngressConnectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListVpcIngressConnectionsResponseUnmarshaller.Instance;
return Invoke<ListVpcIngressConnectionsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListVpcIngressConnections operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListVpcIngressConnections operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListVpcIngressConnections
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcIngressConnections">REST API Reference for ListVpcIngressConnections Operation</seealso>
public virtual IAsyncResult BeginListVpcIngressConnections(ListVpcIngressConnectionsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListVpcIngressConnectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListVpcIngressConnectionsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListVpcIngressConnections operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListVpcIngressConnections.</param>
///
/// <returns>Returns a ListVpcIngressConnectionsResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcIngressConnections">REST API Reference for ListVpcIngressConnections Operation</seealso>
public virtual ListVpcIngressConnectionsResponse EndListVpcIngressConnections(IAsyncResult asyncResult)
{
return EndInvoke<ListVpcIngressConnectionsResponse>(asyncResult);
}
#endregion
#region PauseService
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PauseService service method.</param>
///
/// <returns>The response from the PauseService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/PauseService">REST API Reference for PauseService Operation</seealso>
public virtual PauseServiceResponse PauseService(PauseServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PauseServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = PauseServiceResponseUnmarshaller.Instance;
return Invoke<PauseServiceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the PauseService operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PauseService operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPauseService
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/PauseService">REST API Reference for PauseService Operation</seealso>
public virtual IAsyncResult BeginPauseService(PauseServiceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PauseServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = PauseServiceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the PauseService operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPauseService.</param>
///
/// <returns>Returns a PauseServiceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/PauseService">REST API Reference for PauseService Operation</seealso>
public virtual PauseServiceResponse EndPauseService(IAsyncResult asyncResult)
{
return EndInvoke<PauseServiceResponse>(asyncResult);
}
#endregion
#region ResumeService
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ResumeService service method.</param>
///
/// <returns>The response from the ResumeService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ResumeService">REST API Reference for ResumeService Operation</seealso>
public virtual ResumeServiceResponse ResumeService(ResumeServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ResumeServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResumeServiceResponseUnmarshaller.Instance;
return Invoke<ResumeServiceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ResumeService operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ResumeService operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndResumeService
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ResumeService">REST API Reference for ResumeService Operation</seealso>
public virtual IAsyncResult BeginResumeService(ResumeServiceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ResumeServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResumeServiceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ResumeService operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginResumeService.</param>
///
/// <returns>Returns a ResumeServiceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ResumeService">REST API Reference for ResumeService Operation</seealso>
public virtual ResumeServiceResponse EndResumeService(IAsyncResult asyncResult)
{
return EndInvoke<ResumeServiceResponse>(asyncResult);
}
#endregion
#region StartDeployment
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the StartDeployment service method.</param>
///
/// <returns>The response from the StartDeployment service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/StartDeployment">REST API Reference for StartDeployment Operation</seealso>
public virtual StartDeploymentResponse StartDeployment(StartDeploymentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartDeploymentRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartDeploymentResponseUnmarshaller.Instance;
return Invoke<StartDeploymentResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the StartDeployment operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartDeployment operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartDeployment
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/StartDeployment">REST API Reference for StartDeployment Operation</seealso>
public virtual IAsyncResult BeginStartDeployment(StartDeploymentRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartDeploymentRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartDeploymentResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the StartDeployment operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartDeployment.</param>
///
/// <returns>Returns a StartDeploymentResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/StartDeployment">REST API Reference for StartDeployment Operation</seealso>
public virtual StartDeploymentResponse EndStartDeployment(IAsyncResult asyncResult)
{
return EndInvoke<StartDeploymentResponse>(asyncResult);
}
#endregion
#region TagResource
/// <summary>
/// Add tags to, or update the tag values of, an App Runner resource. A tag is a key-value
/// pair.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke<TagResourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param>
///
/// <returns>Returns a TagResourceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult)
{
return EndInvoke<TagResourceResponse>(asyncResult);
}
#endregion
#region UntagResource
/// <summary>
/// Remove tags from an App Runner resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke<UntagResourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param>
///
/// <returns>Returns a UntagResourceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult)
{
return EndInvoke<UntagResourceResponse>(asyncResult);
}
#endregion
#region UpdateService
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UpdateService service method.</param>
///
/// <returns>The response from the UpdateService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateService">REST API Reference for UpdateService Operation</seealso>
public virtual UpdateServiceResponse UpdateService(UpdateServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateServiceResponseUnmarshaller.Instance;
return Invoke<UpdateServiceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UpdateService operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateService operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateService
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateService">REST API Reference for UpdateService Operation</seealso>
public virtual IAsyncResult BeginUpdateService(UpdateServiceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateServiceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UpdateService operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateService.</param>
///
/// <returns>Returns a UpdateServiceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateService">REST API Reference for UpdateService Operation</seealso>
public virtual UpdateServiceResponse EndUpdateService(IAsyncResult asyncResult)
{
return EndInvoke<UpdateServiceResponse>(asyncResult);
}
#endregion
#region UpdateVpcIngressConnection
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UpdateVpcIngressConnection service method.</param>
///
/// <returns>The response from the UpdateVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateVpcIngressConnection">REST API Reference for UpdateVpcIngressConnection Operation</seealso>
public virtual UpdateVpcIngressConnectionResponse UpdateVpcIngressConnection(UpdateVpcIngressConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateVpcIngressConnectionResponseUnmarshaller.Instance;
return Invoke<UpdateVpcIngressConnectionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UpdateVpcIngressConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateVpcIngressConnection operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateVpcIngressConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateVpcIngressConnection">REST API Reference for UpdateVpcIngressConnection Operation</seealso>
public virtual IAsyncResult BeginUpdateVpcIngressConnection(UpdateVpcIngressConnectionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateVpcIngressConnectionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UpdateVpcIngressConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateVpcIngressConnection.</param>
///
/// <returns>Returns a UpdateVpcIngressConnectionResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateVpcIngressConnection">REST API Reference for UpdateVpcIngressConnection Operation</seealso>
public virtual UpdateVpcIngressConnectionResponse EndUpdateVpcIngressConnection(IAsyncResult asyncResult)
{
return EndInvoke<UpdateVpcIngressConnectionResponse>(asyncResult);
}
#endregion
}
} | 2,836 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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 Amazon.Runtime;
using Amazon.AppRunner.Model;
namespace Amazon.AppRunner
{
/// <summary>
/// Interface for accessing AppRunner
///
/// App Runner
/// <para>
/// App Runner is an application service that provides a fast, simple, and cost-effective
/// way to go directly from an existing container image or source code to a running service
/// in the Amazon Web Services Cloud in seconds. You don't need to learn new technologies,
/// decide which compute service to use, or understand how to provision and configure
/// Amazon Web Services resources.
/// </para>
///
/// <para>
/// App Runner connects directly to your container registry or source code repository.
/// It provides an automatic delivery pipeline with fully managed operations, high performance,
/// scalability, and security.
/// </para>
///
/// <para>
/// For more information about App Runner, see the <a href="https://docs.aws.amazon.com/apprunner/latest/dg/">App
/// Runner Developer Guide</a>. For release information, see the <a href="https://docs.aws.amazon.com/apprunner/latest/relnotes/">App
/// Runner Release Notes</a>.
/// </para>
///
/// <para>
/// To install the Software Development Kits (SDKs), Integrated Development Environment
/// (IDE) Toolkits, and command line tools that you can use to access the API, see <a
/// href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.
/// </para>
///
/// <para>
/// <b>Endpoints</b>
/// </para>
///
/// <para>
/// For a list of Region-specific endpoints that App Runner supports, 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>
public partial interface IAmazonAppRunner : IAmazonService, IDisposable
{
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IAppRunnerPaginatorFactory Paginators { get; }
#endif
#region AssociateCustomDomain
/// <summary>
/// Associate your own domain name with the App Runner subdomain URL of your App Runner
/// service.
///
///
/// <para>
/// After you call <code>AssociateCustomDomain</code> and receive a successful response,
/// use the information in the <a>CustomDomain</a> record that's returned to add CNAME
/// records to your Domain Name System (DNS). For each mapped domain name, add a mapping
/// to the target App Runner subdomain and one or more certificate validation records.
/// App Runner then performs DNS validation to verify that you own or control the domain
/// name that you associated. App Runner tracks domain validity in a certificate stored
/// in <a href="https://docs.aws.amazon.com/acm/latest/userguide">AWS Certificate Manager
/// (ACM)</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AssociateCustomDomain service method.</param>
///
/// <returns>The response from the AssociateCustomDomain service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/AssociateCustomDomain">REST API Reference for AssociateCustomDomain Operation</seealso>
AssociateCustomDomainResponse AssociateCustomDomain(AssociateCustomDomainRequest request);
/// <summary>
/// Initiates the asynchronous execution of the AssociateCustomDomain operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the AssociateCustomDomain operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociateCustomDomain
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/AssociateCustomDomain">REST API Reference for AssociateCustomDomain Operation</seealso>
IAsyncResult BeginAssociateCustomDomain(AssociateCustomDomainRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the AssociateCustomDomain operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociateCustomDomain.</param>
///
/// <returns>Returns a AssociateCustomDomainResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/AssociateCustomDomain">REST API Reference for AssociateCustomDomain Operation</seealso>
AssociateCustomDomainResponse EndAssociateCustomDomain(IAsyncResult asyncResult);
#endregion
#region CreateAutoScalingConfiguration
/// <summary>
/// Create an App Runner automatic scaling configuration resource. App Runner requires
/// this resource when you create or update App Runner services and you require non-default
/// auto scaling settings. You can share an auto scaling configuration across multiple
/// services.
///
///
/// <para>
/// Create multiple revisions of a configuration by calling this action multiple times
/// using the same <code>AutoScalingConfigurationName</code>. The call returns incremental
/// <code>AutoScalingConfigurationRevision</code> values. When you create a service and
/// configure an auto scaling configuration resource, the service uses the latest active
/// revision of the auto scaling configuration by default. You can optionally configure
/// the service to use a specific revision.
/// </para>
///
/// <para>
/// Configure a higher <code>MinSize</code> to increase the spread of your App Runner
/// service over more Availability Zones in the Amazon Web Services Region. The tradeoff
/// is a higher minimal cost.
/// </para>
///
/// <para>
/// Configure a lower <code>MaxSize</code> to control your cost. The tradeoff is lower
/// responsiveness during peak demand.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingConfiguration service method.</param>
///
/// <returns>The response from the CreateAutoScalingConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateAutoScalingConfiguration">REST API Reference for CreateAutoScalingConfiguration Operation</seealso>
CreateAutoScalingConfigurationResponse CreateAutoScalingConfiguration(CreateAutoScalingConfigurationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateAutoScalingConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingConfiguration operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAutoScalingConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateAutoScalingConfiguration">REST API Reference for CreateAutoScalingConfiguration Operation</seealso>
IAsyncResult BeginCreateAutoScalingConfiguration(CreateAutoScalingConfigurationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateAutoScalingConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateAutoScalingConfiguration.</param>
///
/// <returns>Returns a CreateAutoScalingConfigurationResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateAutoScalingConfiguration">REST API Reference for CreateAutoScalingConfiguration Operation</seealso>
CreateAutoScalingConfigurationResponse EndCreateAutoScalingConfiguration(IAsyncResult asyncResult);
#endregion
#region CreateConnection
/// <summary>
/// Create an App Runner connection resource. App Runner requires a connection resource
/// when you create App Runner services that access private repositories from certain
/// third-party providers. You can share a connection across multiple services.
///
///
/// <para>
/// A connection resource is needed to access GitHub repositories. GitHub requires a user
/// interface approval process through the App Runner console before you can use the connection.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateConnection service method.</param>
///
/// <returns>The response from the CreateConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
CreateConnectionResponse CreateConnection(CreateConnectionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateConnection operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
IAsyncResult BeginCreateConnection(CreateConnectionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateConnection.</param>
///
/// <returns>Returns a CreateConnectionResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
CreateConnectionResponse EndCreateConnection(IAsyncResult asyncResult);
#endregion
#region CreateObservabilityConfiguration
/// <summary>
/// Create an App Runner observability configuration resource. App Runner requires this
/// resource when you create or update App Runner services and you want to enable non-default
/// observability features. You can share an observability configuration across multiple
/// services.
///
///
/// <para>
/// Create multiple revisions of a configuration by calling this action multiple times
/// using the same <code>ObservabilityConfigurationName</code>. The call returns incremental
/// <code>ObservabilityConfigurationRevision</code> values. When you create a service
/// and configure an observability configuration resource, the service uses the latest
/// active revision of the observability configuration by default. You can optionally
/// configure the service to use a specific revision.
/// </para>
///
/// <para>
/// The observability configuration resource is designed to configure multiple features
/// (currently one feature, tracing). This action takes optional parameters that describe
/// the configuration of these features (currently one parameter, <code>TraceConfiguration</code>).
/// If you don't specify a feature parameter, App Runner doesn't enable the feature.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateObservabilityConfiguration service method.</param>
///
/// <returns>The response from the CreateObservabilityConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateObservabilityConfiguration">REST API Reference for CreateObservabilityConfiguration Operation</seealso>
CreateObservabilityConfigurationResponse CreateObservabilityConfiguration(CreateObservabilityConfigurationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateObservabilityConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateObservabilityConfiguration operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateObservabilityConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateObservabilityConfiguration">REST API Reference for CreateObservabilityConfiguration Operation</seealso>
IAsyncResult BeginCreateObservabilityConfiguration(CreateObservabilityConfigurationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateObservabilityConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateObservabilityConfiguration.</param>
///
/// <returns>Returns a CreateObservabilityConfigurationResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateObservabilityConfiguration">REST API Reference for CreateObservabilityConfiguration Operation</seealso>
CreateObservabilityConfigurationResponse EndCreateObservabilityConfiguration(IAsyncResult asyncResult);
#endregion
#region CreateService
/// <summary>
/// Create an App Runner service. After the service is created, the action also automatically
/// starts a deployment.
///
///
/// <para>
/// This is an asynchronous operation. On a successful call, you can use the returned
/// <code>OperationId</code> and the <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_ListOperations.html">ListOperations</a>
/// call to track the operation's progress.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateService service method.</param>
///
/// <returns>The response from the CreateService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateService">REST API Reference for CreateService Operation</seealso>
CreateServiceResponse CreateService(CreateServiceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateService operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateService operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateService
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateService">REST API Reference for CreateService Operation</seealso>
IAsyncResult BeginCreateService(CreateServiceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateService operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateService.</param>
///
/// <returns>Returns a CreateServiceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateService">REST API Reference for CreateService Operation</seealso>
CreateServiceResponse EndCreateService(IAsyncResult asyncResult);
#endregion
#region CreateVpcConnector
/// <summary>
/// Create an App Runner VPC connector resource. App Runner requires this resource when
/// you want to associate your App Runner service to a custom Amazon Virtual Private Cloud
/// (Amazon VPC).
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateVpcConnector service method.</param>
///
/// <returns>The response from the CreateVpcConnector service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcConnector">REST API Reference for CreateVpcConnector Operation</seealso>
CreateVpcConnectorResponse CreateVpcConnector(CreateVpcConnectorRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateVpcConnector operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateVpcConnector operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateVpcConnector
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcConnector">REST API Reference for CreateVpcConnector Operation</seealso>
IAsyncResult BeginCreateVpcConnector(CreateVpcConnectorRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateVpcConnector operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateVpcConnector.</param>
///
/// <returns>Returns a CreateVpcConnectorResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcConnector">REST API Reference for CreateVpcConnector Operation</seealso>
CreateVpcConnectorResponse EndCreateVpcConnector(IAsyncResult asyncResult);
#endregion
#region CreateVpcIngressConnection
/// <summary>
/// Create an App Runner VPC Ingress Connection resource. App Runner requires this resource
/// when you want to associate your App Runner service with an Amazon VPC endpoint.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateVpcIngressConnection service method.</param>
///
/// <returns>The response from the CreateVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcIngressConnection">REST API Reference for CreateVpcIngressConnection Operation</seealso>
CreateVpcIngressConnectionResponse CreateVpcIngressConnection(CreateVpcIngressConnectionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateVpcIngressConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateVpcIngressConnection operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateVpcIngressConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcIngressConnection">REST API Reference for CreateVpcIngressConnection Operation</seealso>
IAsyncResult BeginCreateVpcIngressConnection(CreateVpcIngressConnectionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateVpcIngressConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateVpcIngressConnection.</param>
///
/// <returns>Returns a CreateVpcIngressConnectionResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcIngressConnection">REST API Reference for CreateVpcIngressConnection Operation</seealso>
CreateVpcIngressConnectionResponse EndCreateVpcIngressConnection(IAsyncResult asyncResult);
#endregion
#region DeleteAutoScalingConfiguration
/// <summary>
/// Delete an App Runner automatic scaling configuration resource. You can delete a specific
/// revision or the latest active revision. You can't delete a configuration that's used
/// by one or more App Runner services.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingConfiguration service method.</param>
///
/// <returns>The response from the DeleteAutoScalingConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfiguration">REST API Reference for DeleteAutoScalingConfiguration Operation</seealso>
DeleteAutoScalingConfigurationResponse DeleteAutoScalingConfiguration(DeleteAutoScalingConfigurationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteAutoScalingConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingConfiguration operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAutoScalingConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfiguration">REST API Reference for DeleteAutoScalingConfiguration Operation</seealso>
IAsyncResult BeginDeleteAutoScalingConfiguration(DeleteAutoScalingConfigurationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteAutoScalingConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteAutoScalingConfiguration.</param>
///
/// <returns>Returns a DeleteAutoScalingConfigurationResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfiguration">REST API Reference for DeleteAutoScalingConfiguration Operation</seealso>
DeleteAutoScalingConfigurationResponse EndDeleteAutoScalingConfiguration(IAsyncResult asyncResult);
#endregion
#region DeleteConnection
/// <summary>
/// Delete an App Runner connection. You must first ensure that there are no running App
/// Runner services that use this connection. If there are any, the <code>DeleteConnection</code>
/// action fails.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection service method.</param>
///
/// <returns>The response from the DeleteConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
DeleteConnectionResponse DeleteConnection(DeleteConnectionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
IAsyncResult BeginDeleteConnection(DeleteConnectionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteConnection.</param>
///
/// <returns>Returns a DeleteConnectionResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
DeleteConnectionResponse EndDeleteConnection(IAsyncResult asyncResult);
#endregion
#region DeleteObservabilityConfiguration
/// <summary>
/// Delete an App Runner observability configuration resource. You can delete a specific
/// revision or the latest active revision. You can't delete a configuration that's used
/// by one or more App Runner services.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteObservabilityConfiguration service method.</param>
///
/// <returns>The response from the DeleteObservabilityConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteObservabilityConfiguration">REST API Reference for DeleteObservabilityConfiguration Operation</seealso>
DeleteObservabilityConfigurationResponse DeleteObservabilityConfiguration(DeleteObservabilityConfigurationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteObservabilityConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteObservabilityConfiguration operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteObservabilityConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteObservabilityConfiguration">REST API Reference for DeleteObservabilityConfiguration Operation</seealso>
IAsyncResult BeginDeleteObservabilityConfiguration(DeleteObservabilityConfigurationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteObservabilityConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteObservabilityConfiguration.</param>
///
/// <returns>Returns a DeleteObservabilityConfigurationResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteObservabilityConfiguration">REST API Reference for DeleteObservabilityConfiguration Operation</seealso>
DeleteObservabilityConfigurationResponse EndDeleteObservabilityConfiguration(IAsyncResult asyncResult);
#endregion
#region DeleteService
/// <summary>
/// Delete an App Runner 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>
/// <note>
/// <para>
/// Make sure that you don't have any active VPCIngressConnections associated with the
/// service you want to delete.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteService service method.</param>
///
/// <returns>The response from the DeleteService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteService">REST API Reference for DeleteService Operation</seealso>
DeleteServiceResponse DeleteService(DeleteServiceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteService operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteService operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteService
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteService">REST API Reference for DeleteService Operation</seealso>
IAsyncResult BeginDeleteService(DeleteServiceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteService operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteService.</param>
///
/// <returns>Returns a DeleteServiceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteService">REST API Reference for DeleteService Operation</seealso>
DeleteServiceResponse EndDeleteService(IAsyncResult asyncResult);
#endregion
#region DeleteVpcConnector
/// <summary>
/// Delete an App Runner VPC connector resource. You can't delete a connector that's used
/// by one or more App Runner services.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteVpcConnector service method.</param>
///
/// <returns>The response from the DeleteVpcConnector service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcConnector">REST API Reference for DeleteVpcConnector Operation</seealso>
DeleteVpcConnectorResponse DeleteVpcConnector(DeleteVpcConnectorRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteVpcConnector operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteVpcConnector operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteVpcConnector
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcConnector">REST API Reference for DeleteVpcConnector Operation</seealso>
IAsyncResult BeginDeleteVpcConnector(DeleteVpcConnectorRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteVpcConnector operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteVpcConnector.</param>
///
/// <returns>Returns a DeleteVpcConnectorResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcConnector">REST API Reference for DeleteVpcConnector Operation</seealso>
DeleteVpcConnectorResponse EndDeleteVpcConnector(IAsyncResult asyncResult);
#endregion
#region DeleteVpcIngressConnection
/// <summary>
/// Delete an App Runner VPC Ingress Connection resource that's associated with an App
/// Runner service. The VPC Ingress Connection must be in one of the following states
/// to be deleted:
///
/// <ul> <li>
/// <para>
/// <code>AVAILABLE</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>FAILED_CREATION</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>FAILED_UPDATE</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>FAILED_DELETION</code>
/// </para>
/// </li> </ul>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteVpcIngressConnection service method.</param>
///
/// <returns>The response from the DeleteVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcIngressConnection">REST API Reference for DeleteVpcIngressConnection Operation</seealso>
DeleteVpcIngressConnectionResponse DeleteVpcIngressConnection(DeleteVpcIngressConnectionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteVpcIngressConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteVpcIngressConnection operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteVpcIngressConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcIngressConnection">REST API Reference for DeleteVpcIngressConnection Operation</seealso>
IAsyncResult BeginDeleteVpcIngressConnection(DeleteVpcIngressConnectionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteVpcIngressConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteVpcIngressConnection.</param>
///
/// <returns>Returns a DeleteVpcIngressConnectionResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcIngressConnection">REST API Reference for DeleteVpcIngressConnection Operation</seealso>
DeleteVpcIngressConnectionResponse EndDeleteVpcIngressConnection(IAsyncResult asyncResult);
#endregion
#region DescribeAutoScalingConfiguration
/// <summary>
/// Return a full description of an App Runner automatic scaling configuration resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingConfiguration service method.</param>
///
/// <returns>The response from the DescribeAutoScalingConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeAutoScalingConfiguration">REST API Reference for DescribeAutoScalingConfiguration Operation</seealso>
DescribeAutoScalingConfigurationResponse DescribeAutoScalingConfiguration(DescribeAutoScalingConfigurationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeAutoScalingConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingConfiguration operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAutoScalingConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeAutoScalingConfiguration">REST API Reference for DescribeAutoScalingConfiguration Operation</seealso>
IAsyncResult BeginDescribeAutoScalingConfiguration(DescribeAutoScalingConfigurationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeAutoScalingConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAutoScalingConfiguration.</param>
///
/// <returns>Returns a DescribeAutoScalingConfigurationResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeAutoScalingConfiguration">REST API Reference for DescribeAutoScalingConfiguration Operation</seealso>
DescribeAutoScalingConfigurationResponse EndDescribeAutoScalingConfiguration(IAsyncResult asyncResult);
#endregion
#region DescribeCustomDomains
/// <summary>
/// Return a description of custom domain names that are associated with an App Runner
/// service.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCustomDomains service method.</param>
///
/// <returns>The response from the DescribeCustomDomains service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeCustomDomains">REST API Reference for DescribeCustomDomains Operation</seealso>
DescribeCustomDomainsResponse DescribeCustomDomains(DescribeCustomDomainsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeCustomDomains operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeCustomDomains operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeCustomDomains
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeCustomDomains">REST API Reference for DescribeCustomDomains Operation</seealso>
IAsyncResult BeginDescribeCustomDomains(DescribeCustomDomainsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeCustomDomains operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeCustomDomains.</param>
///
/// <returns>Returns a DescribeCustomDomainsResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeCustomDomains">REST API Reference for DescribeCustomDomains Operation</seealso>
DescribeCustomDomainsResponse EndDescribeCustomDomains(IAsyncResult asyncResult);
#endregion
#region DescribeObservabilityConfiguration
/// <summary>
/// Return a full description of an App Runner observability configuration resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeObservabilityConfiguration service method.</param>
///
/// <returns>The response from the DescribeObservabilityConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeObservabilityConfiguration">REST API Reference for DescribeObservabilityConfiguration Operation</seealso>
DescribeObservabilityConfigurationResponse DescribeObservabilityConfiguration(DescribeObservabilityConfigurationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeObservabilityConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeObservabilityConfiguration operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeObservabilityConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeObservabilityConfiguration">REST API Reference for DescribeObservabilityConfiguration Operation</seealso>
IAsyncResult BeginDescribeObservabilityConfiguration(DescribeObservabilityConfigurationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeObservabilityConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeObservabilityConfiguration.</param>
///
/// <returns>Returns a DescribeObservabilityConfigurationResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeObservabilityConfiguration">REST API Reference for DescribeObservabilityConfiguration Operation</seealso>
DescribeObservabilityConfigurationResponse EndDescribeObservabilityConfiguration(IAsyncResult asyncResult);
#endregion
#region DescribeService
/// <summary>
/// Return a full description of an App Runner service.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeService service method.</param>
///
/// <returns>The response from the DescribeService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeService">REST API Reference for DescribeService Operation</seealso>
DescribeServiceResponse DescribeService(DescribeServiceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeService operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeService operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeService
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeService">REST API Reference for DescribeService Operation</seealso>
IAsyncResult BeginDescribeService(DescribeServiceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeService operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeService.</param>
///
/// <returns>Returns a DescribeServiceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeService">REST API Reference for DescribeService Operation</seealso>
DescribeServiceResponse EndDescribeService(IAsyncResult asyncResult);
#endregion
#region DescribeVpcConnector
/// <summary>
/// Return a description of an App Runner VPC connector resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeVpcConnector service method.</param>
///
/// <returns>The response from the DescribeVpcConnector service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcConnector">REST API Reference for DescribeVpcConnector Operation</seealso>
DescribeVpcConnectorResponse DescribeVpcConnector(DescribeVpcConnectorRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeVpcConnector operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeVpcConnector operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeVpcConnector
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcConnector">REST API Reference for DescribeVpcConnector Operation</seealso>
IAsyncResult BeginDescribeVpcConnector(DescribeVpcConnectorRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeVpcConnector operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeVpcConnector.</param>
///
/// <returns>Returns a DescribeVpcConnectorResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcConnector">REST API Reference for DescribeVpcConnector Operation</seealso>
DescribeVpcConnectorResponse EndDescribeVpcConnector(IAsyncResult asyncResult);
#endregion
#region DescribeVpcIngressConnection
/// <summary>
/// Return a full description of an App Runner VPC Ingress Connection resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeVpcIngressConnection service method.</param>
///
/// <returns>The response from the DescribeVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcIngressConnection">REST API Reference for DescribeVpcIngressConnection Operation</seealso>
DescribeVpcIngressConnectionResponse DescribeVpcIngressConnection(DescribeVpcIngressConnectionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeVpcIngressConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeVpcIngressConnection operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeVpcIngressConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcIngressConnection">REST API Reference for DescribeVpcIngressConnection Operation</seealso>
IAsyncResult BeginDescribeVpcIngressConnection(DescribeVpcIngressConnectionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeVpcIngressConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeVpcIngressConnection.</param>
///
/// <returns>Returns a DescribeVpcIngressConnectionResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcIngressConnection">REST API Reference for DescribeVpcIngressConnection Operation</seealso>
DescribeVpcIngressConnectionResponse EndDescribeVpcIngressConnection(IAsyncResult asyncResult);
#endregion
#region DisassociateCustomDomain
/// <summary>
/// Disassociate a custom domain name from an App Runner service.
///
///
/// <para>
/// Certificates tracking domain validity are associated with a custom domain and are
/// stored in <a href="https://docs.aws.amazon.com/acm/latest/userguide">AWS Certificate
/// Manager (ACM)</a>. These certificates aren't deleted as part of this action. App Runner
/// delays certificate deletion for 30 days after a domain is disassociated from your
/// service.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisassociateCustomDomain service method.</param>
///
/// <returns>The response from the DisassociateCustomDomain service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DisassociateCustomDomain">REST API Reference for DisassociateCustomDomain Operation</seealso>
DisassociateCustomDomainResponse DisassociateCustomDomain(DisassociateCustomDomainRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DisassociateCustomDomain operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DisassociateCustomDomain operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateCustomDomain
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DisassociateCustomDomain">REST API Reference for DisassociateCustomDomain Operation</seealso>
IAsyncResult BeginDisassociateCustomDomain(DisassociateCustomDomainRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DisassociateCustomDomain operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateCustomDomain.</param>
///
/// <returns>Returns a DisassociateCustomDomainResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DisassociateCustomDomain">REST API Reference for DisassociateCustomDomain Operation</seealso>
DisassociateCustomDomainResponse EndDisassociateCustomDomain(IAsyncResult asyncResult);
#endregion
#region ListAutoScalingConfigurations
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListAutoScalingConfigurations service method.</param>
///
/// <returns>The response from the ListAutoScalingConfigurations service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListAutoScalingConfigurations">REST API Reference for ListAutoScalingConfigurations Operation</seealso>
ListAutoScalingConfigurationsResponse ListAutoScalingConfigurations(ListAutoScalingConfigurationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListAutoScalingConfigurations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListAutoScalingConfigurations operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAutoScalingConfigurations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListAutoScalingConfigurations">REST API Reference for ListAutoScalingConfigurations Operation</seealso>
IAsyncResult BeginListAutoScalingConfigurations(ListAutoScalingConfigurationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListAutoScalingConfigurations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListAutoScalingConfigurations.</param>
///
/// <returns>Returns a ListAutoScalingConfigurationsResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListAutoScalingConfigurations">REST API Reference for ListAutoScalingConfigurations Operation</seealso>
ListAutoScalingConfigurationsResponse EndListAutoScalingConfigurations(IAsyncResult asyncResult);
#endregion
#region ListConnections
/// <summary>
/// Returns a list of App Runner connections that are associated with your Amazon Web
/// Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConnections service method.</param>
///
/// <returns>The response from the ListConnections service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListConnections">REST API Reference for ListConnections Operation</seealso>
ListConnectionsResponse ListConnections(ListConnectionsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListConnections operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListConnections operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListConnections
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListConnections">REST API Reference for ListConnections Operation</seealso>
IAsyncResult BeginListConnections(ListConnectionsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListConnections operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListConnections.</param>
///
/// <returns>Returns a ListConnectionsResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListConnections">REST API Reference for ListConnections Operation</seealso>
ListConnectionsResponse EndListConnections(IAsyncResult asyncResult);
#endregion
#region ListObservabilityConfigurations
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListObservabilityConfigurations service method.</param>
///
/// <returns>The response from the ListObservabilityConfigurations service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListObservabilityConfigurations">REST API Reference for ListObservabilityConfigurations Operation</seealso>
ListObservabilityConfigurationsResponse ListObservabilityConfigurations(ListObservabilityConfigurationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListObservabilityConfigurations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListObservabilityConfigurations operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListObservabilityConfigurations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListObservabilityConfigurations">REST API Reference for ListObservabilityConfigurations Operation</seealso>
IAsyncResult BeginListObservabilityConfigurations(ListObservabilityConfigurationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListObservabilityConfigurations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListObservabilityConfigurations.</param>
///
/// <returns>Returns a ListObservabilityConfigurationsResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListObservabilityConfigurations">REST API Reference for ListObservabilityConfigurations Operation</seealso>
ListObservabilityConfigurationsResponse EndListObservabilityConfigurations(IAsyncResult asyncResult);
#endregion
#region ListOperations
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListOperations service method.</param>
///
/// <returns>The response from the ListOperations service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListOperations">REST API Reference for ListOperations Operation</seealso>
ListOperationsResponse ListOperations(ListOperationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListOperations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListOperations operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListOperations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListOperations">REST API Reference for ListOperations Operation</seealso>
IAsyncResult BeginListOperations(ListOperationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListOperations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListOperations.</param>
///
/// <returns>Returns a ListOperationsResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListOperations">REST API Reference for ListOperations Operation</seealso>
ListOperationsResponse EndListOperations(IAsyncResult asyncResult);
#endregion
#region ListServices
/// <summary>
/// Returns a list of running App Runner services in your Amazon Web Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListServices service method.</param>
///
/// <returns>The response from the ListServices service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServices">REST API Reference for ListServices Operation</seealso>
ListServicesResponse ListServices(ListServicesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListServices operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListServices operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListServices
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServices">REST API Reference for ListServices Operation</seealso>
IAsyncResult BeginListServices(ListServicesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListServices operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListServices.</param>
///
/// <returns>Returns a ListServicesResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServices">REST API Reference for ListServices Operation</seealso>
ListServicesResponse EndListServices(IAsyncResult asyncResult);
#endregion
#region ListTagsForResource
/// <summary>
/// List tags that are associated with for an App Runner resource. The response contains
/// a list of tag key-value pairs.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param>
///
/// <returns>Returns a ListTagsForResourceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult);
#endregion
#region ListVpcConnectors
/// <summary>
/// Returns a list of App Runner VPC connectors in your Amazon Web Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListVpcConnectors service method.</param>
///
/// <returns>The response from the ListVpcConnectors service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcConnectors">REST API Reference for ListVpcConnectors Operation</seealso>
ListVpcConnectorsResponse ListVpcConnectors(ListVpcConnectorsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListVpcConnectors operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListVpcConnectors operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListVpcConnectors
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcConnectors">REST API Reference for ListVpcConnectors Operation</seealso>
IAsyncResult BeginListVpcConnectors(ListVpcConnectorsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListVpcConnectors operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListVpcConnectors.</param>
///
/// <returns>Returns a ListVpcConnectorsResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcConnectors">REST API Reference for ListVpcConnectors Operation</seealso>
ListVpcConnectorsResponse EndListVpcConnectors(IAsyncResult asyncResult);
#endregion
#region ListVpcIngressConnections
/// <summary>
/// Return a list of App Runner VPC Ingress Connections in your Amazon Web Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListVpcIngressConnections service method.</param>
///
/// <returns>The response from the ListVpcIngressConnections service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcIngressConnections">REST API Reference for ListVpcIngressConnections Operation</seealso>
ListVpcIngressConnectionsResponse ListVpcIngressConnections(ListVpcIngressConnectionsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListVpcIngressConnections operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListVpcIngressConnections operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListVpcIngressConnections
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcIngressConnections">REST API Reference for ListVpcIngressConnections Operation</seealso>
IAsyncResult BeginListVpcIngressConnections(ListVpcIngressConnectionsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListVpcIngressConnections operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListVpcIngressConnections.</param>
///
/// <returns>Returns a ListVpcIngressConnectionsResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcIngressConnections">REST API Reference for ListVpcIngressConnections Operation</seealso>
ListVpcIngressConnectionsResponse EndListVpcIngressConnections(IAsyncResult asyncResult);
#endregion
#region PauseService
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PauseService service method.</param>
///
/// <returns>The response from the PauseService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/PauseService">REST API Reference for PauseService Operation</seealso>
PauseServiceResponse PauseService(PauseServiceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the PauseService operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PauseService operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPauseService
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/PauseService">REST API Reference for PauseService Operation</seealso>
IAsyncResult BeginPauseService(PauseServiceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the PauseService operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPauseService.</param>
///
/// <returns>Returns a PauseServiceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/PauseService">REST API Reference for PauseService Operation</seealso>
PauseServiceResponse EndPauseService(IAsyncResult asyncResult);
#endregion
#region ResumeService
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ResumeService service method.</param>
///
/// <returns>The response from the ResumeService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ResumeService">REST API Reference for ResumeService Operation</seealso>
ResumeServiceResponse ResumeService(ResumeServiceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ResumeService operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ResumeService operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndResumeService
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ResumeService">REST API Reference for ResumeService Operation</seealso>
IAsyncResult BeginResumeService(ResumeServiceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ResumeService operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginResumeService.</param>
///
/// <returns>Returns a ResumeServiceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ResumeService">REST API Reference for ResumeService Operation</seealso>
ResumeServiceResponse EndResumeService(IAsyncResult asyncResult);
#endregion
#region StartDeployment
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the StartDeployment service method.</param>
///
/// <returns>The response from the StartDeployment service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/StartDeployment">REST API Reference for StartDeployment Operation</seealso>
StartDeploymentResponse StartDeployment(StartDeploymentRequest request);
/// <summary>
/// Initiates the asynchronous execution of the StartDeployment operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartDeployment operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartDeployment
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/StartDeployment">REST API Reference for StartDeployment Operation</seealso>
IAsyncResult BeginStartDeployment(StartDeploymentRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the StartDeployment operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartDeployment.</param>
///
/// <returns>Returns a StartDeploymentResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/StartDeployment">REST API Reference for StartDeployment Operation</seealso>
StartDeploymentResponse EndStartDeployment(IAsyncResult asyncResult);
#endregion
#region TagResource
/// <summary>
/// Add tags to, or update the tag values of, an App Runner resource. A tag is a key-value
/// pair.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/TagResource">REST API Reference for TagResource Operation</seealso>
TagResourceResponse TagResource(TagResourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/TagResource">REST API Reference for TagResource Operation</seealso>
IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param>
///
/// <returns>Returns a TagResourceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/TagResource">REST API Reference for TagResource Operation</seealso>
TagResourceResponse EndTagResource(IAsyncResult asyncResult);
#endregion
#region UntagResource
/// <summary>
/// Remove tags from an App Runner resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UntagResource">REST API Reference for UntagResource Operation</seealso>
UntagResourceResponse UntagResource(UntagResourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UntagResource">REST API Reference for UntagResource Operation</seealso>
IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param>
///
/// <returns>Returns a UntagResourceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UntagResource">REST API Reference for UntagResource Operation</seealso>
UntagResourceResponse EndUntagResource(IAsyncResult asyncResult);
#endregion
#region UpdateService
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UpdateService service method.</param>
///
/// <returns>The response from the UpdateService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateService">REST API Reference for UpdateService Operation</seealso>
UpdateServiceResponse UpdateService(UpdateServiceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateService operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateService operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateService
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateService">REST API Reference for UpdateService Operation</seealso>
IAsyncResult BeginUpdateService(UpdateServiceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateService operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateService.</param>
///
/// <returns>Returns a UpdateServiceResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateService">REST API Reference for UpdateService Operation</seealso>
UpdateServiceResponse EndUpdateService(IAsyncResult asyncResult);
#endregion
#region UpdateVpcIngressConnection
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UpdateVpcIngressConnection service method.</param>
///
/// <returns>The response from the UpdateVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateVpcIngressConnection">REST API Reference for UpdateVpcIngressConnection Operation</seealso>
UpdateVpcIngressConnectionResponse UpdateVpcIngressConnection(UpdateVpcIngressConnectionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateVpcIngressConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateVpcIngressConnection operation on AmazonAppRunnerClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateVpcIngressConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateVpcIngressConnection">REST API Reference for UpdateVpcIngressConnection Operation</seealso>
IAsyncResult BeginUpdateVpcIngressConnection(UpdateVpcIngressConnectionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateVpcIngressConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateVpcIngressConnection.</param>
///
/// <returns>Returns a UpdateVpcIngressConnectionResult from AppRunner.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateVpcIngressConnection">REST API Reference for UpdateVpcIngressConnection Operation</seealso>
UpdateVpcIngressConnectionResponse EndUpdateVpcIngressConnection(IAsyncResult asyncResult);
#endregion
}
} | 2,126 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.AppRunner.Model;
using Amazon.AppRunner.Model.Internal.MarshallTransformations;
using Amazon.AppRunner.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AppRunner
{
/// <summary>
/// Implementation for accessing AppRunner
///
/// App Runner
/// <para>
/// App Runner is an application service that provides a fast, simple, and cost-effective
/// way to go directly from an existing container image or source code to a running service
/// in the Amazon Web Services Cloud in seconds. You don't need to learn new technologies,
/// decide which compute service to use, or understand how to provision and configure
/// Amazon Web Services resources.
/// </para>
///
/// <para>
/// App Runner connects directly to your container registry or source code repository.
/// It provides an automatic delivery pipeline with fully managed operations, high performance,
/// scalability, and security.
/// </para>
///
/// <para>
/// For more information about App Runner, see the <a href="https://docs.aws.amazon.com/apprunner/latest/dg/">App
/// Runner Developer Guide</a>. For release information, see the <a href="https://docs.aws.amazon.com/apprunner/latest/relnotes/">App
/// Runner Release Notes</a>.
/// </para>
///
/// <para>
/// To install the Software Development Kits (SDKs), Integrated Development Environment
/// (IDE) Toolkits, and command line tools that you can use to access the API, see <a
/// href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.
/// </para>
///
/// <para>
/// <b>Endpoints</b>
/// </para>
///
/// <para>
/// For a list of Region-specific endpoints that App Runner supports, 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>
public partial class AmazonAppRunnerClient : AmazonServiceClient, IAmazonAppRunner
{
private static IServiceMetadata serviceMetadata = new AmazonAppRunnerMetadata();
private IAppRunnerPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAppRunnerPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AppRunnerPaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
/// <summary>
/// Constructs AmazonAppRunnerClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonAppRunnerClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppRunnerConfig()) { }
/// <summary>
/// Constructs AmazonAppRunnerClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonAppRunnerClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppRunnerConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAppRunnerClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonAppRunnerClient Configuration Object</param>
public AmazonAppRunnerClient(AmazonAppRunnerConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAppRunnerClient(AWSCredentials credentials)
: this(credentials, new AmazonAppRunnerConfig())
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAppRunnerClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAppRunnerConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Credentials and an
/// AmazonAppRunnerClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAppRunnerClient Configuration Object</param>
public AmazonAppRunnerClient(AWSCredentials credentials, AmazonAppRunnerConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonAppRunnerClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppRunnerConfig())
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonAppRunnerClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppRunnerConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAppRunnerClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAppRunnerClient Configuration Object</param>
public AmazonAppRunnerClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAppRunnerConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonAppRunnerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppRunnerConfig())
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonAppRunnerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppRunnerConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAppRunnerClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAppRunnerClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonAppRunnerClient Configuration Object</param>
public AmazonAppRunnerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAppRunnerConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customize the pipeline
/// </summary>
/// <param name="pipeline"></param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAppRunnerEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region AssociateCustomDomain
/// <summary>
/// Associate your own domain name with the App Runner subdomain URL of your App Runner
/// service.
///
///
/// <para>
/// After you call <code>AssociateCustomDomain</code> and receive a successful response,
/// use the information in the <a>CustomDomain</a> record that's returned to add CNAME
/// records to your Domain Name System (DNS). For each mapped domain name, add a mapping
/// to the target App Runner subdomain and one or more certificate validation records.
/// App Runner then performs DNS validation to verify that you own or control the domain
/// name that you associated. App Runner tracks domain validity in a certificate stored
/// in <a href="https://docs.aws.amazon.com/acm/latest/userguide">AWS Certificate Manager
/// (ACM)</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AssociateCustomDomain service method.</param>
///
/// <returns>The response from the AssociateCustomDomain service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/AssociateCustomDomain">REST API Reference for AssociateCustomDomain Operation</seealso>
public virtual AssociateCustomDomainResponse AssociateCustomDomain(AssociateCustomDomainRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateCustomDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateCustomDomainResponseUnmarshaller.Instance;
return Invoke<AssociateCustomDomainResponse>(request, options);
}
/// <summary>
/// Associate your own domain name with the App Runner subdomain URL of your App Runner
/// service.
///
///
/// <para>
/// After you call <code>AssociateCustomDomain</code> and receive a successful response,
/// use the information in the <a>CustomDomain</a> record that's returned to add CNAME
/// records to your Domain Name System (DNS). For each mapped domain name, add a mapping
/// to the target App Runner subdomain and one or more certificate validation records.
/// App Runner then performs DNS validation to verify that you own or control the domain
/// name that you associated. App Runner tracks domain validity in a certificate stored
/// in <a href="https://docs.aws.amazon.com/acm/latest/userguide">AWS Certificate Manager
/// (ACM)</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AssociateCustomDomain service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the AssociateCustomDomain service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/AssociateCustomDomain">REST API Reference for AssociateCustomDomain Operation</seealso>
public virtual Task<AssociateCustomDomainResponse> AssociateCustomDomainAsync(AssociateCustomDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateCustomDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateCustomDomainResponseUnmarshaller.Instance;
return InvokeAsync<AssociateCustomDomainResponse>(request, options, cancellationToken);
}
#endregion
#region CreateAutoScalingConfiguration
/// <summary>
/// Create an App Runner automatic scaling configuration resource. App Runner requires
/// this resource when you create or update App Runner services and you require non-default
/// auto scaling settings. You can share an auto scaling configuration across multiple
/// services.
///
///
/// <para>
/// Create multiple revisions of a configuration by calling this action multiple times
/// using the same <code>AutoScalingConfigurationName</code>. The call returns incremental
/// <code>AutoScalingConfigurationRevision</code> values. When you create a service and
/// configure an auto scaling configuration resource, the service uses the latest active
/// revision of the auto scaling configuration by default. You can optionally configure
/// the service to use a specific revision.
/// </para>
///
/// <para>
/// Configure a higher <code>MinSize</code> to increase the spread of your App Runner
/// service over more Availability Zones in the Amazon Web Services Region. The tradeoff
/// is a higher minimal cost.
/// </para>
///
/// <para>
/// Configure a lower <code>MaxSize</code> to control your cost. The tradeoff is lower
/// responsiveness during peak demand.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingConfiguration service method.</param>
///
/// <returns>The response from the CreateAutoScalingConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateAutoScalingConfiguration">REST API Reference for CreateAutoScalingConfiguration Operation</seealso>
public virtual CreateAutoScalingConfigurationResponse CreateAutoScalingConfiguration(CreateAutoScalingConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAutoScalingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAutoScalingConfigurationResponseUnmarshaller.Instance;
return Invoke<CreateAutoScalingConfigurationResponse>(request, options);
}
/// <summary>
/// Create an App Runner automatic scaling configuration resource. App Runner requires
/// this resource when you create or update App Runner services and you require non-default
/// auto scaling settings. You can share an auto scaling configuration across multiple
/// services.
///
///
/// <para>
/// Create multiple revisions of a configuration by calling this action multiple times
/// using the same <code>AutoScalingConfigurationName</code>. The call returns incremental
/// <code>AutoScalingConfigurationRevision</code> values. When you create a service and
/// configure an auto scaling configuration resource, the service uses the latest active
/// revision of the auto scaling configuration by default. You can optionally configure
/// the service to use a specific revision.
/// </para>
///
/// <para>
/// Configure a higher <code>MinSize</code> to increase the spread of your App Runner
/// service over more Availability Zones in the Amazon Web Services Region. The tradeoff
/// is a higher minimal cost.
/// </para>
///
/// <para>
/// Configure a lower <code>MaxSize</code> to control your cost. The tradeoff is lower
/// responsiveness during peak demand.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingConfiguration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateAutoScalingConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateAutoScalingConfiguration">REST API Reference for CreateAutoScalingConfiguration Operation</seealso>
public virtual Task<CreateAutoScalingConfigurationResponse> CreateAutoScalingConfigurationAsync(CreateAutoScalingConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAutoScalingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAutoScalingConfigurationResponseUnmarshaller.Instance;
return InvokeAsync<CreateAutoScalingConfigurationResponse>(request, options, cancellationToken);
}
#endregion
#region CreateConnection
/// <summary>
/// Create an App Runner connection resource. App Runner requires a connection resource
/// when you create App Runner services that access private repositories from certain
/// third-party providers. You can share a connection across multiple services.
///
///
/// <para>
/// A connection resource is needed to access GitHub repositories. GitHub requires a user
/// interface approval process through the App Runner console before you can use the connection.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateConnection service method.</param>
///
/// <returns>The response from the CreateConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
public virtual CreateConnectionResponse CreateConnection(CreateConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateConnectionResponseUnmarshaller.Instance;
return Invoke<CreateConnectionResponse>(request, options);
}
/// <summary>
/// Create an App Runner connection resource. App Runner requires a connection resource
/// when you create App Runner services that access private repositories from certain
/// third-party providers. You can share a connection across multiple services.
///
///
/// <para>
/// A connection resource is needed to access GitHub repositories. GitHub requires a user
/// interface approval process through the App Runner console before you can use the connection.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
public virtual Task<CreateConnectionResponse> CreateConnectionAsync(CreateConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateConnectionResponseUnmarshaller.Instance;
return InvokeAsync<CreateConnectionResponse>(request, options, cancellationToken);
}
#endregion
#region CreateObservabilityConfiguration
/// <summary>
/// Create an App Runner observability configuration resource. App Runner requires this
/// resource when you create or update App Runner services and you want to enable non-default
/// observability features. You can share an observability configuration across multiple
/// services.
///
///
/// <para>
/// Create multiple revisions of a configuration by calling this action multiple times
/// using the same <code>ObservabilityConfigurationName</code>. The call returns incremental
/// <code>ObservabilityConfigurationRevision</code> values. When you create a service
/// and configure an observability configuration resource, the service uses the latest
/// active revision of the observability configuration by default. You can optionally
/// configure the service to use a specific revision.
/// </para>
///
/// <para>
/// The observability configuration resource is designed to configure multiple features
/// (currently one feature, tracing). This action takes optional parameters that describe
/// the configuration of these features (currently one parameter, <code>TraceConfiguration</code>).
/// If you don't specify a feature parameter, App Runner doesn't enable the feature.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateObservabilityConfiguration service method.</param>
///
/// <returns>The response from the CreateObservabilityConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateObservabilityConfiguration">REST API Reference for CreateObservabilityConfiguration Operation</seealso>
public virtual CreateObservabilityConfigurationResponse CreateObservabilityConfiguration(CreateObservabilityConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateObservabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateObservabilityConfigurationResponseUnmarshaller.Instance;
return Invoke<CreateObservabilityConfigurationResponse>(request, options);
}
/// <summary>
/// Create an App Runner observability configuration resource. App Runner requires this
/// resource when you create or update App Runner services and you want to enable non-default
/// observability features. You can share an observability configuration across multiple
/// services.
///
///
/// <para>
/// Create multiple revisions of a configuration by calling this action multiple times
/// using the same <code>ObservabilityConfigurationName</code>. The call returns incremental
/// <code>ObservabilityConfigurationRevision</code> values. When you create a service
/// and configure an observability configuration resource, the service uses the latest
/// active revision of the observability configuration by default. You can optionally
/// configure the service to use a specific revision.
/// </para>
///
/// <para>
/// The observability configuration resource is designed to configure multiple features
/// (currently one feature, tracing). This action takes optional parameters that describe
/// the configuration of these features (currently one parameter, <code>TraceConfiguration</code>).
/// If you don't specify a feature parameter, App Runner doesn't enable the feature.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateObservabilityConfiguration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateObservabilityConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateObservabilityConfiguration">REST API Reference for CreateObservabilityConfiguration Operation</seealso>
public virtual Task<CreateObservabilityConfigurationResponse> CreateObservabilityConfigurationAsync(CreateObservabilityConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateObservabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateObservabilityConfigurationResponseUnmarshaller.Instance;
return InvokeAsync<CreateObservabilityConfigurationResponse>(request, options, cancellationToken);
}
#endregion
#region CreateService
/// <summary>
/// Create an App Runner service. After the service is created, the action also automatically
/// starts a deployment.
///
///
/// <para>
/// This is an asynchronous operation. On a successful call, you can use the returned
/// <code>OperationId</code> and the <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_ListOperations.html">ListOperations</a>
/// call to track the operation's progress.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateService service method.</param>
///
/// <returns>The response from the CreateService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateService">REST API Reference for CreateService Operation</seealso>
public virtual CreateServiceResponse CreateService(CreateServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateServiceResponseUnmarshaller.Instance;
return Invoke<CreateServiceResponse>(request, options);
}
/// <summary>
/// Create an App Runner service. After the service is created, the action also automatically
/// starts a deployment.
///
///
/// <para>
/// This is an asynchronous operation. On a successful call, you can use the returned
/// <code>OperationId</code> and the <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_ListOperations.html">ListOperations</a>
/// call to track the operation's progress.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateService service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateService">REST API Reference for CreateService Operation</seealso>
public virtual Task<CreateServiceResponse> CreateServiceAsync(CreateServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateServiceResponseUnmarshaller.Instance;
return InvokeAsync<CreateServiceResponse>(request, options, cancellationToken);
}
#endregion
#region CreateVpcConnector
/// <summary>
/// Create an App Runner VPC connector resource. App Runner requires this resource when
/// you want to associate your App Runner service to a custom Amazon Virtual Private Cloud
/// (Amazon VPC).
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateVpcConnector service method.</param>
///
/// <returns>The response from the CreateVpcConnector service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcConnector">REST API Reference for CreateVpcConnector Operation</seealso>
public virtual CreateVpcConnectorResponse CreateVpcConnector(CreateVpcConnectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateVpcConnectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateVpcConnectorResponseUnmarshaller.Instance;
return Invoke<CreateVpcConnectorResponse>(request, options);
}
/// <summary>
/// Create an App Runner VPC connector resource. App Runner requires this resource when
/// you want to associate your App Runner service to a custom Amazon Virtual Private Cloud
/// (Amazon VPC).
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateVpcConnector service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateVpcConnector service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcConnector">REST API Reference for CreateVpcConnector Operation</seealso>
public virtual Task<CreateVpcConnectorResponse> CreateVpcConnectorAsync(CreateVpcConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateVpcConnectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateVpcConnectorResponseUnmarshaller.Instance;
return InvokeAsync<CreateVpcConnectorResponse>(request, options, cancellationToken);
}
#endregion
#region CreateVpcIngressConnection
/// <summary>
/// Create an App Runner VPC Ingress Connection resource. App Runner requires this resource
/// when you want to associate your App Runner service with an Amazon VPC endpoint.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateVpcIngressConnection service method.</param>
///
/// <returns>The response from the CreateVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcIngressConnection">REST API Reference for CreateVpcIngressConnection Operation</seealso>
public virtual CreateVpcIngressConnectionResponse CreateVpcIngressConnection(CreateVpcIngressConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateVpcIngressConnectionResponseUnmarshaller.Instance;
return Invoke<CreateVpcIngressConnectionResponse>(request, options);
}
/// <summary>
/// Create an App Runner VPC Ingress Connection resource. App Runner requires this resource
/// when you want to associate your App Runner service with an Amazon VPC endpoint.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateVpcIngressConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ServiceQuotaExceededException">
/// 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>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateVpcIngressConnection">REST API Reference for CreateVpcIngressConnection Operation</seealso>
public virtual Task<CreateVpcIngressConnectionResponse> CreateVpcIngressConnectionAsync(CreateVpcIngressConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateVpcIngressConnectionResponseUnmarshaller.Instance;
return InvokeAsync<CreateVpcIngressConnectionResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteAutoScalingConfiguration
/// <summary>
/// Delete an App Runner automatic scaling configuration resource. You can delete a specific
/// revision or the latest active revision. You can't delete a configuration that's used
/// by one or more App Runner services.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingConfiguration service method.</param>
///
/// <returns>The response from the DeleteAutoScalingConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfiguration">REST API Reference for DeleteAutoScalingConfiguration Operation</seealso>
public virtual DeleteAutoScalingConfigurationResponse DeleteAutoScalingConfiguration(DeleteAutoScalingConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAutoScalingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAutoScalingConfigurationResponseUnmarshaller.Instance;
return Invoke<DeleteAutoScalingConfigurationResponse>(request, options);
}
/// <summary>
/// Delete an App Runner automatic scaling configuration resource. You can delete a specific
/// revision or the latest active revision. You can't delete a configuration that's used
/// by one or more App Runner services.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingConfiguration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteAutoScalingConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfiguration">REST API Reference for DeleteAutoScalingConfiguration Operation</seealso>
public virtual Task<DeleteAutoScalingConfigurationResponse> DeleteAutoScalingConfigurationAsync(DeleteAutoScalingConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAutoScalingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAutoScalingConfigurationResponseUnmarshaller.Instance;
return InvokeAsync<DeleteAutoScalingConfigurationResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteConnection
/// <summary>
/// Delete an App Runner connection. You must first ensure that there are no running App
/// Runner services that use this connection. If there are any, the <code>DeleteConnection</code>
/// action fails.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection service method.</param>
///
/// <returns>The response from the DeleteConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
public virtual DeleteConnectionResponse DeleteConnection(DeleteConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteConnectionResponseUnmarshaller.Instance;
return Invoke<DeleteConnectionResponse>(request, options);
}
/// <summary>
/// Delete an App Runner connection. You must first ensure that there are no running App
/// Runner services that use this connection. If there are any, the <code>DeleteConnection</code>
/// action fails.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
public virtual Task<DeleteConnectionResponse> DeleteConnectionAsync(DeleteConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteConnectionResponseUnmarshaller.Instance;
return InvokeAsync<DeleteConnectionResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteObservabilityConfiguration
/// <summary>
/// Delete an App Runner observability configuration resource. You can delete a specific
/// revision or the latest active revision. You can't delete a configuration that's used
/// by one or more App Runner services.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteObservabilityConfiguration service method.</param>
///
/// <returns>The response from the DeleteObservabilityConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteObservabilityConfiguration">REST API Reference for DeleteObservabilityConfiguration Operation</seealso>
public virtual DeleteObservabilityConfigurationResponse DeleteObservabilityConfiguration(DeleteObservabilityConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteObservabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteObservabilityConfigurationResponseUnmarshaller.Instance;
return Invoke<DeleteObservabilityConfigurationResponse>(request, options);
}
/// <summary>
/// Delete an App Runner observability configuration resource. You can delete a specific
/// revision or the latest active revision. You can't delete a configuration that's used
/// by one or more App Runner services.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteObservabilityConfiguration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteObservabilityConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteObservabilityConfiguration">REST API Reference for DeleteObservabilityConfiguration Operation</seealso>
public virtual Task<DeleteObservabilityConfigurationResponse> DeleteObservabilityConfigurationAsync(DeleteObservabilityConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteObservabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteObservabilityConfigurationResponseUnmarshaller.Instance;
return InvokeAsync<DeleteObservabilityConfigurationResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteService
/// <summary>
/// Delete an App Runner 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>
/// <note>
/// <para>
/// Make sure that you don't have any active VPCIngressConnections associated with the
/// service you want to delete.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteService service method.</param>
///
/// <returns>The response from the DeleteService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteService">REST API Reference for DeleteService Operation</seealso>
public virtual DeleteServiceResponse DeleteService(DeleteServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteServiceResponseUnmarshaller.Instance;
return Invoke<DeleteServiceResponse>(request, options);
}
/// <summary>
/// Delete an App Runner 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>
/// <note>
/// <para>
/// Make sure that you don't have any active VPCIngressConnections associated with the
/// service you want to delete.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteService service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteService">REST API Reference for DeleteService Operation</seealso>
public virtual Task<DeleteServiceResponse> DeleteServiceAsync(DeleteServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteServiceResponseUnmarshaller.Instance;
return InvokeAsync<DeleteServiceResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteVpcConnector
/// <summary>
/// Delete an App Runner VPC connector resource. You can't delete a connector that's used
/// by one or more App Runner services.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteVpcConnector service method.</param>
///
/// <returns>The response from the DeleteVpcConnector service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcConnector">REST API Reference for DeleteVpcConnector Operation</seealso>
public virtual DeleteVpcConnectorResponse DeleteVpcConnector(DeleteVpcConnectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVpcConnectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVpcConnectorResponseUnmarshaller.Instance;
return Invoke<DeleteVpcConnectorResponse>(request, options);
}
/// <summary>
/// Delete an App Runner VPC connector resource. You can't delete a connector that's used
/// by one or more App Runner services.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteVpcConnector service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteVpcConnector service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcConnector">REST API Reference for DeleteVpcConnector Operation</seealso>
public virtual Task<DeleteVpcConnectorResponse> DeleteVpcConnectorAsync(DeleteVpcConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVpcConnectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVpcConnectorResponseUnmarshaller.Instance;
return InvokeAsync<DeleteVpcConnectorResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteVpcIngressConnection
/// <summary>
/// Delete an App Runner VPC Ingress Connection resource that's associated with an App
/// Runner service. The VPC Ingress Connection must be in one of the following states
/// to be deleted:
///
/// <ul> <li>
/// <para>
/// <code>AVAILABLE</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>FAILED_CREATION</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>FAILED_UPDATE</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>FAILED_DELETION</code>
/// </para>
/// </li> </ul>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteVpcIngressConnection service method.</param>
///
/// <returns>The response from the DeleteVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcIngressConnection">REST API Reference for DeleteVpcIngressConnection Operation</seealso>
public virtual DeleteVpcIngressConnectionResponse DeleteVpcIngressConnection(DeleteVpcIngressConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVpcIngressConnectionResponseUnmarshaller.Instance;
return Invoke<DeleteVpcIngressConnectionResponse>(request, options);
}
/// <summary>
/// Delete an App Runner VPC Ingress Connection resource that's associated with an App
/// Runner service. The VPC Ingress Connection must be in one of the following states
/// to be deleted:
///
/// <ul> <li>
/// <para>
/// <code>AVAILABLE</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>FAILED_CREATION</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>FAILED_UPDATE</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>FAILED_DELETION</code>
/// </para>
/// </li> </ul>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteVpcIngressConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteVpcIngressConnection">REST API Reference for DeleteVpcIngressConnection Operation</seealso>
public virtual Task<DeleteVpcIngressConnectionResponse> DeleteVpcIngressConnectionAsync(DeleteVpcIngressConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVpcIngressConnectionResponseUnmarshaller.Instance;
return InvokeAsync<DeleteVpcIngressConnectionResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeAutoScalingConfiguration
/// <summary>
/// Return a full description of an App Runner automatic scaling configuration resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingConfiguration service method.</param>
///
/// <returns>The response from the DescribeAutoScalingConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeAutoScalingConfiguration">REST API Reference for DescribeAutoScalingConfiguration Operation</seealso>
public virtual DescribeAutoScalingConfigurationResponse DescribeAutoScalingConfiguration(DescribeAutoScalingConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAutoScalingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAutoScalingConfigurationResponseUnmarshaller.Instance;
return Invoke<DescribeAutoScalingConfigurationResponse>(request, options);
}
/// <summary>
/// Return a full description of an App Runner automatic scaling configuration resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingConfiguration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeAutoScalingConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeAutoScalingConfiguration">REST API Reference for DescribeAutoScalingConfiguration Operation</seealso>
public virtual Task<DescribeAutoScalingConfigurationResponse> DescribeAutoScalingConfigurationAsync(DescribeAutoScalingConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAutoScalingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAutoScalingConfigurationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeAutoScalingConfigurationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeCustomDomains
/// <summary>
/// Return a description of custom domain names that are associated with an App Runner
/// service.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCustomDomains service method.</param>
///
/// <returns>The response from the DescribeCustomDomains service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeCustomDomains">REST API Reference for DescribeCustomDomains Operation</seealso>
public virtual DescribeCustomDomainsResponse DescribeCustomDomains(DescribeCustomDomainsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCustomDomainsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCustomDomainsResponseUnmarshaller.Instance;
return Invoke<DescribeCustomDomainsResponse>(request, options);
}
/// <summary>
/// Return a description of custom domain names that are associated with an App Runner
/// service.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCustomDomains service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeCustomDomains service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeCustomDomains">REST API Reference for DescribeCustomDomains Operation</seealso>
public virtual Task<DescribeCustomDomainsResponse> DescribeCustomDomainsAsync(DescribeCustomDomainsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCustomDomainsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCustomDomainsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeCustomDomainsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeObservabilityConfiguration
/// <summary>
/// Return a full description of an App Runner observability configuration resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeObservabilityConfiguration service method.</param>
///
/// <returns>The response from the DescribeObservabilityConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeObservabilityConfiguration">REST API Reference for DescribeObservabilityConfiguration Operation</seealso>
public virtual DescribeObservabilityConfigurationResponse DescribeObservabilityConfiguration(DescribeObservabilityConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeObservabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeObservabilityConfigurationResponseUnmarshaller.Instance;
return Invoke<DescribeObservabilityConfigurationResponse>(request, options);
}
/// <summary>
/// Return a full description of an App Runner observability configuration resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeObservabilityConfiguration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeObservabilityConfiguration service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeObservabilityConfiguration">REST API Reference for DescribeObservabilityConfiguration Operation</seealso>
public virtual Task<DescribeObservabilityConfigurationResponse> DescribeObservabilityConfigurationAsync(DescribeObservabilityConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeObservabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeObservabilityConfigurationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeObservabilityConfigurationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeService
/// <summary>
/// Return a full description of an App Runner service.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeService service method.</param>
///
/// <returns>The response from the DescribeService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeService">REST API Reference for DescribeService Operation</seealso>
public virtual DescribeServiceResponse DescribeService(DescribeServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeServiceResponseUnmarshaller.Instance;
return Invoke<DescribeServiceResponse>(request, options);
}
/// <summary>
/// Return a full description of an App Runner service.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeService service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeService">REST API Reference for DescribeService Operation</seealso>
public virtual Task<DescribeServiceResponse> DescribeServiceAsync(DescribeServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeServiceResponseUnmarshaller.Instance;
return InvokeAsync<DescribeServiceResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeVpcConnector
/// <summary>
/// Return a description of an App Runner VPC connector resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeVpcConnector service method.</param>
///
/// <returns>The response from the DescribeVpcConnector service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcConnector">REST API Reference for DescribeVpcConnector Operation</seealso>
public virtual DescribeVpcConnectorResponse DescribeVpcConnector(DescribeVpcConnectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeVpcConnectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeVpcConnectorResponseUnmarshaller.Instance;
return Invoke<DescribeVpcConnectorResponse>(request, options);
}
/// <summary>
/// Return a description of an App Runner VPC connector resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeVpcConnector service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeVpcConnector service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcConnector">REST API Reference for DescribeVpcConnector Operation</seealso>
public virtual Task<DescribeVpcConnectorResponse> DescribeVpcConnectorAsync(DescribeVpcConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeVpcConnectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeVpcConnectorResponseUnmarshaller.Instance;
return InvokeAsync<DescribeVpcConnectorResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeVpcIngressConnection
/// <summary>
/// Return a full description of an App Runner VPC Ingress Connection resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeVpcIngressConnection service method.</param>
///
/// <returns>The response from the DescribeVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcIngressConnection">REST API Reference for DescribeVpcIngressConnection Operation</seealso>
public virtual DescribeVpcIngressConnectionResponse DescribeVpcIngressConnection(DescribeVpcIngressConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeVpcIngressConnectionResponseUnmarshaller.Instance;
return Invoke<DescribeVpcIngressConnectionResponse>(request, options);
}
/// <summary>
/// Return a full description of an App Runner VPC Ingress Connection resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeVpcIngressConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeVpcIngressConnection">REST API Reference for DescribeVpcIngressConnection Operation</seealso>
public virtual Task<DescribeVpcIngressConnectionResponse> DescribeVpcIngressConnectionAsync(DescribeVpcIngressConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeVpcIngressConnectionResponseUnmarshaller.Instance;
return InvokeAsync<DescribeVpcIngressConnectionResponse>(request, options, cancellationToken);
}
#endregion
#region DisassociateCustomDomain
/// <summary>
/// Disassociate a custom domain name from an App Runner service.
///
///
/// <para>
/// Certificates tracking domain validity are associated with a custom domain and are
/// stored in <a href="https://docs.aws.amazon.com/acm/latest/userguide">AWS Certificate
/// Manager (ACM)</a>. These certificates aren't deleted as part of this action. App Runner
/// delays certificate deletion for 30 days after a domain is disassociated from your
/// service.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisassociateCustomDomain service method.</param>
///
/// <returns>The response from the DisassociateCustomDomain service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DisassociateCustomDomain">REST API Reference for DisassociateCustomDomain Operation</seealso>
public virtual DisassociateCustomDomainResponse DisassociateCustomDomain(DisassociateCustomDomainRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateCustomDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateCustomDomainResponseUnmarshaller.Instance;
return Invoke<DisassociateCustomDomainResponse>(request, options);
}
/// <summary>
/// Disassociate a custom domain name from an App Runner service.
///
///
/// <para>
/// Certificates tracking domain validity are associated with a custom domain and are
/// stored in <a href="https://docs.aws.amazon.com/acm/latest/userguide">AWS Certificate
/// Manager (ACM)</a>. These certificates aren't deleted as part of this action. App Runner
/// delays certificate deletion for 30 days after a domain is disassociated from your
/// service.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisassociateCustomDomain service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DisassociateCustomDomain service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DisassociateCustomDomain">REST API Reference for DisassociateCustomDomain Operation</seealso>
public virtual Task<DisassociateCustomDomainResponse> DisassociateCustomDomainAsync(DisassociateCustomDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateCustomDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateCustomDomainResponseUnmarshaller.Instance;
return InvokeAsync<DisassociateCustomDomainResponse>(request, options, cancellationToken);
}
#endregion
#region ListAutoScalingConfigurations
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListAutoScalingConfigurations service method.</param>
///
/// <returns>The response from the ListAutoScalingConfigurations service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListAutoScalingConfigurations">REST API Reference for ListAutoScalingConfigurations Operation</seealso>
public virtual ListAutoScalingConfigurationsResponse ListAutoScalingConfigurations(ListAutoScalingConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAutoScalingConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAutoScalingConfigurationsResponseUnmarshaller.Instance;
return Invoke<ListAutoScalingConfigurationsResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListAutoScalingConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListAutoScalingConfigurations service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListAutoScalingConfigurations">REST API Reference for ListAutoScalingConfigurations Operation</seealso>
public virtual Task<ListAutoScalingConfigurationsResponse> ListAutoScalingConfigurationsAsync(ListAutoScalingConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAutoScalingConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAutoScalingConfigurationsResponseUnmarshaller.Instance;
return InvokeAsync<ListAutoScalingConfigurationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListConnections
/// <summary>
/// Returns a list of App Runner connections that are associated with your Amazon Web
/// Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConnections service method.</param>
///
/// <returns>The response from the ListConnections service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListConnections">REST API Reference for ListConnections Operation</seealso>
public virtual ListConnectionsResponse ListConnections(ListConnectionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConnectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConnectionsResponseUnmarshaller.Instance;
return Invoke<ListConnectionsResponse>(request, options);
}
/// <summary>
/// Returns a list of App Runner connections that are associated with your Amazon Web
/// Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConnections service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListConnections service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListConnections">REST API Reference for ListConnections Operation</seealso>
public virtual Task<ListConnectionsResponse> ListConnectionsAsync(ListConnectionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConnectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConnectionsResponseUnmarshaller.Instance;
return InvokeAsync<ListConnectionsResponse>(request, options, cancellationToken);
}
#endregion
#region ListObservabilityConfigurations
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListObservabilityConfigurations service method.</param>
///
/// <returns>The response from the ListObservabilityConfigurations service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListObservabilityConfigurations">REST API Reference for ListObservabilityConfigurations Operation</seealso>
public virtual ListObservabilityConfigurationsResponse ListObservabilityConfigurations(ListObservabilityConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListObservabilityConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListObservabilityConfigurationsResponseUnmarshaller.Instance;
return Invoke<ListObservabilityConfigurationsResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListObservabilityConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListObservabilityConfigurations service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListObservabilityConfigurations">REST API Reference for ListObservabilityConfigurations Operation</seealso>
public virtual Task<ListObservabilityConfigurationsResponse> ListObservabilityConfigurationsAsync(ListObservabilityConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListObservabilityConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListObservabilityConfigurationsResponseUnmarshaller.Instance;
return InvokeAsync<ListObservabilityConfigurationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListOperations
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListOperations service method.</param>
///
/// <returns>The response from the ListOperations service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListOperations">REST API Reference for ListOperations Operation</seealso>
public virtual ListOperationsResponse ListOperations(ListOperationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOperationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOperationsResponseUnmarshaller.Instance;
return Invoke<ListOperationsResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ListOperations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListOperations service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListOperations">REST API Reference for ListOperations Operation</seealso>
public virtual Task<ListOperationsResponse> ListOperationsAsync(ListOperationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOperationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOperationsResponseUnmarshaller.Instance;
return InvokeAsync<ListOperationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListServices
/// <summary>
/// Returns a list of running App Runner services in your Amazon Web Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListServices service method.</param>
///
/// <returns>The response from the ListServices service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServices">REST API Reference for ListServices Operation</seealso>
public virtual ListServicesResponse ListServices(ListServicesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServicesResponseUnmarshaller.Instance;
return Invoke<ListServicesResponse>(request, options);
}
/// <summary>
/// Returns a list of running App Runner services in your Amazon Web Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListServices service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListServices service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServices">REST API Reference for ListServices Operation</seealso>
public virtual Task<ListServicesResponse> ListServicesAsync(ListServicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServicesResponseUnmarshaller.Instance;
return InvokeAsync<ListServicesResponse>(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
/// <summary>
/// List tags that are associated with for an App Runner resource. The response contains
/// a list of tag key-value pairs.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke<ListTagsForResourceResponse>(request, options);
}
/// <summary>
/// List tags that are associated with for an App Runner resource. The response contains
/// a list of tag key-value pairs.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken);
}
#endregion
#region ListVpcConnectors
/// <summary>
/// Returns a list of App Runner VPC connectors in your Amazon Web Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListVpcConnectors service method.</param>
///
/// <returns>The response from the ListVpcConnectors service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcConnectors">REST API Reference for ListVpcConnectors Operation</seealso>
public virtual ListVpcConnectorsResponse ListVpcConnectors(ListVpcConnectorsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListVpcConnectorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListVpcConnectorsResponseUnmarshaller.Instance;
return Invoke<ListVpcConnectorsResponse>(request, options);
}
/// <summary>
/// Returns a list of App Runner VPC connectors in your Amazon Web Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListVpcConnectors service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListVpcConnectors service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcConnectors">REST API Reference for ListVpcConnectors Operation</seealso>
public virtual Task<ListVpcConnectorsResponse> ListVpcConnectorsAsync(ListVpcConnectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListVpcConnectorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListVpcConnectorsResponseUnmarshaller.Instance;
return InvokeAsync<ListVpcConnectorsResponse>(request, options, cancellationToken);
}
#endregion
#region ListVpcIngressConnections
/// <summary>
/// Return a list of App Runner VPC Ingress Connections in your Amazon Web Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListVpcIngressConnections service method.</param>
///
/// <returns>The response from the ListVpcIngressConnections service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcIngressConnections">REST API Reference for ListVpcIngressConnections Operation</seealso>
public virtual ListVpcIngressConnectionsResponse ListVpcIngressConnections(ListVpcIngressConnectionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListVpcIngressConnectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListVpcIngressConnectionsResponseUnmarshaller.Instance;
return Invoke<ListVpcIngressConnectionsResponse>(request, options);
}
/// <summary>
/// Return a list of App Runner VPC Ingress Connections in your Amazon Web Services account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListVpcIngressConnections service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListVpcIngressConnections service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListVpcIngressConnections">REST API Reference for ListVpcIngressConnections Operation</seealso>
public virtual Task<ListVpcIngressConnectionsResponse> ListVpcIngressConnectionsAsync(ListVpcIngressConnectionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListVpcIngressConnectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListVpcIngressConnectionsResponseUnmarshaller.Instance;
return InvokeAsync<ListVpcIngressConnectionsResponse>(request, options, cancellationToken);
}
#endregion
#region PauseService
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PauseService service method.</param>
///
/// <returns>The response from the PauseService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/PauseService">REST API Reference for PauseService Operation</seealso>
public virtual PauseServiceResponse PauseService(PauseServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PauseServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = PauseServiceResponseUnmarshaller.Instance;
return Invoke<PauseServiceResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PauseService service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PauseService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/PauseService">REST API Reference for PauseService Operation</seealso>
public virtual Task<PauseServiceResponse> PauseServiceAsync(PauseServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PauseServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = PauseServiceResponseUnmarshaller.Instance;
return InvokeAsync<PauseServiceResponse>(request, options, cancellationToken);
}
#endregion
#region ResumeService
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ResumeService service method.</param>
///
/// <returns>The response from the ResumeService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ResumeService">REST API Reference for ResumeService Operation</seealso>
public virtual ResumeServiceResponse ResumeService(ResumeServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ResumeServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResumeServiceResponseUnmarshaller.Instance;
return Invoke<ResumeServiceResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the ResumeService service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ResumeService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ResumeService">REST API Reference for ResumeService Operation</seealso>
public virtual Task<ResumeServiceResponse> ResumeServiceAsync(ResumeServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ResumeServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResumeServiceResponseUnmarshaller.Instance;
return InvokeAsync<ResumeServiceResponse>(request, options, cancellationToken);
}
#endregion
#region StartDeployment
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the StartDeployment service method.</param>
///
/// <returns>The response from the StartDeployment service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/StartDeployment">REST API Reference for StartDeployment Operation</seealso>
public virtual StartDeploymentResponse StartDeployment(StartDeploymentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartDeploymentRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartDeploymentResponseUnmarshaller.Instance;
return Invoke<StartDeploymentResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the StartDeployment service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartDeployment service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/StartDeployment">REST API Reference for StartDeployment Operation</seealso>
public virtual Task<StartDeploymentResponse> StartDeploymentAsync(StartDeploymentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartDeploymentRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartDeploymentResponseUnmarshaller.Instance;
return InvokeAsync<StartDeploymentResponse>(request, options, cancellationToken);
}
#endregion
#region TagResource
/// <summary>
/// Add tags to, or update the tag values of, an App Runner resource. A tag is a key-value
/// pair.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke<TagResourceResponse>(request, options);
}
/// <summary>
/// Add tags to, or update the tag values of, an App Runner resource. A tag is a key-value
/// pair.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TagResource service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync<TagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region UntagResource
/// <summary>
/// Remove tags from an App Runner resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke<UntagResourceResponse>(request, options);
}
/// <summary>
/// Remove tags from an App Runner resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateService
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UpdateService service method.</param>
///
/// <returns>The response from the UpdateService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateService">REST API Reference for UpdateService Operation</seealso>
public virtual UpdateServiceResponse UpdateService(UpdateServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateServiceResponseUnmarshaller.Instance;
return Invoke<UpdateServiceResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UpdateService service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateService service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateService">REST API Reference for UpdateService Operation</seealso>
public virtual Task<UpdateServiceResponse> UpdateServiceAsync(UpdateServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateServiceResponseUnmarshaller.Instance;
return InvokeAsync<UpdateServiceResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateVpcIngressConnection
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UpdateVpcIngressConnection service method.</param>
///
/// <returns>The response from the UpdateVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateVpcIngressConnection">REST API Reference for UpdateVpcIngressConnection Operation</seealso>
public virtual UpdateVpcIngressConnectionResponse UpdateVpcIngressConnection(UpdateVpcIngressConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateVpcIngressConnectionResponseUnmarshaller.Instance;
return Invoke<UpdateVpcIngressConnectionResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the UpdateVpcIngressConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateVpcIngressConnection service method, as returned by AppRunner.</returns>
/// <exception cref="Amazon.AppRunner.Model.InternalServiceErrorException">
/// An unexpected service exception occurred.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidRequestException">
/// 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.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.InvalidStateException">
/// You can't perform this action when the resource is in its current state.
/// </exception>
/// <exception cref="Amazon.AppRunner.Model.ResourceNotFoundException">
/// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateVpcIngressConnection">REST API Reference for UpdateVpcIngressConnection Operation</seealso>
public virtual Task<UpdateVpcIngressConnectionResponse> UpdateVpcIngressConnectionAsync(UpdateVpcIngressConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateVpcIngressConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateVpcIngressConnectionResponseUnmarshaller.Instance;
return InvokeAsync<UpdateVpcIngressConnectionResponse>(request, options, cancellationToken);
}
#endregion
}
} | 3,024 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.