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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// SingularSourceProperties Marshaller /// </summary> public class SingularSourcePropertiesMarshaller : IRequestMarshaller<SingularSourceProperties, 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(SingularSourceProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetObject()) { context.Writer.WritePropertyName("object"); context.Writer.Write(requestObject.Object); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SingularSourcePropertiesMarshaller Instance = new SingularSourcePropertiesMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SingularSourceProperties Object /// </summary> public class SingularSourcePropertiesUnmarshaller : IUnmarshaller<SingularSourceProperties, XmlUnmarshallerContext>, IUnmarshaller<SingularSourceProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SingularSourceProperties IUnmarshaller<SingularSourceProperties, 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 SingularSourceProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SingularSourceProperties unmarshalledObject = new SingularSourceProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("object", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Object = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SingularSourcePropertiesUnmarshaller _instance = new SingularSourcePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SingularSourcePropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// SlackConnectorProfileCredentials Marshaller /// </summary> public class SlackConnectorProfileCredentialsMarshaller : IRequestMarshaller<SlackConnectorProfileCredentials, 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(SlackConnectorProfileCredentials requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAccessToken()) { context.Writer.WritePropertyName("accessToken"); context.Writer.Write(requestObject.AccessToken); } if(requestObject.IsSetClientId()) { context.Writer.WritePropertyName("clientId"); context.Writer.Write(requestObject.ClientId); } if(requestObject.IsSetClientSecret()) { context.Writer.WritePropertyName("clientSecret"); context.Writer.Write(requestObject.ClientSecret); } if(requestObject.IsSetOAuthRequest()) { context.Writer.WritePropertyName("oAuthRequest"); context.Writer.WriteObjectStart(); var marshaller = ConnectorOAuthRequestMarshaller.Instance; marshaller.Marshall(requestObject.OAuthRequest, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SlackConnectorProfileCredentialsMarshaller Instance = new SlackConnectorProfileCredentialsMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// SlackConnectorProfileProperties Marshaller /// </summary> public class SlackConnectorProfilePropertiesMarshaller : IRequestMarshaller<SlackConnectorProfileProperties, 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(SlackConnectorProfileProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetInstanceUrl()) { context.Writer.WritePropertyName("instanceUrl"); context.Writer.Write(requestObject.InstanceUrl); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SlackConnectorProfilePropertiesMarshaller Instance = new SlackConnectorProfilePropertiesMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SlackConnectorProfileProperties Object /// </summary> public class SlackConnectorProfilePropertiesUnmarshaller : IUnmarshaller<SlackConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<SlackConnectorProfileProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SlackConnectorProfileProperties IUnmarshaller<SlackConnectorProfileProperties, 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 SlackConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SlackConnectorProfileProperties unmarshalledObject = new SlackConnectorProfileProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("instanceUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.InstanceUrl = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SlackConnectorProfilePropertiesUnmarshaller _instance = new SlackConnectorProfilePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SlackConnectorProfilePropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SlackMetadata Object /// </summary> public class SlackMetadataUnmarshaller : IUnmarshaller<SlackMetadata, XmlUnmarshallerContext>, IUnmarshaller<SlackMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SlackMetadata IUnmarshaller<SlackMetadata, 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 SlackMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SlackMetadata unmarshalledObject = new SlackMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("oAuthScopes", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.OAuthScopes = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SlackMetadataUnmarshaller _instance = new SlackMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SlackMetadataUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// SlackSourceProperties Marshaller /// </summary> public class SlackSourcePropertiesMarshaller : IRequestMarshaller<SlackSourceProperties, 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(SlackSourceProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetObject()) { context.Writer.WritePropertyName("object"); context.Writer.Write(requestObject.Object); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SlackSourcePropertiesMarshaller Instance = new SlackSourcePropertiesMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SlackSourceProperties Object /// </summary> public class SlackSourcePropertiesUnmarshaller : IUnmarshaller<SlackSourceProperties, XmlUnmarshallerContext>, IUnmarshaller<SlackSourceProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SlackSourceProperties IUnmarshaller<SlackSourceProperties, 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 SlackSourceProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SlackSourceProperties unmarshalledObject = new SlackSourceProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("object", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Object = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SlackSourcePropertiesUnmarshaller _instance = new SlackSourcePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SlackSourcePropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// SnowflakeConnectorProfileCredentials Marshaller /// </summary> public class SnowflakeConnectorProfileCredentialsMarshaller : IRequestMarshaller<SnowflakeConnectorProfileCredentials, 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(SnowflakeConnectorProfileCredentials requestObject, JsonMarshallerContext context) { if(requestObject.IsSetPassword()) { context.Writer.WritePropertyName("password"); context.Writer.Write(requestObject.Password); } if(requestObject.IsSetUsername()) { context.Writer.WritePropertyName("username"); context.Writer.Write(requestObject.Username); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SnowflakeConnectorProfileCredentialsMarshaller Instance = new SnowflakeConnectorProfileCredentialsMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// SnowflakeConnectorProfileProperties Marshaller /// </summary> public class SnowflakeConnectorProfilePropertiesMarshaller : IRequestMarshaller<SnowflakeConnectorProfileProperties, 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(SnowflakeConnectorProfileProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAccountName()) { context.Writer.WritePropertyName("accountName"); context.Writer.Write(requestObject.AccountName); } if(requestObject.IsSetBucketName()) { context.Writer.WritePropertyName("bucketName"); context.Writer.Write(requestObject.BucketName); } if(requestObject.IsSetBucketPrefix()) { context.Writer.WritePropertyName("bucketPrefix"); context.Writer.Write(requestObject.BucketPrefix); } if(requestObject.IsSetPrivateLinkServiceName()) { context.Writer.WritePropertyName("privateLinkServiceName"); context.Writer.Write(requestObject.PrivateLinkServiceName); } if(requestObject.IsSetRegion()) { context.Writer.WritePropertyName("region"); context.Writer.Write(requestObject.Region); } if(requestObject.IsSetStage()) { context.Writer.WritePropertyName("stage"); context.Writer.Write(requestObject.Stage); } if(requestObject.IsSetWarehouse()) { context.Writer.WritePropertyName("warehouse"); context.Writer.Write(requestObject.Warehouse); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SnowflakeConnectorProfilePropertiesMarshaller Instance = new SnowflakeConnectorProfilePropertiesMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SnowflakeConnectorProfileProperties Object /// </summary> public class SnowflakeConnectorProfilePropertiesUnmarshaller : IUnmarshaller<SnowflakeConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<SnowflakeConnectorProfileProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SnowflakeConnectorProfileProperties IUnmarshaller<SnowflakeConnectorProfileProperties, 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 SnowflakeConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SnowflakeConnectorProfileProperties unmarshalledObject = new SnowflakeConnectorProfileProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("accountName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AccountName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("bucketName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BucketName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("bucketPrefix", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BucketPrefix = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("privateLinkServiceName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PrivateLinkServiceName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("region", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Region = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Stage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("warehouse", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Warehouse = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SnowflakeConnectorProfilePropertiesUnmarshaller _instance = new SnowflakeConnectorProfilePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SnowflakeConnectorProfilePropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// SnowflakeDestinationProperties Marshaller /// </summary> public class SnowflakeDestinationPropertiesMarshaller : IRequestMarshaller<SnowflakeDestinationProperties, 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(SnowflakeDestinationProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetBucketPrefix()) { context.Writer.WritePropertyName("bucketPrefix"); context.Writer.Write(requestObject.BucketPrefix); } if(requestObject.IsSetErrorHandlingConfig()) { context.Writer.WritePropertyName("errorHandlingConfig"); context.Writer.WriteObjectStart(); var marshaller = ErrorHandlingConfigMarshaller.Instance; marshaller.Marshall(requestObject.ErrorHandlingConfig, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetIntermediateBucketName()) { context.Writer.WritePropertyName("intermediateBucketName"); context.Writer.Write(requestObject.IntermediateBucketName); } if(requestObject.IsSetObject()) { context.Writer.WritePropertyName("object"); context.Writer.Write(requestObject.Object); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SnowflakeDestinationPropertiesMarshaller Instance = new SnowflakeDestinationPropertiesMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SnowflakeDestinationProperties Object /// </summary> public class SnowflakeDestinationPropertiesUnmarshaller : IUnmarshaller<SnowflakeDestinationProperties, XmlUnmarshallerContext>, IUnmarshaller<SnowflakeDestinationProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SnowflakeDestinationProperties IUnmarshaller<SnowflakeDestinationProperties, 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 SnowflakeDestinationProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SnowflakeDestinationProperties unmarshalledObject = new SnowflakeDestinationProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("bucketPrefix", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BucketPrefix = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorHandlingConfig", targetDepth)) { var unmarshaller = ErrorHandlingConfigUnmarshaller.Instance; unmarshalledObject.ErrorHandlingConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("intermediateBucketName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.IntermediateBucketName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("object", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Object = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SnowflakeDestinationPropertiesUnmarshaller _instance = new SnowflakeDestinationPropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SnowflakeDestinationPropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SnowflakeMetadata Object /// </summary> public class SnowflakeMetadataUnmarshaller : IUnmarshaller<SnowflakeMetadata, XmlUnmarshallerContext>, IUnmarshaller<SnowflakeMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SnowflakeMetadata IUnmarshaller<SnowflakeMetadata, 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 SnowflakeMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SnowflakeMetadata unmarshalledObject = new SnowflakeMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("supportedRegions", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SupportedRegions = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SnowflakeMetadataUnmarshaller _instance = new SnowflakeMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SnowflakeMetadataUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// SourceConnectorProperties Marshaller /// </summary> public class SourceConnectorPropertiesMarshaller : IRequestMarshaller<SourceConnectorProperties, 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(SourceConnectorProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAmplitude()) { context.Writer.WritePropertyName("Amplitude"); context.Writer.WriteObjectStart(); var marshaller = AmplitudeSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Amplitude, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetCustomConnector()) { context.Writer.WritePropertyName("CustomConnector"); context.Writer.WriteObjectStart(); var marshaller = CustomConnectorSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.CustomConnector, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetDatadog()) { context.Writer.WritePropertyName("Datadog"); context.Writer.WriteObjectStart(); var marshaller = DatadogSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Datadog, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetDynatrace()) { context.Writer.WritePropertyName("Dynatrace"); context.Writer.WriteObjectStart(); var marshaller = DynatraceSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Dynatrace, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetGoogleAnalytics()) { context.Writer.WritePropertyName("GoogleAnalytics"); context.Writer.WriteObjectStart(); var marshaller = GoogleAnalyticsSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.GoogleAnalytics, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetInforNexus()) { context.Writer.WritePropertyName("InforNexus"); context.Writer.WriteObjectStart(); var marshaller = InforNexusSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.InforNexus, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetMarketo()) { context.Writer.WritePropertyName("Marketo"); context.Writer.WriteObjectStart(); var marshaller = MarketoSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Marketo, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetPardot()) { context.Writer.WritePropertyName("Pardot"); context.Writer.WriteObjectStart(); var marshaller = PardotSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Pardot, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetS3()) { context.Writer.WritePropertyName("S3"); context.Writer.WriteObjectStart(); var marshaller = S3SourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.S3, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSalesforce()) { context.Writer.WritePropertyName("Salesforce"); context.Writer.WriteObjectStart(); var marshaller = SalesforceSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Salesforce, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSAPOData()) { context.Writer.WritePropertyName("SAPOData"); context.Writer.WriteObjectStart(); var marshaller = SAPODataSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.SAPOData, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetServiceNow()) { context.Writer.WritePropertyName("ServiceNow"); context.Writer.WriteObjectStart(); var marshaller = ServiceNowSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.ServiceNow, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSingular()) { context.Writer.WritePropertyName("Singular"); context.Writer.WriteObjectStart(); var marshaller = SingularSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Singular, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSlack()) { context.Writer.WritePropertyName("Slack"); context.Writer.WriteObjectStart(); var marshaller = SlackSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Slack, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTrendmicro()) { context.Writer.WritePropertyName("Trendmicro"); context.Writer.WriteObjectStart(); var marshaller = TrendmicroSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Trendmicro, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetVeeva()) { context.Writer.WritePropertyName("Veeva"); context.Writer.WriteObjectStart(); var marshaller = VeevaSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Veeva, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetZendesk()) { context.Writer.WritePropertyName("Zendesk"); context.Writer.WriteObjectStart(); var marshaller = ZendeskSourcePropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Zendesk, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SourceConnectorPropertiesMarshaller Instance = new SourceConnectorPropertiesMarshaller(); } }
243
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SourceConnectorProperties Object /// </summary> public class SourceConnectorPropertiesUnmarshaller : IUnmarshaller<SourceConnectorProperties, XmlUnmarshallerContext>, IUnmarshaller<SourceConnectorProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SourceConnectorProperties IUnmarshaller<SourceConnectorProperties, 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 SourceConnectorProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SourceConnectorProperties unmarshalledObject = new SourceConnectorProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Amplitude", targetDepth)) { var unmarshaller = AmplitudeSourcePropertiesUnmarshaller.Instance; unmarshalledObject.Amplitude = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CustomConnector", targetDepth)) { var unmarshaller = CustomConnectorSourcePropertiesUnmarshaller.Instance; unmarshalledObject.CustomConnector = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Datadog", targetDepth)) { var unmarshaller = DatadogSourcePropertiesUnmarshaller.Instance; unmarshalledObject.Datadog = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Dynatrace", targetDepth)) { var unmarshaller = DynatraceSourcePropertiesUnmarshaller.Instance; unmarshalledObject.Dynatrace = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("GoogleAnalytics", targetDepth)) { var unmarshaller = GoogleAnalyticsSourcePropertiesUnmarshaller.Instance; unmarshalledObject.GoogleAnalytics = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("InforNexus", targetDepth)) { var unmarshaller = InforNexusSourcePropertiesUnmarshaller.Instance; unmarshalledObject.InforNexus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Marketo", targetDepth)) { var unmarshaller = MarketoSourcePropertiesUnmarshaller.Instance; unmarshalledObject.Marketo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Pardot", targetDepth)) { var unmarshaller = PardotSourcePropertiesUnmarshaller.Instance; unmarshalledObject.Pardot = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("S3", targetDepth)) { var unmarshaller = S3SourcePropertiesUnmarshaller.Instance; unmarshalledObject.S3 = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Salesforce", targetDepth)) { var unmarshaller = SalesforceSourcePropertiesUnmarshaller.Instance; unmarshalledObject.Salesforce = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SAPOData", targetDepth)) { var unmarshaller = SAPODataSourcePropertiesUnmarshaller.Instance; unmarshalledObject.SAPOData = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ServiceNow", targetDepth)) { var unmarshaller = ServiceNowSourcePropertiesUnmarshaller.Instance; unmarshalledObject.ServiceNow = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Singular", targetDepth)) { var unmarshaller = SingularSourcePropertiesUnmarshaller.Instance; unmarshalledObject.Singular = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Slack", targetDepth)) { var unmarshaller = SlackSourcePropertiesUnmarshaller.Instance; unmarshalledObject.Slack = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Trendmicro", targetDepth)) { var unmarshaller = TrendmicroSourcePropertiesUnmarshaller.Instance; unmarshalledObject.Trendmicro = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Veeva", targetDepth)) { var unmarshaller = VeevaSourcePropertiesUnmarshaller.Instance; unmarshalledObject.Veeva = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Zendesk", targetDepth)) { var unmarshaller = ZendeskSourcePropertiesUnmarshaller.Instance; unmarshalledObject.Zendesk = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SourceConnectorPropertiesUnmarshaller _instance = new SourceConnectorPropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SourceConnectorPropertiesUnmarshaller Instance { get { return _instance; } } } }
188
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SourceFieldProperties Object /// </summary> public class SourceFieldPropertiesUnmarshaller : IUnmarshaller<SourceFieldProperties, XmlUnmarshallerContext>, IUnmarshaller<SourceFieldProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SourceFieldProperties IUnmarshaller<SourceFieldProperties, 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 SourceFieldProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SourceFieldProperties unmarshalledObject = new SourceFieldProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("isQueryable", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsQueryable = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isRetrievable", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsRetrievable = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isTimestampFieldForIncrementalQueries", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsTimestampFieldForIncrementalQueries = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SourceFieldPropertiesUnmarshaller _instance = new SourceFieldPropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SourceFieldPropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// SourceFlowConfig Marshaller /// </summary> public class SourceFlowConfigMarshaller : IRequestMarshaller<SourceFlowConfig, 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(SourceFlowConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetApiVersion()) { context.Writer.WritePropertyName("apiVersion"); context.Writer.Write(requestObject.ApiVersion); } if(requestObject.IsSetConnectorProfileName()) { context.Writer.WritePropertyName("connectorProfileName"); context.Writer.Write(requestObject.ConnectorProfileName); } if(requestObject.IsSetConnectorType()) { context.Writer.WritePropertyName("connectorType"); context.Writer.Write(requestObject.ConnectorType); } if(requestObject.IsSetIncrementalPullConfig()) { context.Writer.WritePropertyName("incrementalPullConfig"); context.Writer.WriteObjectStart(); var marshaller = IncrementalPullConfigMarshaller.Instance; marshaller.Marshall(requestObject.IncrementalPullConfig, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSourceConnectorProperties()) { context.Writer.WritePropertyName("sourceConnectorProperties"); context.Writer.WriteObjectStart(); var marshaller = SourceConnectorPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.SourceConnectorProperties, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SourceFlowConfigMarshaller Instance = new SourceFlowConfigMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SourceFlowConfig Object /// </summary> public class SourceFlowConfigUnmarshaller : IUnmarshaller<SourceFlowConfig, XmlUnmarshallerContext>, IUnmarshaller<SourceFlowConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SourceFlowConfig IUnmarshaller<SourceFlowConfig, 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 SourceFlowConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SourceFlowConfig unmarshalledObject = new SourceFlowConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("apiVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ApiVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorProfileName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorProfileName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ConnectorType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("incrementalPullConfig", targetDepth)) { var unmarshaller = IncrementalPullConfigUnmarshaller.Instance; unmarshalledObject.IncrementalPullConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sourceConnectorProperties", targetDepth)) { var unmarshaller = SourceConnectorPropertiesUnmarshaller.Instance; unmarshalledObject.SourceConnectorProperties = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SourceFlowConfigUnmarshaller _instance = new SourceFlowConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SourceFlowConfigUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// StartFlow Request Marshaller /// </summary> public class StartFlowRequestMarshaller : IMarshaller<IRequest, StartFlowRequest> , 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((StartFlowRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(StartFlowRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/start-flow"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetFlowName()) { context.Writer.WritePropertyName("flowName"); context.Writer.Write(publicRequest.FlowName); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static StartFlowRequestMarshaller _instance = new StartFlowRequestMarshaller(); internal static StartFlowRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StartFlowRequestMarshaller Instance { get { return _instance; } } } }
112
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StartFlow operation /// </summary> public class StartFlowResponseUnmarshaller : 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) { StartFlowResponse response = new StartFlowResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("executionId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ExecutionId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("flowArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FlowArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("flowStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FlowStatus = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static StartFlowResponseUnmarshaller _instance = new StartFlowResponseUnmarshaller(); internal static StartFlowResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StartFlowResponseUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// StopFlow Request Marshaller /// </summary> public class StopFlowRequestMarshaller : IMarshaller<IRequest, StopFlowRequest> , 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((StopFlowRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(StopFlowRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/stop-flow"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetFlowName()) { context.Writer.WritePropertyName("flowName"); context.Writer.Write(publicRequest.FlowName); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static StopFlowRequestMarshaller _instance = new StopFlowRequestMarshaller(); internal static StopFlowRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StopFlowRequestMarshaller Instance { get { return _instance; } } } }
101
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StopFlow operation /// </summary> public class StopFlowResponseUnmarshaller : 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) { StopFlowResponse response = new StopFlowResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("flowArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FlowArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("flowStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FlowStatus = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnsupportedOperationException")) { return UnsupportedOperationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static StopFlowResponseUnmarshaller _instance = new StopFlowResponseUnmarshaller(); internal static StopFlowResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StopFlowResponseUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// SuccessResponseHandlingConfig Marshaller /// </summary> public class SuccessResponseHandlingConfigMarshaller : IRequestMarshaller<SuccessResponseHandlingConfig, 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(SuccessResponseHandlingConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetBucketName()) { context.Writer.WritePropertyName("bucketName"); context.Writer.Write(requestObject.BucketName); } if(requestObject.IsSetBucketPrefix()) { context.Writer.WritePropertyName("bucketPrefix"); context.Writer.Write(requestObject.BucketPrefix); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SuccessResponseHandlingConfigMarshaller Instance = new SuccessResponseHandlingConfigMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SuccessResponseHandlingConfig Object /// </summary> public class SuccessResponseHandlingConfigUnmarshaller : IUnmarshaller<SuccessResponseHandlingConfig, XmlUnmarshallerContext>, IUnmarshaller<SuccessResponseHandlingConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SuccessResponseHandlingConfig IUnmarshaller<SuccessResponseHandlingConfig, 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 SuccessResponseHandlingConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SuccessResponseHandlingConfig unmarshalledObject = new SuccessResponseHandlingConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("bucketName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BucketName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("bucketPrefix", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BucketPrefix = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SuccessResponseHandlingConfigUnmarshaller _instance = new SuccessResponseHandlingConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SuccessResponseHandlingConfigUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SupportedFieldTypeDetails Object /// </summary> public class SupportedFieldTypeDetailsUnmarshaller : IUnmarshaller<SupportedFieldTypeDetails, XmlUnmarshallerContext>, IUnmarshaller<SupportedFieldTypeDetails, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SupportedFieldTypeDetails IUnmarshaller<SupportedFieldTypeDetails, 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 SupportedFieldTypeDetails Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SupportedFieldTypeDetails unmarshalledObject = new SupportedFieldTypeDetails(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("v1", targetDepth)) { var unmarshaller = FieldTypeDetailsUnmarshaller.Instance; unmarshalledObject.V1 = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SupportedFieldTypeDetailsUnmarshaller _instance = new SupportedFieldTypeDetailsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SupportedFieldTypeDetailsUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.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.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; if (!publicRequest.IsSetResourceArn()) throw new AmazonAppflowException("Request object does not have required field ResourceArn set"); request.AddPathResource("{resourceArn}", StringUtils.FromString(publicRequest.ResourceArn)); request.ResourcePath = "/tags/{resourceArn}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static TagResourceRequestMarshaller _instance = new TagResourceRequestMarshaller(); internal static TagResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TagResourceRequestMarshaller Instance { get { return _instance; } } } }
112
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.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("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(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; } } } }
107
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Task Marshaller /// </summary> public class TaskMarshaller : IRequestMarshaller<Task, 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(Task requestObject, JsonMarshallerContext context) { if(requestObject.IsSetConnectorOperator()) { context.Writer.WritePropertyName("connectorOperator"); context.Writer.WriteObjectStart(); var marshaller = ConnectorOperatorMarshaller.Instance; marshaller.Marshall(requestObject.ConnectorOperator, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetDestinationField()) { context.Writer.WritePropertyName("destinationField"); context.Writer.Write(requestObject.DestinationField); } if(requestObject.IsSetSourceFields()) { context.Writer.WritePropertyName("sourceFields"); context.Writer.WriteArrayStart(); foreach(var requestObjectSourceFieldsListValue in requestObject.SourceFields) { context.Writer.Write(requestObjectSourceFieldsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetTaskProperties()) { context.Writer.WritePropertyName("taskProperties"); context.Writer.WriteObjectStart(); foreach (var requestObjectTaskPropertiesKvp in requestObject.TaskProperties) { context.Writer.WritePropertyName(requestObjectTaskPropertiesKvp.Key); var requestObjectTaskPropertiesValue = requestObjectTaskPropertiesKvp.Value; context.Writer.Write(requestObjectTaskPropertiesValue); } context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTaskType()) { context.Writer.WritePropertyName("taskType"); context.Writer.Write(requestObject.TaskType); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TaskMarshaller Instance = new TaskMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Task Object /// </summary> public class TaskUnmarshaller : IUnmarshaller<Task, XmlUnmarshallerContext>, IUnmarshaller<Task, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Task IUnmarshaller<Task, 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 Task Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Task unmarshalledObject = new Task(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("connectorOperator", targetDepth)) { var unmarshaller = ConnectorOperatorUnmarshaller.Instance; unmarshalledObject.ConnectorOperator = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("destinationField", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DestinationField = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sourceFields", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SourceFields = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("taskProperties", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.TaskProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("taskType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TaskType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TaskUnmarshaller _instance = new TaskUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TaskUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ThrottlingException Object /// </summary> public class ThrottlingExceptionUnmarshaller : IErrorResponseUnmarshaller<ThrottlingException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ThrottlingException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ThrottlingException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ThrottlingException unmarshalledObject = new ThrottlingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ThrottlingExceptionUnmarshaller _instance = new ThrottlingExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ThrottlingExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// TrendmicroConnectorProfileCredentials Marshaller /// </summary> public class TrendmicroConnectorProfileCredentialsMarshaller : IRequestMarshaller<TrendmicroConnectorProfileCredentials, 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(TrendmicroConnectorProfileCredentials requestObject, JsonMarshallerContext context) { if(requestObject.IsSetApiSecretKey()) { context.Writer.WritePropertyName("apiSecretKey"); context.Writer.Write(requestObject.ApiSecretKey); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TrendmicroConnectorProfileCredentialsMarshaller Instance = new TrendmicroConnectorProfileCredentialsMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// TrendmicroConnectorProfileProperties Marshaller /// </summary> public class TrendmicroConnectorProfilePropertiesMarshaller : IRequestMarshaller<TrendmicroConnectorProfileProperties, 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(TrendmicroConnectorProfileProperties requestObject, JsonMarshallerContext context) { } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TrendmicroConnectorProfilePropertiesMarshaller Instance = new TrendmicroConnectorProfilePropertiesMarshaller(); } }
56
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TrendmicroConnectorProfileProperties Object /// </summary> public class TrendmicroConnectorProfilePropertiesUnmarshaller : IUnmarshaller<TrendmicroConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<TrendmicroConnectorProfileProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TrendmicroConnectorProfileProperties IUnmarshaller<TrendmicroConnectorProfileProperties, 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 TrendmicroConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TrendmicroConnectorProfileProperties unmarshalledObject = new TrendmicroConnectorProfileProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static TrendmicroConnectorProfilePropertiesUnmarshaller _instance = new TrendmicroConnectorProfilePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TrendmicroConnectorProfilePropertiesUnmarshaller Instance { get { return _instance; } } } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TrendmicroMetadata Object /// </summary> public class TrendmicroMetadataUnmarshaller : IUnmarshaller<TrendmicroMetadata, XmlUnmarshallerContext>, IUnmarshaller<TrendmicroMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TrendmicroMetadata IUnmarshaller<TrendmicroMetadata, 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 TrendmicroMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TrendmicroMetadata unmarshalledObject = new TrendmicroMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static TrendmicroMetadataUnmarshaller _instance = new TrendmicroMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TrendmicroMetadataUnmarshaller Instance { get { return _instance; } } } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// TrendmicroSourceProperties Marshaller /// </summary> public class TrendmicroSourcePropertiesMarshaller : IRequestMarshaller<TrendmicroSourceProperties, 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(TrendmicroSourceProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetObject()) { context.Writer.WritePropertyName("object"); context.Writer.Write(requestObject.Object); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TrendmicroSourcePropertiesMarshaller Instance = new TrendmicroSourcePropertiesMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TrendmicroSourceProperties Object /// </summary> public class TrendmicroSourcePropertiesUnmarshaller : IUnmarshaller<TrendmicroSourceProperties, XmlUnmarshallerContext>, IUnmarshaller<TrendmicroSourceProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TrendmicroSourceProperties IUnmarshaller<TrendmicroSourceProperties, 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 TrendmicroSourceProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TrendmicroSourceProperties unmarshalledObject = new TrendmicroSourceProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("object", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Object = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TrendmicroSourcePropertiesUnmarshaller _instance = new TrendmicroSourcePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TrendmicroSourcePropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// TriggerConfig Marshaller /// </summary> public class TriggerConfigMarshaller : IRequestMarshaller<TriggerConfig, 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(TriggerConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetTriggerProperties()) { context.Writer.WritePropertyName("triggerProperties"); context.Writer.WriteObjectStart(); var marshaller = TriggerPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.TriggerProperties, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTriggerType()) { context.Writer.WritePropertyName("triggerType"); context.Writer.Write(requestObject.TriggerType); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TriggerConfigMarshaller Instance = new TriggerConfigMarshaller(); } }
73
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TriggerConfig Object /// </summary> public class TriggerConfigUnmarshaller : IUnmarshaller<TriggerConfig, XmlUnmarshallerContext>, IUnmarshaller<TriggerConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TriggerConfig IUnmarshaller<TriggerConfig, 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 TriggerConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TriggerConfig unmarshalledObject = new TriggerConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("triggerProperties", targetDepth)) { var unmarshaller = TriggerPropertiesUnmarshaller.Instance; unmarshalledObject.TriggerProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("triggerType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TriggerType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TriggerConfigUnmarshaller _instance = new TriggerConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TriggerConfigUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// TriggerProperties Marshaller /// </summary> public class TriggerPropertiesMarshaller : IRequestMarshaller<TriggerProperties, 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(TriggerProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetScheduled()) { context.Writer.WritePropertyName("Scheduled"); context.Writer.WriteObjectStart(); var marshaller = ScheduledTriggerPropertiesMarshaller.Instance; marshaller.Marshall(requestObject.Scheduled, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TriggerPropertiesMarshaller Instance = new TriggerPropertiesMarshaller(); } }
67
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TriggerProperties Object /// </summary> public class TriggerPropertiesUnmarshaller : IUnmarshaller<TriggerProperties, XmlUnmarshallerContext>, IUnmarshaller<TriggerProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TriggerProperties IUnmarshaller<TriggerProperties, 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 TriggerProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TriggerProperties unmarshalledObject = new TriggerProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Scheduled", targetDepth)) { var unmarshaller = ScheduledTriggerPropertiesUnmarshaller.Instance; unmarshalledObject.Scheduled = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TriggerPropertiesUnmarshaller _instance = new TriggerPropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TriggerPropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// UnregisterConnector Request Marshaller /// </summary> public class UnregisterConnectorRequestMarshaller : IMarshaller<IRequest, UnregisterConnectorRequest> , 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((UnregisterConnectorRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UnregisterConnectorRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/unregister-connector"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetConnectorLabel()) { context.Writer.WritePropertyName("connectorLabel"); context.Writer.Write(publicRequest.ConnectorLabel); } if(publicRequest.IsSetForceDelete()) { context.Writer.WritePropertyName("forceDelete"); context.Writer.Write(publicRequest.ForceDelete); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UnregisterConnectorRequestMarshaller _instance = new UnregisterConnectorRequestMarshaller(); internal static UnregisterConnectorRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UnregisterConnectorRequestMarshaller Instance { get { return _instance; } } } }
107
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UnregisterConnector operation /// </summary> public class UnregisterConnectorResponseUnmarshaller : 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) { UnregisterConnectorResponse response = new UnregisterConnectorResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UnregisterConnectorResponseUnmarshaller _instance = new UnregisterConnectorResponseUnmarshaller(); internal static UnregisterConnectorResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UnregisterConnectorResponseUnmarshaller Instance { get { return _instance; } } } }
107
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UnsupportedOperationException Object /// </summary> public class UnsupportedOperationExceptionUnmarshaller : IErrorResponseUnmarshaller<UnsupportedOperationException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public UnsupportedOperationException 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 UnsupportedOperationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); UnsupportedOperationException unmarshalledObject = new UnsupportedOperationException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static UnsupportedOperationExceptionUnmarshaller _instance = new UnsupportedOperationExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UnsupportedOperationExceptionUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.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.Appflow"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetResourceArn()) throw new AmazonAppflowException("Request object does not have required field ResourceArn set"); request.AddPathResource("{resourceArn}", StringUtils.FromString(publicRequest.ResourceArn)); if (publicRequest.IsSetTagKeys()) request.ParameterCollection.Add("tagKeys", publicRequest.TagKeys); request.ResourcePath = "/tags/{resourceArn}"; request.UseQueryString = true; 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; } } } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.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("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(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; } } } }
107
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// UpdateConnectorProfile Request Marshaller /// </summary> public class UpdateConnectorProfileRequestMarshaller : IMarshaller<IRequest, UpdateConnectorProfileRequest> , 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((UpdateConnectorProfileRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateConnectorProfileRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/update-connector-profile"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetConnectionMode()) { context.Writer.WritePropertyName("connectionMode"); context.Writer.Write(publicRequest.ConnectionMode); } if(publicRequest.IsSetConnectorProfileConfig()) { context.Writer.WritePropertyName("connectorProfileConfig"); context.Writer.WriteObjectStart(); var marshaller = ConnectorProfileConfigMarshaller.Instance; marshaller.Marshall(publicRequest.ConnectorProfileConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetConnectorProfileName()) { context.Writer.WritePropertyName("connectorProfileName"); context.Writer.Write(publicRequest.ConnectorProfileName); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateConnectorProfileRequestMarshaller _instance = new UpdateConnectorProfileRequestMarshaller(); internal static UpdateConnectorProfileRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateConnectorProfileRequestMarshaller Instance { get { return _instance; } } } }
129
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateConnectorProfile operation /// </summary> public class UpdateConnectorProfileResponseUnmarshaller : 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) { UpdateConnectorProfileResponse response = new UpdateConnectorProfileResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("connectorProfileArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConnectorProfileArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConnectorAuthenticationException")) { return ConnectorAuthenticationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateConnectorProfileResponseUnmarshaller _instance = new UpdateConnectorProfileResponseUnmarshaller(); internal static UpdateConnectorProfileResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateConnectorProfileResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// UpdateConnectorRegistration Request Marshaller /// </summary> public class UpdateConnectorRegistrationRequestMarshaller : IMarshaller<IRequest, UpdateConnectorRegistrationRequest> , 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((UpdateConnectorRegistrationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateConnectorRegistrationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/update-connector-registration"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetConnectorLabel()) { context.Writer.WritePropertyName("connectorLabel"); context.Writer.Write(publicRequest.ConnectorLabel); } if(publicRequest.IsSetConnectorProvisioningConfig()) { context.Writer.WritePropertyName("connectorProvisioningConfig"); context.Writer.WriteObjectStart(); var marshaller = ConnectorProvisioningConfigMarshaller.Instance; marshaller.Marshall(publicRequest.ConnectorProvisioningConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateConnectorRegistrationRequestMarshaller _instance = new UpdateConnectorRegistrationRequestMarshaller(); internal static UpdateConnectorRegistrationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateConnectorRegistrationRequestMarshaller Instance { get { return _instance; } } } }
129
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateConnectorRegistration operation /// </summary> public class UpdateConnectorRegistrationResponseUnmarshaller : 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) { UpdateConnectorRegistrationResponse response = new UpdateConnectorRegistrationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("connectorArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConnectorArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConnectorAuthenticationException")) { return ConnectorAuthenticationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConnectorServerException")) { return ConnectorServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateConnectorRegistrationResponseUnmarshaller _instance = new UpdateConnectorRegistrationResponseUnmarshaller(); internal static UpdateConnectorRegistrationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateConnectorRegistrationResponseUnmarshaller Instance { get { return _instance; } } } }
142
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// UpdateFlow Request Marshaller /// </summary> public class UpdateFlowRequestMarshaller : IMarshaller<IRequest, UpdateFlowRequest> , 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((UpdateFlowRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateFlowRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Appflow"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-08-23"; request.HttpMethod = "POST"; request.ResourcePath = "/update-flow"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetDestinationFlowConfigList()) { context.Writer.WritePropertyName("destinationFlowConfigList"); context.Writer.WriteArrayStart(); foreach(var publicRequestDestinationFlowConfigListListValue in publicRequest.DestinationFlowConfigList) { context.Writer.WriteObjectStart(); var marshaller = DestinationFlowConfigMarshaller.Instance; marshaller.Marshall(publicRequestDestinationFlowConfigListListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetFlowName()) { context.Writer.WritePropertyName("flowName"); context.Writer.Write(publicRequest.FlowName); } if(publicRequest.IsSetMetadataCatalogConfig()) { context.Writer.WritePropertyName("metadataCatalogConfig"); context.Writer.WriteObjectStart(); var marshaller = MetadataCatalogConfigMarshaller.Instance; marshaller.Marshall(publicRequest.MetadataCatalogConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetSourceFlowConfig()) { context.Writer.WritePropertyName("sourceFlowConfig"); context.Writer.WriteObjectStart(); var marshaller = SourceFlowConfigMarshaller.Instance; marshaller.Marshall(publicRequest.SourceFlowConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetTasks()) { context.Writer.WritePropertyName("tasks"); context.Writer.WriteArrayStart(); foreach(var publicRequestTasksListValue in publicRequest.Tasks) { context.Writer.WriteObjectStart(); var marshaller = TaskMarshaller.Instance; marshaller.Marshall(publicRequestTasksListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetTriggerConfig()) { context.Writer.WritePropertyName("triggerConfig"); context.Writer.WriteObjectStart(); var marshaller = TriggerConfigMarshaller.Instance; marshaller.Marshall(publicRequest.TriggerConfig, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateFlowRequestMarshaller _instance = new UpdateFlowRequestMarshaller(); internal static UpdateFlowRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateFlowRequestMarshaller Instance { get { return _instance; } } } }
183
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateFlow operation /// </summary> public class UpdateFlowResponseUnmarshaller : 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) { UpdateFlowResponse response = new UpdateFlowResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("flowStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FlowStatus = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConnectorAuthenticationException")) { return ConnectorAuthenticationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConnectorServerException")) { return ConnectorServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppflowException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateFlowResponseUnmarshaller _instance = new UpdateFlowResponseUnmarshaller(); internal static UpdateFlowResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateFlowResponseUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// UpsolverDestinationProperties Marshaller /// </summary> public class UpsolverDestinationPropertiesMarshaller : IRequestMarshaller<UpsolverDestinationProperties, 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(UpsolverDestinationProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetBucketName()) { context.Writer.WritePropertyName("bucketName"); context.Writer.Write(requestObject.BucketName); } if(requestObject.IsSetBucketPrefix()) { context.Writer.WritePropertyName("bucketPrefix"); context.Writer.Write(requestObject.BucketPrefix); } if(requestObject.IsSetS3OutputFormatConfig()) { context.Writer.WritePropertyName("s3OutputFormatConfig"); context.Writer.WriteObjectStart(); var marshaller = UpsolverS3OutputFormatConfigMarshaller.Instance; marshaller.Marshall(requestObject.S3OutputFormatConfig, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static UpsolverDestinationPropertiesMarshaller Instance = new UpsolverDestinationPropertiesMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpsolverDestinationProperties Object /// </summary> public class UpsolverDestinationPropertiesUnmarshaller : IUnmarshaller<UpsolverDestinationProperties, XmlUnmarshallerContext>, IUnmarshaller<UpsolverDestinationProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> UpsolverDestinationProperties IUnmarshaller<UpsolverDestinationProperties, 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 UpsolverDestinationProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; UpsolverDestinationProperties unmarshalledObject = new UpsolverDestinationProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("bucketName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BucketName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("bucketPrefix", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BucketPrefix = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("s3OutputFormatConfig", targetDepth)) { var unmarshaller = UpsolverS3OutputFormatConfigUnmarshaller.Instance; unmarshalledObject.S3OutputFormatConfig = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static UpsolverDestinationPropertiesUnmarshaller _instance = new UpsolverDestinationPropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UpsolverDestinationPropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpsolverMetadata Object /// </summary> public class UpsolverMetadataUnmarshaller : IUnmarshaller<UpsolverMetadata, XmlUnmarshallerContext>, IUnmarshaller<UpsolverMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> UpsolverMetadata IUnmarshaller<UpsolverMetadata, 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 UpsolverMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; UpsolverMetadata unmarshalledObject = new UpsolverMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static UpsolverMetadataUnmarshaller _instance = new UpsolverMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UpsolverMetadataUnmarshaller Instance { get { return _instance; } } } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// UpsolverS3OutputFormatConfig Marshaller /// </summary> public class UpsolverS3OutputFormatConfigMarshaller : IRequestMarshaller<UpsolverS3OutputFormatConfig, 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(UpsolverS3OutputFormatConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAggregationConfig()) { context.Writer.WritePropertyName("aggregationConfig"); context.Writer.WriteObjectStart(); var marshaller = AggregationConfigMarshaller.Instance; marshaller.Marshall(requestObject.AggregationConfig, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetFileType()) { context.Writer.WritePropertyName("fileType"); context.Writer.Write(requestObject.FileType); } if(requestObject.IsSetPrefixConfig()) { context.Writer.WritePropertyName("prefixConfig"); context.Writer.WriteObjectStart(); var marshaller = PrefixConfigMarshaller.Instance; marshaller.Marshall(requestObject.PrefixConfig, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static UpsolverS3OutputFormatConfigMarshaller Instance = new UpsolverS3OutputFormatConfigMarshaller(); } }
84
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpsolverS3OutputFormatConfig Object /// </summary> public class UpsolverS3OutputFormatConfigUnmarshaller : IUnmarshaller<UpsolverS3OutputFormatConfig, XmlUnmarshallerContext>, IUnmarshaller<UpsolverS3OutputFormatConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> UpsolverS3OutputFormatConfig IUnmarshaller<UpsolverS3OutputFormatConfig, 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 UpsolverS3OutputFormatConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; UpsolverS3OutputFormatConfig unmarshalledObject = new UpsolverS3OutputFormatConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("aggregationConfig", targetDepth)) { var unmarshaller = AggregationConfigUnmarshaller.Instance; unmarshalledObject.AggregationConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fileType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FileType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("prefixConfig", targetDepth)) { var unmarshaller = PrefixConfigUnmarshaller.Instance; unmarshalledObject.PrefixConfig = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static UpsolverS3OutputFormatConfigUnmarshaller _instance = new UpsolverS3OutputFormatConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UpsolverS3OutputFormatConfigUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ValidationException Object /// </summary> public class ValidationExceptionUnmarshaller : IErrorResponseUnmarshaller<ValidationException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ValidationException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ValidationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ValidationException unmarshalledObject = new ValidationException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ValidationExceptionUnmarshaller _instance = new ValidationExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ValidationExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// VeevaConnectorProfileCredentials Marshaller /// </summary> public class VeevaConnectorProfileCredentialsMarshaller : IRequestMarshaller<VeevaConnectorProfileCredentials, 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(VeevaConnectorProfileCredentials requestObject, JsonMarshallerContext context) { if(requestObject.IsSetPassword()) { context.Writer.WritePropertyName("password"); context.Writer.Write(requestObject.Password); } if(requestObject.IsSetUsername()) { context.Writer.WritePropertyName("username"); context.Writer.Write(requestObject.Username); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VeevaConnectorProfileCredentialsMarshaller Instance = new VeevaConnectorProfileCredentialsMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// VeevaConnectorProfileProperties Marshaller /// </summary> public class VeevaConnectorProfilePropertiesMarshaller : IRequestMarshaller<VeevaConnectorProfileProperties, 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(VeevaConnectorProfileProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetInstanceUrl()) { context.Writer.WritePropertyName("instanceUrl"); context.Writer.Write(requestObject.InstanceUrl); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VeevaConnectorProfilePropertiesMarshaller Instance = new VeevaConnectorProfilePropertiesMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for VeevaConnectorProfileProperties Object /// </summary> public class VeevaConnectorProfilePropertiesUnmarshaller : IUnmarshaller<VeevaConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<VeevaConnectorProfileProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VeevaConnectorProfileProperties IUnmarshaller<VeevaConnectorProfileProperties, 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 VeevaConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VeevaConnectorProfileProperties unmarshalledObject = new VeevaConnectorProfileProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("instanceUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.InstanceUrl = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VeevaConnectorProfilePropertiesUnmarshaller _instance = new VeevaConnectorProfilePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VeevaConnectorProfilePropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for VeevaMetadata Object /// </summary> public class VeevaMetadataUnmarshaller : IUnmarshaller<VeevaMetadata, XmlUnmarshallerContext>, IUnmarshaller<VeevaMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VeevaMetadata IUnmarshaller<VeevaMetadata, 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 VeevaMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VeevaMetadata unmarshalledObject = new VeevaMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static VeevaMetadataUnmarshaller _instance = new VeevaMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VeevaMetadataUnmarshaller Instance { get { return _instance; } } } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// VeevaSourceProperties Marshaller /// </summary> public class VeevaSourcePropertiesMarshaller : IRequestMarshaller<VeevaSourceProperties, 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(VeevaSourceProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetDocumentType()) { context.Writer.WritePropertyName("documentType"); context.Writer.Write(requestObject.DocumentType); } if(requestObject.IsSetIncludeAllVersions()) { context.Writer.WritePropertyName("includeAllVersions"); context.Writer.Write(requestObject.IncludeAllVersions); } if(requestObject.IsSetIncludeRenditions()) { context.Writer.WritePropertyName("includeRenditions"); context.Writer.Write(requestObject.IncludeRenditions); } if(requestObject.IsSetIncludeSourceFiles()) { context.Writer.WritePropertyName("includeSourceFiles"); context.Writer.Write(requestObject.IncludeSourceFiles); } if(requestObject.IsSetObject()) { context.Writer.WritePropertyName("object"); context.Writer.Write(requestObject.Object); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VeevaSourcePropertiesMarshaller Instance = new VeevaSourcePropertiesMarshaller(); } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for VeevaSourceProperties Object /// </summary> public class VeevaSourcePropertiesUnmarshaller : IUnmarshaller<VeevaSourceProperties, XmlUnmarshallerContext>, IUnmarshaller<VeevaSourceProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VeevaSourceProperties IUnmarshaller<VeevaSourceProperties, 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 VeevaSourceProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VeevaSourceProperties unmarshalledObject = new VeevaSourceProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("documentType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DocumentType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("includeAllVersions", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IncludeAllVersions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("includeRenditions", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IncludeRenditions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("includeSourceFiles", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IncludeSourceFiles = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("object", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Object = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VeevaSourcePropertiesUnmarshaller _instance = new VeevaSourcePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VeevaSourcePropertiesUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// ZendeskConnectorProfileCredentials Marshaller /// </summary> public class ZendeskConnectorProfileCredentialsMarshaller : IRequestMarshaller<ZendeskConnectorProfileCredentials, 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(ZendeskConnectorProfileCredentials requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAccessToken()) { context.Writer.WritePropertyName("accessToken"); context.Writer.Write(requestObject.AccessToken); } if(requestObject.IsSetClientId()) { context.Writer.WritePropertyName("clientId"); context.Writer.Write(requestObject.ClientId); } if(requestObject.IsSetClientSecret()) { context.Writer.WritePropertyName("clientSecret"); context.Writer.Write(requestObject.ClientSecret); } if(requestObject.IsSetOAuthRequest()) { context.Writer.WritePropertyName("oAuthRequest"); context.Writer.WriteObjectStart(); var marshaller = ConnectorOAuthRequestMarshaller.Instance; marshaller.Marshall(requestObject.OAuthRequest, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ZendeskConnectorProfileCredentialsMarshaller Instance = new ZendeskConnectorProfileCredentialsMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// ZendeskConnectorProfileProperties Marshaller /// </summary> public class ZendeskConnectorProfilePropertiesMarshaller : IRequestMarshaller<ZendeskConnectorProfileProperties, 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(ZendeskConnectorProfileProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetInstanceUrl()) { context.Writer.WritePropertyName("instanceUrl"); context.Writer.Write(requestObject.InstanceUrl); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ZendeskConnectorProfilePropertiesMarshaller Instance = new ZendeskConnectorProfilePropertiesMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ZendeskConnectorProfileProperties Object /// </summary> public class ZendeskConnectorProfilePropertiesUnmarshaller : IUnmarshaller<ZendeskConnectorProfileProperties, XmlUnmarshallerContext>, IUnmarshaller<ZendeskConnectorProfileProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ZendeskConnectorProfileProperties IUnmarshaller<ZendeskConnectorProfileProperties, 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 ZendeskConnectorProfileProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ZendeskConnectorProfileProperties unmarshalledObject = new ZendeskConnectorProfileProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("instanceUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.InstanceUrl = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ZendeskConnectorProfilePropertiesUnmarshaller _instance = new ZendeskConnectorProfilePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ZendeskConnectorProfilePropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// ZendeskDestinationProperties Marshaller /// </summary> public class ZendeskDestinationPropertiesMarshaller : IRequestMarshaller<ZendeskDestinationProperties, 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(ZendeskDestinationProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetErrorHandlingConfig()) { context.Writer.WritePropertyName("errorHandlingConfig"); context.Writer.WriteObjectStart(); var marshaller = ErrorHandlingConfigMarshaller.Instance; marshaller.Marshall(requestObject.ErrorHandlingConfig, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetIdFieldNames()) { context.Writer.WritePropertyName("idFieldNames"); context.Writer.WriteArrayStart(); foreach(var requestObjectIdFieldNamesListValue in requestObject.IdFieldNames) { context.Writer.Write(requestObjectIdFieldNamesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetObject()) { context.Writer.WritePropertyName("object"); context.Writer.Write(requestObject.Object); } if(requestObject.IsSetWriteOperationType()) { context.Writer.WritePropertyName("writeOperationType"); context.Writer.Write(requestObject.WriteOperationType); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ZendeskDestinationPropertiesMarshaller Instance = new ZendeskDestinationPropertiesMarshaller(); } }
90
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ZendeskDestinationProperties Object /// </summary> public class ZendeskDestinationPropertiesUnmarshaller : IUnmarshaller<ZendeskDestinationProperties, XmlUnmarshallerContext>, IUnmarshaller<ZendeskDestinationProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ZendeskDestinationProperties IUnmarshaller<ZendeskDestinationProperties, 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 ZendeskDestinationProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ZendeskDestinationProperties unmarshalledObject = new ZendeskDestinationProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("errorHandlingConfig", targetDepth)) { var unmarshaller = ErrorHandlingConfigUnmarshaller.Instance; unmarshalledObject.ErrorHandlingConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("idFieldNames", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.IdFieldNames = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("object", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Object = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("writeOperationType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.WriteOperationType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ZendeskDestinationPropertiesUnmarshaller _instance = new ZendeskDestinationPropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ZendeskDestinationPropertiesUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ZendeskMetadata Object /// </summary> public class ZendeskMetadataUnmarshaller : IUnmarshaller<ZendeskMetadata, XmlUnmarshallerContext>, IUnmarshaller<ZendeskMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ZendeskMetadata IUnmarshaller<ZendeskMetadata, 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 ZendeskMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ZendeskMetadata unmarshalledObject = new ZendeskMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("oAuthScopes", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.OAuthScopes = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ZendeskMetadataUnmarshaller _instance = new ZendeskMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ZendeskMetadataUnmarshaller 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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// ZendeskSourceProperties Marshaller /// </summary> public class ZendeskSourcePropertiesMarshaller : IRequestMarshaller<ZendeskSourceProperties, 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(ZendeskSourceProperties requestObject, JsonMarshallerContext context) { if(requestObject.IsSetObject()) { context.Writer.WritePropertyName("object"); context.Writer.Write(requestObject.Object); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ZendeskSourcePropertiesMarshaller Instance = new ZendeskSourcePropertiesMarshaller(); } }
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 appflow-2020-08-23.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.Appflow.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Appflow.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ZendeskSourceProperties Object /// </summary> public class ZendeskSourcePropertiesUnmarshaller : IUnmarshaller<ZendeskSourceProperties, XmlUnmarshallerContext>, IUnmarshaller<ZendeskSourceProperties, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ZendeskSourceProperties IUnmarshaller<ZendeskSourceProperties, 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 ZendeskSourceProperties Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ZendeskSourceProperties unmarshalledObject = new ZendeskSourceProperties(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("object", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Object = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ZendeskSourcePropertiesUnmarshaller _instance = new ZendeskSourcePropertiesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ZendeskSourcePropertiesUnmarshaller 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 appflow-2020-08-23.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; namespace Amazon.Appflow.Model { /// <summary> /// Paginators for the Appflow service ///</summary> public class AppflowPaginatorFactory : IAppflowPaginatorFactory { private readonly IAmazonAppflow client; internal AppflowPaginatorFactory(IAmazonAppflow client) { this.client = client; } /// <summary> /// Paginator for DescribeConnectorProfiles operation ///</summary> public IDescribeConnectorProfilesPaginator DescribeConnectorProfiles(DescribeConnectorProfilesRequest request) { return new DescribeConnectorProfilesPaginator(this.client, request); } /// <summary> /// Paginator for DescribeConnectors operation ///</summary> public IDescribeConnectorsPaginator DescribeConnectors(DescribeConnectorsRequest request) { return new DescribeConnectorsPaginator(this.client, request); } /// <summary> /// Paginator for DescribeFlowExecutionRecords operation ///</summary> public IDescribeFlowExecutionRecordsPaginator DescribeFlowExecutionRecords(DescribeFlowExecutionRecordsRequest request) { return new DescribeFlowExecutionRecordsPaginator(this.client, request); } /// <summary> /// Paginator for ListConnectors operation ///</summary> public IListConnectorsPaginator ListConnectors(ListConnectorsRequest request) { return new ListConnectorsPaginator(this.client, request); } /// <summary> /// Paginator for ListFlows operation ///</summary> public IListFlowsPaginator ListFlows(ListFlowsRequest request) { return new ListFlowsPaginator(this.client, request); } } }
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 appflow-2020-08-23.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.Appflow.Model { /// <summary> /// Base class for DescribeConnectorProfiles paginators. /// </summary> internal sealed partial class DescribeConnectorProfilesPaginator : IPaginator<DescribeConnectorProfilesResponse>, IDescribeConnectorProfilesPaginator { private readonly IAmazonAppflow _client; private readonly DescribeConnectorProfilesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeConnectorProfilesResponse> Responses => new PaginatedResponse<DescribeConnectorProfilesResponse>(this); internal DescribeConnectorProfilesPaginator(IAmazonAppflow client, DescribeConnectorProfilesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeConnectorProfilesResponse> IPaginator<DescribeConnectorProfilesResponse>.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; DescribeConnectorProfilesResponse response; do { _request.NextToken = nextToken; response = _client.DescribeConnectorProfiles(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeConnectorProfilesResponse> IPaginator<DescribeConnectorProfilesResponse>.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; DescribeConnectorProfilesResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeConnectorProfilesAsync(_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 appflow-2020-08-23.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.Appflow.Model { /// <summary> /// Base class for DescribeConnectors paginators. /// </summary> internal sealed partial class DescribeConnectorsPaginator : IPaginator<DescribeConnectorsResponse>, IDescribeConnectorsPaginator { private readonly IAmazonAppflow _client; private readonly DescribeConnectorsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeConnectorsResponse> Responses => new PaginatedResponse<DescribeConnectorsResponse>(this); internal DescribeConnectorsPaginator(IAmazonAppflow client, DescribeConnectorsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeConnectorsResponse> IPaginator<DescribeConnectorsResponse>.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; DescribeConnectorsResponse response; do { _request.NextToken = nextToken; response = _client.DescribeConnectors(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeConnectorsResponse> IPaginator<DescribeConnectorsResponse>.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; DescribeConnectorsResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeConnectorsAsync(_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 appflow-2020-08-23.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.Appflow.Model { /// <summary> /// Base class for DescribeFlowExecutionRecords paginators. /// </summary> internal sealed partial class DescribeFlowExecutionRecordsPaginator : IPaginator<DescribeFlowExecutionRecordsResponse>, IDescribeFlowExecutionRecordsPaginator { private readonly IAmazonAppflow _client; private readonly DescribeFlowExecutionRecordsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeFlowExecutionRecordsResponse> Responses => new PaginatedResponse<DescribeFlowExecutionRecordsResponse>(this); internal DescribeFlowExecutionRecordsPaginator(IAmazonAppflow client, DescribeFlowExecutionRecordsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeFlowExecutionRecordsResponse> IPaginator<DescribeFlowExecutionRecordsResponse>.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; DescribeFlowExecutionRecordsResponse response; do { _request.NextToken = nextToken; response = _client.DescribeFlowExecutionRecords(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeFlowExecutionRecordsResponse> IPaginator<DescribeFlowExecutionRecordsResponse>.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; DescribeFlowExecutionRecordsResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeFlowExecutionRecordsAsync(_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 appflow-2020-08-23.normal.json service model. */ namespace Amazon.Appflow.Model { /// <summary> /// Paginators for the Appflow service ///</summary> public interface IAppflowPaginatorFactory { /// <summary> /// Paginator for DescribeConnectorProfiles operation ///</summary> IDescribeConnectorProfilesPaginator DescribeConnectorProfiles(DescribeConnectorProfilesRequest request); /// <summary> /// Paginator for DescribeConnectors operation ///</summary> IDescribeConnectorsPaginator DescribeConnectors(DescribeConnectorsRequest request); /// <summary> /// Paginator for DescribeFlowExecutionRecords operation ///</summary> IDescribeFlowExecutionRecordsPaginator DescribeFlowExecutionRecords(DescribeFlowExecutionRecordsRequest request); /// <summary> /// Paginator for ListConnectors operation ///</summary> IListConnectorsPaginator ListConnectors(ListConnectorsRequest request); /// <summary> /// Paginator for ListFlows operation ///</summary> IListFlowsPaginator ListFlows(ListFlowsRequest request); } }
53
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Appflow.Model { /// <summary> /// Paginator for the DescribeConnectorProfiles operation ///</summary> public interface IDescribeConnectorProfilesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeConnectorProfilesResponse> 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 appflow-2020-08-23.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Appflow.Model { /// <summary> /// Paginator for the DescribeConnectors operation ///</summary> public interface IDescribeConnectorsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeConnectorsResponse> 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 appflow-2020-08-23.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Appflow.Model { /// <summary> /// Paginator for the DescribeFlowExecutionRecords operation ///</summary> public interface IDescribeFlowExecutionRecordsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeFlowExecutionRecordsResponse> 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 appflow-2020-08-23.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Appflow.Model { /// <summary> /// Paginator for the ListConnectors operation ///</summary> public interface IListConnectorsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListConnectorsResponse> 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 appflow-2020-08-23.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Appflow.Model { /// <summary> /// Paginator for the ListFlows operation ///</summary> public interface IListFlowsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListFlowsResponse> 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 appflow-2020-08-23.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.Appflow.Model { /// <summary> /// Base class for ListConnectors paginators. /// </summary> internal sealed partial class ListConnectorsPaginator : IPaginator<ListConnectorsResponse>, IListConnectorsPaginator { private readonly IAmazonAppflow _client; private readonly ListConnectorsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListConnectorsResponse> Responses => new PaginatedResponse<ListConnectorsResponse>(this); internal ListConnectorsPaginator(IAmazonAppflow client, ListConnectorsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListConnectorsResponse> IPaginator<ListConnectorsResponse>.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; ListConnectorsResponse response; do { _request.NextToken = nextToken; response = _client.ListConnectors(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListConnectorsResponse> IPaginator<ListConnectorsResponse>.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; ListConnectorsResponse response; do { _request.NextToken = nextToken; response = await _client.ListConnectorsAsync(_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 appflow-2020-08-23.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.Appflow.Model { /// <summary> /// Base class for ListFlows paginators. /// </summary> internal sealed partial class ListFlowsPaginator : IPaginator<ListFlowsResponse>, IListFlowsPaginator { private readonly IAmazonAppflow _client; private readonly ListFlowsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListFlowsResponse> Responses => new PaginatedResponse<ListFlowsResponse>(this); internal ListFlowsPaginator(IAmazonAppflow client, ListFlowsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListFlowsResponse> IPaginator<ListFlowsResponse>.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; ListFlowsResponse response; do { _request.NextToken = nextToken; response = _client.ListFlows(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListFlowsResponse> IPaginator<ListFlowsResponse>.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; ListFlowsResponse response; do { _request.NextToken = nextToken; response = await _client.ListFlowsAsync(_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 appflow-2020-08-23.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.Appflow.Model; using Amazon.Appflow.Model.Internal.MarshallTransformations; using Amazon.Appflow.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Appflow { /// <summary> /// Implementation for accessing Appflow /// /// Welcome to the Amazon AppFlow API reference. This guide is for developers who need /// detailed information about the Amazon AppFlow API operations, data types, and errors. /// /// /// /// <para> /// Amazon AppFlow is a fully managed integration service that enables you to securely /// transfer data between software as a service (SaaS) applications like Salesforce, Marketo, /// Slack, and ServiceNow, and Amazon Web Services like Amazon S3 and Amazon Redshift. /// /// </para> /// /// <para> /// Use the following links to get started on the Amazon AppFlow API: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Operations.html">Actions</a>: /// An alphabetical list of all Amazon AppFlow API operations. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Types.html">Data /// types</a>: An alphabetical list of all Amazon AppFlow data types. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonParameters.html">Common /// parameters</a>: Parameters that all Query operations can use. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonErrors.html">Common /// errors</a>: Client and server errors that all operations can return. /// </para> /// </li> </ul> /// <para> /// If you're new to Amazon AppFlow, we recommend that you review the <a href="https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html">Amazon /// AppFlow User Guide</a>. /// </para> /// /// <para> /// Amazon AppFlow API users can use vendor-specific mechanisms for OAuth, and include /// applicable OAuth attributes (such as <code>auth-code</code> and <code>redirecturi</code>) /// with the connector-specific <code>ConnectorProfileProperties</code> when creating /// a new connector profile using Amazon AppFlow API operations. For example, Salesforce /// users can refer to the <a href="https://help.salesforce.com/articleView?id=remoteaccess_authenticate.htm"> /// <i>Authorize Apps with OAuth</i> </a> documentation. /// </para> /// </summary> public partial class AmazonAppflowClient : AmazonServiceClient, IAmazonAppflow { private static IServiceMetadata serviceMetadata = new AmazonAppflowMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IAppflowPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IAppflowPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new AppflowPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// <summary> /// Constructs AmazonAppflowClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonAppflowClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppflowConfig()) { } /// <summary> /// Constructs AmazonAppflowClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonAppflowClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppflowConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppflowClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonAppflowClient Configuration Object</param> public AmazonAppflowClient(AmazonAppflowConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonAppflowClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAppflowClient(AWSCredentials credentials) : this(credentials, new AmazonAppflowConfig()) { } /// <summary> /// Constructs AmazonAppflowClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAppflowClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAppflowConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppflowClient with AWS Credentials and an /// AmazonAppflowClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAppflowClient Configuration Object</param> public AmazonAppflowClient(AWSCredentials credentials, AmazonAppflowConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAppflowClient 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 AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppflowConfig()) { } /// <summary> /// Constructs AmazonAppflowClient 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 AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppflowConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAppflowClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppflowClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAppflowClient Configuration Object</param> public AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAppflowConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAppflowClient 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 AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppflowConfig()) { } /// <summary> /// Constructs AmazonAppflowClient 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 AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppflowConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppflowClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppflowClient 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 AmazonAppflowClient Configuration Object</param> public AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAppflowConfig 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 AmazonAppflowEndpointResolver()); } /// <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 CancelFlowExecutions /// <summary> /// Cancels active runs for a flow. /// /// /// <para> /// You can cancel all of the active runs for a flow, or you can cancel specific runs /// by providing their IDs. /// </para> /// /// <para> /// You can cancel a flow run only when the run is in progress. You can't cancel a run /// that has already completed or failed. You also can't cancel a run that's scheduled /// to occur but hasn't started yet. To prevent a scheduled run, you can deactivate the /// flow with the <code>StopFlow</code> action. /// </para> /// /// <para> /// You cannot resume a run after you cancel it. /// </para> /// /// <para> /// When you send your request, the status for each run becomes <code>CancelStarted</code>. /// When the cancellation completes, the status becomes <code>Canceled</code>. /// </para> /// <note> /// <para> /// When you cancel a run, you still incur charges for any data that the run already processed /// before the cancellation. If the run had already written some data to the flow destination, /// then that data remains in the destination. If you configured the flow to use a batch /// API (such as the Salesforce Bulk API 2.0), then the run will finish reading or writing /// its entire batch of data after the cancellation. For these operations, the data processing /// charges for Amazon AppFlow apply. For the pricing information, see <a href="http://aws.amazon.com/appflow/pricing/">Amazon /// AppFlow pricing</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelFlowExecutions service method.</param> /// /// <returns>The response from the CancelFlowExecutions service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CancelFlowExecutions">REST API Reference for CancelFlowExecutions Operation</seealso> public virtual CancelFlowExecutionsResponse CancelFlowExecutions(CancelFlowExecutionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelFlowExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelFlowExecutionsResponseUnmarshaller.Instance; return Invoke<CancelFlowExecutionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CancelFlowExecutions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelFlowExecutions operation on AmazonAppflowClient.</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 EndCancelFlowExecutions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CancelFlowExecutions">REST API Reference for CancelFlowExecutions Operation</seealso> public virtual IAsyncResult BeginCancelFlowExecutions(CancelFlowExecutionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CancelFlowExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelFlowExecutionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CancelFlowExecutions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelFlowExecutions.</param> /// /// <returns>Returns a CancelFlowExecutionsResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CancelFlowExecutions">REST API Reference for CancelFlowExecutions Operation</seealso> public virtual CancelFlowExecutionsResponse EndCancelFlowExecutions(IAsyncResult asyncResult) { return EndInvoke<CancelFlowExecutionsResponse>(asyncResult); } #endregion #region CreateConnectorProfile /// <summary> /// Creates a new connector profile associated with your Amazon Web Services account. /// There is a soft quota of 100 connector profiles per Amazon Web Services account. If /// you need more connector profiles than this quota allows, you can submit a request /// to the Amazon AppFlow team through the Amazon AppFlow support channel. In each connector /// profile that you create, you can provide the credentials and properties for only one /// connector. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateConnectorProfile service method.</param> /// /// <returns>The response from the CreateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateConnectorProfile">REST API Reference for CreateConnectorProfile Operation</seealso> public virtual CreateConnectorProfileResponse CreateConnectorProfile(CreateConnectorProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateConnectorProfileResponseUnmarshaller.Instance; return Invoke<CreateConnectorProfileResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateConnectorProfile operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateConnectorProfile operation on AmazonAppflowClient.</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 EndCreateConnectorProfile /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateConnectorProfile">REST API Reference for CreateConnectorProfile Operation</seealso> public virtual IAsyncResult BeginCreateConnectorProfile(CreateConnectorProfileRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateConnectorProfileResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateConnectorProfile operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateConnectorProfile.</param> /// /// <returns>Returns a CreateConnectorProfileResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateConnectorProfile">REST API Reference for CreateConnectorProfile Operation</seealso> public virtual CreateConnectorProfileResponse EndCreateConnectorProfile(IAsyncResult asyncResult) { return EndInvoke<CreateConnectorProfileResponse>(asyncResult); } #endregion #region CreateFlow /// <summary> /// Enables your application to create a new flow using Amazon AppFlow. You must create /// a connector profile before calling this API. Please note that the Request Syntax below /// shows syntax for multiple destinations, however, you can only transfer data to one /// item in this list at a time. Amazon AppFlow does not currently support flows to multiple /// destinations at once. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFlow service method.</param> /// /// <returns>The response from the CreateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateFlow">REST API Reference for CreateFlow Operation</seealso> public virtual CreateFlowResponse CreateFlow(CreateFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFlowResponseUnmarshaller.Instance; return Invoke<CreateFlowResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateFlow operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateFlow operation on AmazonAppflowClient.</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 EndCreateFlow /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateFlow">REST API Reference for CreateFlow Operation</seealso> public virtual IAsyncResult BeginCreateFlow(CreateFlowRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFlowResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateFlow operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateFlow.</param> /// /// <returns>Returns a CreateFlowResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateFlow">REST API Reference for CreateFlow Operation</seealso> public virtual CreateFlowResponse EndCreateFlow(IAsyncResult asyncResult) { return EndInvoke<CreateFlowResponse>(asyncResult); } #endregion #region DeleteConnectorProfile /// <summary> /// Enables you to delete an existing connector profile. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteConnectorProfile service method.</param> /// /// <returns>The response from the DeleteConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteConnectorProfile">REST API Reference for DeleteConnectorProfile Operation</seealso> public virtual DeleteConnectorProfileResponse DeleteConnectorProfile(DeleteConnectorProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteConnectorProfileResponseUnmarshaller.Instance; return Invoke<DeleteConnectorProfileResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteConnectorProfile operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteConnectorProfile operation on AmazonAppflowClient.</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 EndDeleteConnectorProfile /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteConnectorProfile">REST API Reference for DeleteConnectorProfile Operation</seealso> public virtual IAsyncResult BeginDeleteConnectorProfile(DeleteConnectorProfileRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteConnectorProfileResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteConnectorProfile operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteConnectorProfile.</param> /// /// <returns>Returns a DeleteConnectorProfileResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteConnectorProfile">REST API Reference for DeleteConnectorProfile Operation</seealso> public virtual DeleteConnectorProfileResponse EndDeleteConnectorProfile(IAsyncResult asyncResult) { return EndInvoke<DeleteConnectorProfileResponse>(asyncResult); } #endregion #region DeleteFlow /// <summary> /// Enables your application to delete an existing flow. Before deleting the flow, Amazon /// AppFlow validates the request by checking the flow configuration and status. You can /// delete flows one at a time. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFlow service method.</param> /// /// <returns>The response from the DeleteFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteFlow">REST API Reference for DeleteFlow Operation</seealso> public virtual DeleteFlowResponse DeleteFlow(DeleteFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFlowResponseUnmarshaller.Instance; return Invoke<DeleteFlowResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteFlow operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteFlow operation on AmazonAppflowClient.</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 EndDeleteFlow /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteFlow">REST API Reference for DeleteFlow Operation</seealso> public virtual IAsyncResult BeginDeleteFlow(DeleteFlowRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFlowResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteFlow operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteFlow.</param> /// /// <returns>Returns a DeleteFlowResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteFlow">REST API Reference for DeleteFlow Operation</seealso> public virtual DeleteFlowResponse EndDeleteFlow(IAsyncResult asyncResult) { return EndInvoke<DeleteFlowResponse>(asyncResult); } #endregion #region DescribeConnector /// <summary> /// Describes the given custom connector registered in your Amazon Web Services account. /// This API can be used for custom connectors that are registered in your account and /// also for Amazon authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnector service method.</param> /// /// <returns>The response from the DescribeConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnector">REST API Reference for DescribeConnector Operation</seealso> public virtual DescribeConnectorResponse DescribeConnector(DescribeConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorResponseUnmarshaller.Instance; return Invoke<DescribeConnectorResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeConnector operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeConnector operation on AmazonAppflowClient.</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 EndDescribeConnector /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnector">REST API Reference for DescribeConnector Operation</seealso> public virtual IAsyncResult BeginDescribeConnector(DescribeConnectorRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeConnector operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeConnector.</param> /// /// <returns>Returns a DescribeConnectorResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnector">REST API Reference for DescribeConnector Operation</seealso> public virtual DescribeConnectorResponse EndDescribeConnector(IAsyncResult asyncResult) { return EndInvoke<DescribeConnectorResponse>(asyncResult); } #endregion #region DescribeConnectorEntity /// <summary> /// Provides details regarding the entity used with the connector, with a description /// of the data model for each field in that entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorEntity service method.</param> /// /// <returns>The response from the DescribeConnectorEntity service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorEntity">REST API Reference for DescribeConnectorEntity Operation</seealso> public virtual DescribeConnectorEntityResponse DescribeConnectorEntity(DescribeConnectorEntityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorEntityResponseUnmarshaller.Instance; return Invoke<DescribeConnectorEntityResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeConnectorEntity operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorEntity operation on AmazonAppflowClient.</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 EndDescribeConnectorEntity /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorEntity">REST API Reference for DescribeConnectorEntity Operation</seealso> public virtual IAsyncResult BeginDescribeConnectorEntity(DescribeConnectorEntityRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorEntityResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeConnectorEntity operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeConnectorEntity.</param> /// /// <returns>Returns a DescribeConnectorEntityResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorEntity">REST API Reference for DescribeConnectorEntity Operation</seealso> public virtual DescribeConnectorEntityResponse EndDescribeConnectorEntity(IAsyncResult asyncResult) { return EndInvoke<DescribeConnectorEntityResponse>(asyncResult); } #endregion #region DescribeConnectorProfiles /// <summary> /// Returns a list of <code>connector-profile</code> details matching the provided <code>connector-profile</code> /// names and <code>connector-types</code>. Both input lists are optional, and you can /// use them to filter the result. /// /// /// <para> /// If no names or <code>connector-types</code> are provided, returns all connector profiles /// in a paginated form. If there is no match, this operation returns an empty list. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorProfiles service method.</param> /// /// <returns>The response from the DescribeConnectorProfiles service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorProfiles">REST API Reference for DescribeConnectorProfiles Operation</seealso> public virtual DescribeConnectorProfilesResponse DescribeConnectorProfiles(DescribeConnectorProfilesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorProfilesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorProfilesResponseUnmarshaller.Instance; return Invoke<DescribeConnectorProfilesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeConnectorProfiles operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorProfiles operation on AmazonAppflowClient.</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 EndDescribeConnectorProfiles /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorProfiles">REST API Reference for DescribeConnectorProfiles Operation</seealso> public virtual IAsyncResult BeginDescribeConnectorProfiles(DescribeConnectorProfilesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorProfilesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorProfilesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeConnectorProfiles operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeConnectorProfiles.</param> /// /// <returns>Returns a DescribeConnectorProfilesResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorProfiles">REST API Reference for DescribeConnectorProfiles Operation</seealso> public virtual DescribeConnectorProfilesResponse EndDescribeConnectorProfiles(IAsyncResult asyncResult) { return EndInvoke<DescribeConnectorProfilesResponse>(asyncResult); } #endregion #region DescribeConnectors /// <summary> /// Describes the connectors vended by Amazon AppFlow for specified connector types. /// If you don't specify a connector type, this operation describes all connectors vended /// by Amazon AppFlow. If there are more connectors than can be returned in one page, /// the response contains a <code>nextToken</code> object, which can be be passed in to /// the next call to the <code>DescribeConnectors</code> API operation to retrieve the /// next page. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectors service method.</param> /// /// <returns>The response from the DescribeConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectors">REST API Reference for DescribeConnectors Operation</seealso> public virtual DescribeConnectorsResponse DescribeConnectors(DescribeConnectorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorsResponseUnmarshaller.Instance; return Invoke<DescribeConnectorsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeConnectors operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeConnectors operation on AmazonAppflowClient.</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 EndDescribeConnectors /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectors">REST API Reference for DescribeConnectors Operation</seealso> public virtual IAsyncResult BeginDescribeConnectors(DescribeConnectorsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeConnectors operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeConnectors.</param> /// /// <returns>Returns a DescribeConnectorsResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectors">REST API Reference for DescribeConnectors Operation</seealso> public virtual DescribeConnectorsResponse EndDescribeConnectors(IAsyncResult asyncResult) { return EndInvoke<DescribeConnectorsResponse>(asyncResult); } #endregion #region DescribeFlow /// <summary> /// Provides a description of the specified flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlow service method.</param> /// /// <returns>The response from the DescribeFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow">REST API Reference for DescribeFlow Operation</seealso> public virtual DescribeFlowResponse DescribeFlow(DescribeFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlowResponseUnmarshaller.Instance; return Invoke<DescribeFlowResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeFlow operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeFlow operation on AmazonAppflowClient.</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 EndDescribeFlow /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow">REST API Reference for DescribeFlow Operation</seealso> public virtual IAsyncResult BeginDescribeFlow(DescribeFlowRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlowResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeFlow operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeFlow.</param> /// /// <returns>Returns a DescribeFlowResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow">REST API Reference for DescribeFlow Operation</seealso> public virtual DescribeFlowResponse EndDescribeFlow(IAsyncResult asyncResult) { return EndInvoke<DescribeFlowResponse>(asyncResult); } #endregion #region DescribeFlowExecutionRecords /// <summary> /// Fetches the execution history of the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlowExecutionRecords service method.</param> /// /// <returns>The response from the DescribeFlowExecutionRecords service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords">REST API Reference for DescribeFlowExecutionRecords Operation</seealso> public virtual DescribeFlowExecutionRecordsResponse DescribeFlowExecutionRecords(DescribeFlowExecutionRecordsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlowExecutionRecordsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlowExecutionRecordsResponseUnmarshaller.Instance; return Invoke<DescribeFlowExecutionRecordsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeFlowExecutionRecords operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeFlowExecutionRecords operation on AmazonAppflowClient.</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 EndDescribeFlowExecutionRecords /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords">REST API Reference for DescribeFlowExecutionRecords Operation</seealso> public virtual IAsyncResult BeginDescribeFlowExecutionRecords(DescribeFlowExecutionRecordsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlowExecutionRecordsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlowExecutionRecordsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeFlowExecutionRecords operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeFlowExecutionRecords.</param> /// /// <returns>Returns a DescribeFlowExecutionRecordsResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords">REST API Reference for DescribeFlowExecutionRecords Operation</seealso> public virtual DescribeFlowExecutionRecordsResponse EndDescribeFlowExecutionRecords(IAsyncResult asyncResult) { return EndInvoke<DescribeFlowExecutionRecordsResponse>(asyncResult); } #endregion #region ListConnectorEntities /// <summary> /// Returns the list of available connector entities supported by Amazon AppFlow. For /// example, you can query Salesforce for <i>Account</i> and <i>Opportunity</i> entities, /// or query ServiceNow for the <i>Incident</i> entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectorEntities service method.</param> /// /// <returns>The response from the ListConnectorEntities service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectorEntities">REST API Reference for ListConnectorEntities Operation</seealso> public virtual ListConnectorEntitiesResponse ListConnectorEntities(ListConnectorEntitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListConnectorEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConnectorEntitiesResponseUnmarshaller.Instance; return Invoke<ListConnectorEntitiesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListConnectorEntities operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListConnectorEntities operation on AmazonAppflowClient.</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 EndListConnectorEntities /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectorEntities">REST API Reference for ListConnectorEntities Operation</seealso> public virtual IAsyncResult BeginListConnectorEntities(ListConnectorEntitiesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListConnectorEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConnectorEntitiesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListConnectorEntities operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListConnectorEntities.</param> /// /// <returns>Returns a ListConnectorEntitiesResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectorEntities">REST API Reference for ListConnectorEntities Operation</seealso> public virtual ListConnectorEntitiesResponse EndListConnectorEntities(IAsyncResult asyncResult) { return EndInvoke<ListConnectorEntitiesResponse>(asyncResult); } #endregion #region ListConnectors /// <summary> /// Returns the list of all registered custom connectors in your Amazon Web Services account. /// This API lists only custom connectors registered in this account, not the Amazon Web /// Services authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectors service method.</param> /// /// <returns>The response from the ListConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectors">REST API Reference for ListConnectors Operation</seealso> public virtual ListConnectorsResponse ListConnectors(ListConnectorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConnectorsResponseUnmarshaller.Instance; return Invoke<ListConnectorsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListConnectors operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListConnectors operation on AmazonAppflowClient.</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 EndListConnectors /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectors">REST API Reference for ListConnectors Operation</seealso> public virtual IAsyncResult BeginListConnectors(ListConnectorsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConnectorsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListConnectors operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListConnectors.</param> /// /// <returns>Returns a ListConnectorsResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectors">REST API Reference for ListConnectors Operation</seealso> public virtual ListConnectorsResponse EndListConnectors(IAsyncResult asyncResult) { return EndInvoke<ListConnectorsResponse>(asyncResult); } #endregion #region ListFlows /// <summary> /// Lists all of the flows associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFlows service method.</param> /// /// <returns>The response from the ListFlows service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows">REST API Reference for ListFlows Operation</seealso> public virtual ListFlowsResponse ListFlows(ListFlowsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFlowsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFlowsResponseUnmarshaller.Instance; return Invoke<ListFlowsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListFlows operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListFlows operation on AmazonAppflowClient.</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 EndListFlows /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows">REST API Reference for ListFlows Operation</seealso> public virtual IAsyncResult BeginListFlows(ListFlowsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListFlowsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFlowsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListFlows operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListFlows.</param> /// /// <returns>Returns a ListFlowsResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows">REST API Reference for ListFlows Operation</seealso> public virtual ListFlowsResponse EndListFlows(IAsyncResult asyncResult) { return EndInvoke<ListFlowsResponse>(asyncResult); } #endregion #region ListTagsForResource /// <summary> /// Retrieves the tags that are associated with a specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/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 AmazonAppflowClient.</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/appflow-2020-08-23/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 Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke<ListTagsForResourceResponse>(asyncResult); } #endregion #region RegisterConnector /// <summary> /// Registers a new custom connector with your Amazon Web Services account. Before you /// can register the connector, you must deploy the associated AWS lambda function in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterConnector service method.</param> /// /// <returns>The response from the RegisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/RegisterConnector">REST API Reference for RegisterConnector Operation</seealso> public virtual RegisterConnectorResponse RegisterConnector(RegisterConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterConnectorResponseUnmarshaller.Instance; return Invoke<RegisterConnectorResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the RegisterConnector operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RegisterConnector operation on AmazonAppflowClient.</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 EndRegisterConnector /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/RegisterConnector">REST API Reference for RegisterConnector Operation</seealso> public virtual IAsyncResult BeginRegisterConnector(RegisterConnectorRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterConnectorResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the RegisterConnector operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRegisterConnector.</param> /// /// <returns>Returns a RegisterConnectorResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/RegisterConnector">REST API Reference for RegisterConnector Operation</seealso> public virtual RegisterConnectorResponse EndRegisterConnector(IAsyncResult asyncResult) { return EndInvoke<RegisterConnectorResponse>(asyncResult); } #endregion #region ResetConnectorMetadataCache /// <summary> /// Resets metadata about your connector entities that Amazon AppFlow stored in its cache. /// Use this action when you want Amazon AppFlow to return the latest information about /// the data that you have in a source application. /// /// /// <para> /// Amazon AppFlow returns metadata about your entities when you use the ListConnectorEntities /// or DescribeConnectorEntities actions. Following these actions, Amazon AppFlow caches /// the metadata to reduce the number of API requests that it must send to the source /// application. Amazon AppFlow automatically resets the cache once every hour, but you /// can use this action when you want to get the latest metadata right away. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResetConnectorMetadataCache service method.</param> /// /// <returns>The response from the ResetConnectorMetadataCache service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ResetConnectorMetadataCache">REST API Reference for ResetConnectorMetadataCache Operation</seealso> public virtual ResetConnectorMetadataCacheResponse ResetConnectorMetadataCache(ResetConnectorMetadataCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ResetConnectorMetadataCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = ResetConnectorMetadataCacheResponseUnmarshaller.Instance; return Invoke<ResetConnectorMetadataCacheResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ResetConnectorMetadataCache operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ResetConnectorMetadataCache operation on AmazonAppflowClient.</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 EndResetConnectorMetadataCache /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ResetConnectorMetadataCache">REST API Reference for ResetConnectorMetadataCache Operation</seealso> public virtual IAsyncResult BeginResetConnectorMetadataCache(ResetConnectorMetadataCacheRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ResetConnectorMetadataCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = ResetConnectorMetadataCacheResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ResetConnectorMetadataCache operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginResetConnectorMetadataCache.</param> /// /// <returns>Returns a ResetConnectorMetadataCacheResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ResetConnectorMetadataCache">REST API Reference for ResetConnectorMetadataCache Operation</seealso> public virtual ResetConnectorMetadataCacheResponse EndResetConnectorMetadataCache(IAsyncResult asyncResult) { return EndInvoke<ResetConnectorMetadataCacheResponse>(asyncResult); } #endregion #region StartFlow /// <summary> /// Activates an existing flow. For on-demand flows, this operation runs the flow immediately. /// For schedule and event-triggered flows, this operation activates the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartFlow service method.</param> /// /// <returns>The response from the StartFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StartFlow">REST API Reference for StartFlow Operation</seealso> public virtual StartFlowResponse StartFlow(StartFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = StartFlowResponseUnmarshaller.Instance; return Invoke<StartFlowResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StartFlow operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartFlow operation on AmazonAppflowClient.</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 EndStartFlow /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StartFlow">REST API Reference for StartFlow Operation</seealso> public virtual IAsyncResult BeginStartFlow(StartFlowRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = StartFlowResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StartFlow operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartFlow.</param> /// /// <returns>Returns a StartFlowResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StartFlow">REST API Reference for StartFlow Operation</seealso> public virtual StartFlowResponse EndStartFlow(IAsyncResult asyncResult) { return EndInvoke<StartFlowResponse>(asyncResult); } #endregion #region StopFlow /// <summary> /// Deactivates the existing flow. For on-demand flows, this operation returns an <code>unsupportedOperationException</code> /// error message. For schedule and event-triggered flows, this operation deactivates /// the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopFlow service method.</param> /// /// <returns>The response from the StopFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.UnsupportedOperationException"> /// The requested operation is not supported for the current flow. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StopFlow">REST API Reference for StopFlow Operation</seealso> public virtual StopFlowResponse StopFlow(StopFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = StopFlowResponseUnmarshaller.Instance; return Invoke<StopFlowResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StopFlow operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StopFlow operation on AmazonAppflowClient.</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 EndStopFlow /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StopFlow">REST API Reference for StopFlow Operation</seealso> public virtual IAsyncResult BeginStopFlow(StopFlowRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = StopFlowResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StopFlow operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopFlow.</param> /// /// <returns>Returns a StopFlowResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StopFlow">REST API Reference for StopFlow Operation</seealso> public virtual StopFlowResponse EndStopFlow(IAsyncResult asyncResult) { return EndInvoke<StopFlowResponse>(asyncResult); } #endregion #region TagResource /// <summary> /// Applies a tag to the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/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 AmazonAppflowClient.</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/appflow-2020-08-23/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 Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke<TagResourceResponse>(asyncResult); } #endregion #region UnregisterConnector /// <summary> /// Unregisters the custom connector registered in your account that matches the connector /// label provided in the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UnregisterConnector service method.</param> /// /// <returns>The response from the UnregisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UnregisterConnector">REST API Reference for UnregisterConnector Operation</seealso> public virtual UnregisterConnectorResponse UnregisterConnector(UnregisterConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UnregisterConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = UnregisterConnectorResponseUnmarshaller.Instance; return Invoke<UnregisterConnectorResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UnregisterConnector operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UnregisterConnector operation on AmazonAppflowClient.</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 EndUnregisterConnector /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UnregisterConnector">REST API Reference for UnregisterConnector Operation</seealso> public virtual IAsyncResult BeginUnregisterConnector(UnregisterConnectorRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UnregisterConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = UnregisterConnectorResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UnregisterConnector operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUnregisterConnector.</param> /// /// <returns>Returns a UnregisterConnectorResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UnregisterConnector">REST API Reference for UnregisterConnector Operation</seealso> public virtual UnregisterConnectorResponse EndUnregisterConnector(IAsyncResult asyncResult) { return EndInvoke<UnregisterConnectorResponse>(asyncResult); } #endregion #region UntagResource /// <summary> /// Removes a tag from the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/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 AmazonAppflowClient.</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/appflow-2020-08-23/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 Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke<UntagResourceResponse>(asyncResult); } #endregion #region UpdateConnectorProfile /// <summary> /// Updates a given connector profile associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorProfile service method.</param> /// /// <returns>The response from the UpdateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorProfile">REST API Reference for UpdateConnectorProfile Operation</seealso> public virtual UpdateConnectorProfileResponse UpdateConnectorProfile(UpdateConnectorProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateConnectorProfileResponseUnmarshaller.Instance; return Invoke<UpdateConnectorProfileResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateConnectorProfile operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorProfile operation on AmazonAppflowClient.</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 EndUpdateConnectorProfile /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorProfile">REST API Reference for UpdateConnectorProfile Operation</seealso> public virtual IAsyncResult BeginUpdateConnectorProfile(UpdateConnectorProfileRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateConnectorProfileResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateConnectorProfile operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateConnectorProfile.</param> /// /// <returns>Returns a UpdateConnectorProfileResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorProfile">REST API Reference for UpdateConnectorProfile Operation</seealso> public virtual UpdateConnectorProfileResponse EndUpdateConnectorProfile(IAsyncResult asyncResult) { return EndInvoke<UpdateConnectorProfileResponse>(asyncResult); } #endregion #region UpdateConnectorRegistration /// <summary> /// Updates a custom connector that you've previously registered. This operation updates /// the connector with one of the following: /// /// <ul> <li> /// <para> /// The latest version of the AWS Lambda function that's assigned to the connector /// </para> /// </li> <li> /// <para> /// A new AWS Lambda function that you specify /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorRegistration service method.</param> /// /// <returns>The response from the UpdateConnectorRegistration service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorRegistration">REST API Reference for UpdateConnectorRegistration Operation</seealso> public virtual UpdateConnectorRegistrationResponse UpdateConnectorRegistration(UpdateConnectorRegistrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateConnectorRegistrationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateConnectorRegistrationResponseUnmarshaller.Instance; return Invoke<UpdateConnectorRegistrationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateConnectorRegistration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorRegistration operation on AmazonAppflowClient.</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 EndUpdateConnectorRegistration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorRegistration">REST API Reference for UpdateConnectorRegistration Operation</seealso> public virtual IAsyncResult BeginUpdateConnectorRegistration(UpdateConnectorRegistrationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateConnectorRegistrationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateConnectorRegistrationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateConnectorRegistration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateConnectorRegistration.</param> /// /// <returns>Returns a UpdateConnectorRegistrationResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorRegistration">REST API Reference for UpdateConnectorRegistration Operation</seealso> public virtual UpdateConnectorRegistrationResponse EndUpdateConnectorRegistration(IAsyncResult asyncResult) { return EndInvoke<UpdateConnectorRegistrationResponse>(asyncResult); } #endregion #region UpdateFlow /// <summary> /// Updates an existing flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFlow service method.</param> /// /// <returns>The response from the UpdateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateFlow">REST API Reference for UpdateFlow Operation</seealso> public virtual UpdateFlowResponse UpdateFlow(UpdateFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFlowResponseUnmarshaller.Instance; return Invoke<UpdateFlowResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateFlow operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateFlow operation on AmazonAppflowClient.</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 EndUpdateFlow /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateFlow">REST API Reference for UpdateFlow Operation</seealso> public virtual IAsyncResult BeginUpdateFlow(UpdateFlowRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFlowResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateFlow operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateFlow.</param> /// /// <returns>Returns a UpdateFlowResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateFlow">REST API Reference for UpdateFlow Operation</seealso> public virtual UpdateFlowResponse EndUpdateFlow(IAsyncResult asyncResult) { return EndInvoke<UpdateFlowResponse>(asyncResult); } #endregion } }
2,136
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Appflow.Model; namespace Amazon.Appflow { /// <summary> /// Interface for accessing Appflow /// /// Welcome to the Amazon AppFlow API reference. This guide is for developers who need /// detailed information about the Amazon AppFlow API operations, data types, and errors. /// /// /// /// <para> /// Amazon AppFlow is a fully managed integration service that enables you to securely /// transfer data between software as a service (SaaS) applications like Salesforce, Marketo, /// Slack, and ServiceNow, and Amazon Web Services like Amazon S3 and Amazon Redshift. /// /// </para> /// /// <para> /// Use the following links to get started on the Amazon AppFlow API: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Operations.html">Actions</a>: /// An alphabetical list of all Amazon AppFlow API operations. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Types.html">Data /// types</a>: An alphabetical list of all Amazon AppFlow data types. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonParameters.html">Common /// parameters</a>: Parameters that all Query operations can use. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonErrors.html">Common /// errors</a>: Client and server errors that all operations can return. /// </para> /// </li> </ul> /// <para> /// If you're new to Amazon AppFlow, we recommend that you review the <a href="https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html">Amazon /// AppFlow User Guide</a>. /// </para> /// /// <para> /// Amazon AppFlow API users can use vendor-specific mechanisms for OAuth, and include /// applicable OAuth attributes (such as <code>auth-code</code> and <code>redirecturi</code>) /// with the connector-specific <code>ConnectorProfileProperties</code> when creating /// a new connector profile using Amazon AppFlow API operations. For example, Salesforce /// users can refer to the <a href="https://help.salesforce.com/articleView?id=remoteaccess_authenticate.htm"> /// <i>Authorize Apps with OAuth</i> </a> documentation. /// </para> /// </summary> public partial interface IAmazonAppflow : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IAppflowPaginatorFactory Paginators { get; } #endif #region CancelFlowExecutions /// <summary> /// Cancels active runs for a flow. /// /// /// <para> /// You can cancel all of the active runs for a flow, or you can cancel specific runs /// by providing their IDs. /// </para> /// /// <para> /// You can cancel a flow run only when the run is in progress. You can't cancel a run /// that has already completed or failed. You also can't cancel a run that's scheduled /// to occur but hasn't started yet. To prevent a scheduled run, you can deactivate the /// flow with the <code>StopFlow</code> action. /// </para> /// /// <para> /// You cannot resume a run after you cancel it. /// </para> /// /// <para> /// When you send your request, the status for each run becomes <code>CancelStarted</code>. /// When the cancellation completes, the status becomes <code>Canceled</code>. /// </para> /// <note> /// <para> /// When you cancel a run, you still incur charges for any data that the run already processed /// before the cancellation. If the run had already written some data to the flow destination, /// then that data remains in the destination. If you configured the flow to use a batch /// API (such as the Salesforce Bulk API 2.0), then the run will finish reading or writing /// its entire batch of data after the cancellation. For these operations, the data processing /// charges for Amazon AppFlow apply. For the pricing information, see <a href="http://aws.amazon.com/appflow/pricing/">Amazon /// AppFlow pricing</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelFlowExecutions service method.</param> /// /// <returns>The response from the CancelFlowExecutions service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CancelFlowExecutions">REST API Reference for CancelFlowExecutions Operation</seealso> CancelFlowExecutionsResponse CancelFlowExecutions(CancelFlowExecutionsRequest request); /// <summary> /// Initiates the asynchronous execution of the CancelFlowExecutions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelFlowExecutions operation on AmazonAppflowClient.</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 EndCancelFlowExecutions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CancelFlowExecutions">REST API Reference for CancelFlowExecutions Operation</seealso> IAsyncResult BeginCancelFlowExecutions(CancelFlowExecutionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CancelFlowExecutions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelFlowExecutions.</param> /// /// <returns>Returns a CancelFlowExecutionsResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CancelFlowExecutions">REST API Reference for CancelFlowExecutions Operation</seealso> CancelFlowExecutionsResponse EndCancelFlowExecutions(IAsyncResult asyncResult); #endregion #region CreateConnectorProfile /// <summary> /// Creates a new connector profile associated with your Amazon Web Services account. /// There is a soft quota of 100 connector profiles per Amazon Web Services account. If /// you need more connector profiles than this quota allows, you can submit a request /// to the Amazon AppFlow team through the Amazon AppFlow support channel. In each connector /// profile that you create, you can provide the credentials and properties for only one /// connector. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateConnectorProfile service method.</param> /// /// <returns>The response from the CreateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateConnectorProfile">REST API Reference for CreateConnectorProfile Operation</seealso> CreateConnectorProfileResponse CreateConnectorProfile(CreateConnectorProfileRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateConnectorProfile operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateConnectorProfile operation on AmazonAppflowClient.</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 EndCreateConnectorProfile /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateConnectorProfile">REST API Reference for CreateConnectorProfile Operation</seealso> IAsyncResult BeginCreateConnectorProfile(CreateConnectorProfileRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateConnectorProfile operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateConnectorProfile.</param> /// /// <returns>Returns a CreateConnectorProfileResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateConnectorProfile">REST API Reference for CreateConnectorProfile Operation</seealso> CreateConnectorProfileResponse EndCreateConnectorProfile(IAsyncResult asyncResult); #endregion #region CreateFlow /// <summary> /// Enables your application to create a new flow using Amazon AppFlow. You must create /// a connector profile before calling this API. Please note that the Request Syntax below /// shows syntax for multiple destinations, however, you can only transfer data to one /// item in this list at a time. Amazon AppFlow does not currently support flows to multiple /// destinations at once. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFlow service method.</param> /// /// <returns>The response from the CreateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateFlow">REST API Reference for CreateFlow Operation</seealso> CreateFlowResponse CreateFlow(CreateFlowRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateFlow operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateFlow operation on AmazonAppflowClient.</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 EndCreateFlow /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateFlow">REST API Reference for CreateFlow Operation</seealso> IAsyncResult BeginCreateFlow(CreateFlowRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateFlow operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateFlow.</param> /// /// <returns>Returns a CreateFlowResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateFlow">REST API Reference for CreateFlow Operation</seealso> CreateFlowResponse EndCreateFlow(IAsyncResult asyncResult); #endregion #region DeleteConnectorProfile /// <summary> /// Enables you to delete an existing connector profile. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteConnectorProfile service method.</param> /// /// <returns>The response from the DeleteConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteConnectorProfile">REST API Reference for DeleteConnectorProfile Operation</seealso> DeleteConnectorProfileResponse DeleteConnectorProfile(DeleteConnectorProfileRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteConnectorProfile operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteConnectorProfile operation on AmazonAppflowClient.</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 EndDeleteConnectorProfile /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteConnectorProfile">REST API Reference for DeleteConnectorProfile Operation</seealso> IAsyncResult BeginDeleteConnectorProfile(DeleteConnectorProfileRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteConnectorProfile operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteConnectorProfile.</param> /// /// <returns>Returns a DeleteConnectorProfileResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteConnectorProfile">REST API Reference for DeleteConnectorProfile Operation</seealso> DeleteConnectorProfileResponse EndDeleteConnectorProfile(IAsyncResult asyncResult); #endregion #region DeleteFlow /// <summary> /// Enables your application to delete an existing flow. Before deleting the flow, Amazon /// AppFlow validates the request by checking the flow configuration and status. You can /// delete flows one at a time. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFlow service method.</param> /// /// <returns>The response from the DeleteFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteFlow">REST API Reference for DeleteFlow Operation</seealso> DeleteFlowResponse DeleteFlow(DeleteFlowRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteFlow operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteFlow operation on AmazonAppflowClient.</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 EndDeleteFlow /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteFlow">REST API Reference for DeleteFlow Operation</seealso> IAsyncResult BeginDeleteFlow(DeleteFlowRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteFlow operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteFlow.</param> /// /// <returns>Returns a DeleteFlowResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteFlow">REST API Reference for DeleteFlow Operation</seealso> DeleteFlowResponse EndDeleteFlow(IAsyncResult asyncResult); #endregion #region DescribeConnector /// <summary> /// Describes the given custom connector registered in your Amazon Web Services account. /// This API can be used for custom connectors that are registered in your account and /// also for Amazon authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnector service method.</param> /// /// <returns>The response from the DescribeConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnector">REST API Reference for DescribeConnector Operation</seealso> DescribeConnectorResponse DescribeConnector(DescribeConnectorRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeConnector operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeConnector operation on AmazonAppflowClient.</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 EndDescribeConnector /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnector">REST API Reference for DescribeConnector Operation</seealso> IAsyncResult BeginDescribeConnector(DescribeConnectorRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeConnector operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeConnector.</param> /// /// <returns>Returns a DescribeConnectorResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnector">REST API Reference for DescribeConnector Operation</seealso> DescribeConnectorResponse EndDescribeConnector(IAsyncResult asyncResult); #endregion #region DescribeConnectorEntity /// <summary> /// Provides details regarding the entity used with the connector, with a description /// of the data model for each field in that entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorEntity service method.</param> /// /// <returns>The response from the DescribeConnectorEntity service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorEntity">REST API Reference for DescribeConnectorEntity Operation</seealso> DescribeConnectorEntityResponse DescribeConnectorEntity(DescribeConnectorEntityRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeConnectorEntity operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorEntity operation on AmazonAppflowClient.</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 EndDescribeConnectorEntity /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorEntity">REST API Reference for DescribeConnectorEntity Operation</seealso> IAsyncResult BeginDescribeConnectorEntity(DescribeConnectorEntityRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeConnectorEntity operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeConnectorEntity.</param> /// /// <returns>Returns a DescribeConnectorEntityResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorEntity">REST API Reference for DescribeConnectorEntity Operation</seealso> DescribeConnectorEntityResponse EndDescribeConnectorEntity(IAsyncResult asyncResult); #endregion #region DescribeConnectorProfiles /// <summary> /// Returns a list of <code>connector-profile</code> details matching the provided <code>connector-profile</code> /// names and <code>connector-types</code>. Both input lists are optional, and you can /// use them to filter the result. /// /// /// <para> /// If no names or <code>connector-types</code> are provided, returns all connector profiles /// in a paginated form. If there is no match, this operation returns an empty list. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorProfiles service method.</param> /// /// <returns>The response from the DescribeConnectorProfiles service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorProfiles">REST API Reference for DescribeConnectorProfiles Operation</seealso> DescribeConnectorProfilesResponse DescribeConnectorProfiles(DescribeConnectorProfilesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeConnectorProfiles operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorProfiles operation on AmazonAppflowClient.</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 EndDescribeConnectorProfiles /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorProfiles">REST API Reference for DescribeConnectorProfiles Operation</seealso> IAsyncResult BeginDescribeConnectorProfiles(DescribeConnectorProfilesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeConnectorProfiles operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeConnectorProfiles.</param> /// /// <returns>Returns a DescribeConnectorProfilesResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorProfiles">REST API Reference for DescribeConnectorProfiles Operation</seealso> DescribeConnectorProfilesResponse EndDescribeConnectorProfiles(IAsyncResult asyncResult); #endregion #region DescribeConnectors /// <summary> /// Describes the connectors vended by Amazon AppFlow for specified connector types. /// If you don't specify a connector type, this operation describes all connectors vended /// by Amazon AppFlow. If there are more connectors than can be returned in one page, /// the response contains a <code>nextToken</code> object, which can be be passed in to /// the next call to the <code>DescribeConnectors</code> API operation to retrieve the /// next page. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectors service method.</param> /// /// <returns>The response from the DescribeConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectors">REST API Reference for DescribeConnectors Operation</seealso> DescribeConnectorsResponse DescribeConnectors(DescribeConnectorsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeConnectors operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeConnectors operation on AmazonAppflowClient.</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 EndDescribeConnectors /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectors">REST API Reference for DescribeConnectors Operation</seealso> IAsyncResult BeginDescribeConnectors(DescribeConnectorsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeConnectors operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeConnectors.</param> /// /// <returns>Returns a DescribeConnectorsResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectors">REST API Reference for DescribeConnectors Operation</seealso> DescribeConnectorsResponse EndDescribeConnectors(IAsyncResult asyncResult); #endregion #region DescribeFlow /// <summary> /// Provides a description of the specified flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlow service method.</param> /// /// <returns>The response from the DescribeFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow">REST API Reference for DescribeFlow Operation</seealso> DescribeFlowResponse DescribeFlow(DescribeFlowRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeFlow operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeFlow operation on AmazonAppflowClient.</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 EndDescribeFlow /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow">REST API Reference for DescribeFlow Operation</seealso> IAsyncResult BeginDescribeFlow(DescribeFlowRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeFlow operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeFlow.</param> /// /// <returns>Returns a DescribeFlowResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow">REST API Reference for DescribeFlow Operation</seealso> DescribeFlowResponse EndDescribeFlow(IAsyncResult asyncResult); #endregion #region DescribeFlowExecutionRecords /// <summary> /// Fetches the execution history of the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlowExecutionRecords service method.</param> /// /// <returns>The response from the DescribeFlowExecutionRecords service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords">REST API Reference for DescribeFlowExecutionRecords Operation</seealso> DescribeFlowExecutionRecordsResponse DescribeFlowExecutionRecords(DescribeFlowExecutionRecordsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeFlowExecutionRecords operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeFlowExecutionRecords operation on AmazonAppflowClient.</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 EndDescribeFlowExecutionRecords /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords">REST API Reference for DescribeFlowExecutionRecords Operation</seealso> IAsyncResult BeginDescribeFlowExecutionRecords(DescribeFlowExecutionRecordsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeFlowExecutionRecords operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeFlowExecutionRecords.</param> /// /// <returns>Returns a DescribeFlowExecutionRecordsResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords">REST API Reference for DescribeFlowExecutionRecords Operation</seealso> DescribeFlowExecutionRecordsResponse EndDescribeFlowExecutionRecords(IAsyncResult asyncResult); #endregion #region ListConnectorEntities /// <summary> /// Returns the list of available connector entities supported by Amazon AppFlow. For /// example, you can query Salesforce for <i>Account</i> and <i>Opportunity</i> entities, /// or query ServiceNow for the <i>Incident</i> entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectorEntities service method.</param> /// /// <returns>The response from the ListConnectorEntities service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectorEntities">REST API Reference for ListConnectorEntities Operation</seealso> ListConnectorEntitiesResponse ListConnectorEntities(ListConnectorEntitiesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListConnectorEntities operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListConnectorEntities operation on AmazonAppflowClient.</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 EndListConnectorEntities /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectorEntities">REST API Reference for ListConnectorEntities Operation</seealso> IAsyncResult BeginListConnectorEntities(ListConnectorEntitiesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListConnectorEntities operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListConnectorEntities.</param> /// /// <returns>Returns a ListConnectorEntitiesResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectorEntities">REST API Reference for ListConnectorEntities Operation</seealso> ListConnectorEntitiesResponse EndListConnectorEntities(IAsyncResult asyncResult); #endregion #region ListConnectors /// <summary> /// Returns the list of all registered custom connectors in your Amazon Web Services account. /// This API lists only custom connectors registered in this account, not the Amazon Web /// Services authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectors service method.</param> /// /// <returns>The response from the ListConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectors">REST API Reference for ListConnectors Operation</seealso> ListConnectorsResponse ListConnectors(ListConnectorsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListConnectors operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListConnectors operation on AmazonAppflowClient.</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 EndListConnectors /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectors">REST API Reference for ListConnectors Operation</seealso> IAsyncResult BeginListConnectors(ListConnectorsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListConnectors operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListConnectors.</param> /// /// <returns>Returns a ListConnectorsResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectors">REST API Reference for ListConnectors Operation</seealso> ListConnectorsResponse EndListConnectors(IAsyncResult asyncResult); #endregion #region ListFlows /// <summary> /// Lists all of the flows associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFlows service method.</param> /// /// <returns>The response from the ListFlows service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows">REST API Reference for ListFlows Operation</seealso> ListFlowsResponse ListFlows(ListFlowsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListFlows operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListFlows operation on AmazonAppflowClient.</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 EndListFlows /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows">REST API Reference for ListFlows Operation</seealso> IAsyncResult BeginListFlows(ListFlowsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListFlows operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListFlows.</param> /// /// <returns>Returns a ListFlowsResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows">REST API Reference for ListFlows Operation</seealso> ListFlowsResponse EndListFlows(IAsyncResult asyncResult); #endregion #region ListTagsForResource /// <summary> /// Retrieves the tags that are associated with a specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/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 AmazonAppflowClient.</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/appflow-2020-08-23/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 Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult); #endregion #region RegisterConnector /// <summary> /// Registers a new custom connector with your Amazon Web Services account. Before you /// can register the connector, you must deploy the associated AWS lambda function in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterConnector service method.</param> /// /// <returns>The response from the RegisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/RegisterConnector">REST API Reference for RegisterConnector Operation</seealso> RegisterConnectorResponse RegisterConnector(RegisterConnectorRequest request); /// <summary> /// Initiates the asynchronous execution of the RegisterConnector operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RegisterConnector operation on AmazonAppflowClient.</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 EndRegisterConnector /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/RegisterConnector">REST API Reference for RegisterConnector Operation</seealso> IAsyncResult BeginRegisterConnector(RegisterConnectorRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the RegisterConnector operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRegisterConnector.</param> /// /// <returns>Returns a RegisterConnectorResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/RegisterConnector">REST API Reference for RegisterConnector Operation</seealso> RegisterConnectorResponse EndRegisterConnector(IAsyncResult asyncResult); #endregion #region ResetConnectorMetadataCache /// <summary> /// Resets metadata about your connector entities that Amazon AppFlow stored in its cache. /// Use this action when you want Amazon AppFlow to return the latest information about /// the data that you have in a source application. /// /// /// <para> /// Amazon AppFlow returns metadata about your entities when you use the ListConnectorEntities /// or DescribeConnectorEntities actions. Following these actions, Amazon AppFlow caches /// the metadata to reduce the number of API requests that it must send to the source /// application. Amazon AppFlow automatically resets the cache once every hour, but you /// can use this action when you want to get the latest metadata right away. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResetConnectorMetadataCache service method.</param> /// /// <returns>The response from the ResetConnectorMetadataCache service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ResetConnectorMetadataCache">REST API Reference for ResetConnectorMetadataCache Operation</seealso> ResetConnectorMetadataCacheResponse ResetConnectorMetadataCache(ResetConnectorMetadataCacheRequest request); /// <summary> /// Initiates the asynchronous execution of the ResetConnectorMetadataCache operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ResetConnectorMetadataCache operation on AmazonAppflowClient.</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 EndResetConnectorMetadataCache /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ResetConnectorMetadataCache">REST API Reference for ResetConnectorMetadataCache Operation</seealso> IAsyncResult BeginResetConnectorMetadataCache(ResetConnectorMetadataCacheRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ResetConnectorMetadataCache operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginResetConnectorMetadataCache.</param> /// /// <returns>Returns a ResetConnectorMetadataCacheResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ResetConnectorMetadataCache">REST API Reference for ResetConnectorMetadataCache Operation</seealso> ResetConnectorMetadataCacheResponse EndResetConnectorMetadataCache(IAsyncResult asyncResult); #endregion #region StartFlow /// <summary> /// Activates an existing flow. For on-demand flows, this operation runs the flow immediately. /// For schedule and event-triggered flows, this operation activates the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartFlow service method.</param> /// /// <returns>The response from the StartFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StartFlow">REST API Reference for StartFlow Operation</seealso> StartFlowResponse StartFlow(StartFlowRequest request); /// <summary> /// Initiates the asynchronous execution of the StartFlow operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartFlow operation on AmazonAppflowClient.</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 EndStartFlow /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StartFlow">REST API Reference for StartFlow Operation</seealso> IAsyncResult BeginStartFlow(StartFlowRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the StartFlow operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartFlow.</param> /// /// <returns>Returns a StartFlowResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StartFlow">REST API Reference for StartFlow Operation</seealso> StartFlowResponse EndStartFlow(IAsyncResult asyncResult); #endregion #region StopFlow /// <summary> /// Deactivates the existing flow. For on-demand flows, this operation returns an <code>unsupportedOperationException</code> /// error message. For schedule and event-triggered flows, this operation deactivates /// the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopFlow service method.</param> /// /// <returns>The response from the StopFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.UnsupportedOperationException"> /// The requested operation is not supported for the current flow. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StopFlow">REST API Reference for StopFlow Operation</seealso> StopFlowResponse StopFlow(StopFlowRequest request); /// <summary> /// Initiates the asynchronous execution of the StopFlow operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StopFlow operation on AmazonAppflowClient.</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 EndStopFlow /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StopFlow">REST API Reference for StopFlow Operation</seealso> IAsyncResult BeginStopFlow(StopFlowRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the StopFlow operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopFlow.</param> /// /// <returns>Returns a StopFlowResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StopFlow">REST API Reference for StopFlow Operation</seealso> StopFlowResponse EndStopFlow(IAsyncResult asyncResult); #endregion #region TagResource /// <summary> /// Applies a tag to the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/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 AmazonAppflowClient.</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/appflow-2020-08-23/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 Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse EndTagResource(IAsyncResult asyncResult); #endregion #region UnregisterConnector /// <summary> /// Unregisters the custom connector registered in your account that matches the connector /// label provided in the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UnregisterConnector service method.</param> /// /// <returns>The response from the UnregisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UnregisterConnector">REST API Reference for UnregisterConnector Operation</seealso> UnregisterConnectorResponse UnregisterConnector(UnregisterConnectorRequest request); /// <summary> /// Initiates the asynchronous execution of the UnregisterConnector operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UnregisterConnector operation on AmazonAppflowClient.</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 EndUnregisterConnector /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UnregisterConnector">REST API Reference for UnregisterConnector Operation</seealso> IAsyncResult BeginUnregisterConnector(UnregisterConnectorRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UnregisterConnector operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUnregisterConnector.</param> /// /// <returns>Returns a UnregisterConnectorResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UnregisterConnector">REST API Reference for UnregisterConnector Operation</seealso> UnregisterConnectorResponse EndUnregisterConnector(IAsyncResult asyncResult); #endregion #region UntagResource /// <summary> /// Removes a tag from the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/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 AmazonAppflowClient.</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/appflow-2020-08-23/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 Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse EndUntagResource(IAsyncResult asyncResult); #endregion #region UpdateConnectorProfile /// <summary> /// Updates a given connector profile associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorProfile service method.</param> /// /// <returns>The response from the UpdateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorProfile">REST API Reference for UpdateConnectorProfile Operation</seealso> UpdateConnectorProfileResponse UpdateConnectorProfile(UpdateConnectorProfileRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateConnectorProfile operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorProfile operation on AmazonAppflowClient.</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 EndUpdateConnectorProfile /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorProfile">REST API Reference for UpdateConnectorProfile Operation</seealso> IAsyncResult BeginUpdateConnectorProfile(UpdateConnectorProfileRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateConnectorProfile operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateConnectorProfile.</param> /// /// <returns>Returns a UpdateConnectorProfileResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorProfile">REST API Reference for UpdateConnectorProfile Operation</seealso> UpdateConnectorProfileResponse EndUpdateConnectorProfile(IAsyncResult asyncResult); #endregion #region UpdateConnectorRegistration /// <summary> /// Updates a custom connector that you've previously registered. This operation updates /// the connector with one of the following: /// /// <ul> <li> /// <para> /// The latest version of the AWS Lambda function that's assigned to the connector /// </para> /// </li> <li> /// <para> /// A new AWS Lambda function that you specify /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorRegistration service method.</param> /// /// <returns>The response from the UpdateConnectorRegistration service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorRegistration">REST API Reference for UpdateConnectorRegistration Operation</seealso> UpdateConnectorRegistrationResponse UpdateConnectorRegistration(UpdateConnectorRegistrationRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateConnectorRegistration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorRegistration operation on AmazonAppflowClient.</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 EndUpdateConnectorRegistration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorRegistration">REST API Reference for UpdateConnectorRegistration Operation</seealso> IAsyncResult BeginUpdateConnectorRegistration(UpdateConnectorRegistrationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateConnectorRegistration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateConnectorRegistration.</param> /// /// <returns>Returns a UpdateConnectorRegistrationResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorRegistration">REST API Reference for UpdateConnectorRegistration Operation</seealso> UpdateConnectorRegistrationResponse EndUpdateConnectorRegistration(IAsyncResult asyncResult); #endregion #region UpdateFlow /// <summary> /// Updates an existing flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFlow service method.</param> /// /// <returns>The response from the UpdateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateFlow">REST API Reference for UpdateFlow Operation</seealso> UpdateFlowResponse UpdateFlow(UpdateFlowRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateFlow operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateFlow operation on AmazonAppflowClient.</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 EndUpdateFlow /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateFlow">REST API Reference for UpdateFlow Operation</seealso> IAsyncResult BeginUpdateFlow(UpdateFlowRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateFlow operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateFlow.</param> /// /// <returns>Returns a UpdateFlowResult from Appflow.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateFlow">REST API Reference for UpdateFlow Operation</seealso> UpdateFlowResponse EndUpdateFlow(IAsyncResult asyncResult); #endregion } }
1,566
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Appflow.Model.Internal.MarshallTransformations; using Amazon.Appflow.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Appflow { /// <summary> /// Implementation for accessing Appflow /// /// Welcome to the Amazon AppFlow API reference. This guide is for developers who need /// detailed information about the Amazon AppFlow API operations, data types, and errors. /// /// /// /// <para> /// Amazon AppFlow is a fully managed integration service that enables you to securely /// transfer data between software as a service (SaaS) applications like Salesforce, Marketo, /// Slack, and ServiceNow, and Amazon Web Services like Amazon S3 and Amazon Redshift. /// /// </para> /// /// <para> /// Use the following links to get started on the Amazon AppFlow API: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Operations.html">Actions</a>: /// An alphabetical list of all Amazon AppFlow API operations. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Types.html">Data /// types</a>: An alphabetical list of all Amazon AppFlow data types. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonParameters.html">Common /// parameters</a>: Parameters that all Query operations can use. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonErrors.html">Common /// errors</a>: Client and server errors that all operations can return. /// </para> /// </li> </ul> /// <para> /// If you're new to Amazon AppFlow, we recommend that you review the <a href="https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html">Amazon /// AppFlow User Guide</a>. /// </para> /// /// <para> /// Amazon AppFlow API users can use vendor-specific mechanisms for OAuth, and include /// applicable OAuth attributes (such as <code>auth-code</code> and <code>redirecturi</code>) /// with the connector-specific <code>ConnectorProfileProperties</code> when creating /// a new connector profile using Amazon AppFlow API operations. For example, Salesforce /// users can refer to the <a href="https://help.salesforce.com/articleView?id=remoteaccess_authenticate.htm"> /// <i>Authorize Apps with OAuth</i> </a> documentation. /// </para> /// </summary> public partial class AmazonAppflowClient : AmazonServiceClient, IAmazonAppflow { private static IServiceMetadata serviceMetadata = new AmazonAppflowMetadata(); private IAppflowPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IAppflowPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new AppflowPaginatorFactory(this); } return this._paginators; } } #region Constructors /// <summary> /// Constructs AmazonAppflowClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonAppflowClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppflowConfig()) { } /// <summary> /// Constructs AmazonAppflowClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonAppflowClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppflowConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppflowClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonAppflowClient Configuration Object</param> public AmazonAppflowClient(AmazonAppflowConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonAppflowClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAppflowClient(AWSCredentials credentials) : this(credentials, new AmazonAppflowConfig()) { } /// <summary> /// Constructs AmazonAppflowClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAppflowClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAppflowConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppflowClient with AWS Credentials and an /// AmazonAppflowClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAppflowClient Configuration Object</param> public AmazonAppflowClient(AWSCredentials credentials, AmazonAppflowConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAppflowClient 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 AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppflowConfig()) { } /// <summary> /// Constructs AmazonAppflowClient 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 AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppflowConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAppflowClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppflowClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAppflowClient Configuration Object</param> public AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAppflowConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAppflowClient 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 AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppflowConfig()) { } /// <summary> /// Constructs AmazonAppflowClient 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 AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppflowConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppflowClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppflowClient 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 AmazonAppflowClient Configuration Object</param> public AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAppflowConfig 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 AmazonAppflowEndpointResolver()); } /// <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 CancelFlowExecutions /// <summary> /// Cancels active runs for a flow. /// /// /// <para> /// You can cancel all of the active runs for a flow, or you can cancel specific runs /// by providing their IDs. /// </para> /// /// <para> /// You can cancel a flow run only when the run is in progress. You can't cancel a run /// that has already completed or failed. You also can't cancel a run that's scheduled /// to occur but hasn't started yet. To prevent a scheduled run, you can deactivate the /// flow with the <code>StopFlow</code> action. /// </para> /// /// <para> /// You cannot resume a run after you cancel it. /// </para> /// /// <para> /// When you send your request, the status for each run becomes <code>CancelStarted</code>. /// When the cancellation completes, the status becomes <code>Canceled</code>. /// </para> /// <note> /// <para> /// When you cancel a run, you still incur charges for any data that the run already processed /// before the cancellation. If the run had already written some data to the flow destination, /// then that data remains in the destination. If you configured the flow to use a batch /// API (such as the Salesforce Bulk API 2.0), then the run will finish reading or writing /// its entire batch of data after the cancellation. For these operations, the data processing /// charges for Amazon AppFlow apply. For the pricing information, see <a href="http://aws.amazon.com/appflow/pricing/">Amazon /// AppFlow pricing</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelFlowExecutions service method.</param> /// /// <returns>The response from the CancelFlowExecutions service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CancelFlowExecutions">REST API Reference for CancelFlowExecutions Operation</seealso> public virtual CancelFlowExecutionsResponse CancelFlowExecutions(CancelFlowExecutionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelFlowExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelFlowExecutionsResponseUnmarshaller.Instance; return Invoke<CancelFlowExecutionsResponse>(request, options); } /// <summary> /// Cancels active runs for a flow. /// /// /// <para> /// You can cancel all of the active runs for a flow, or you can cancel specific runs /// by providing their IDs. /// </para> /// /// <para> /// You can cancel a flow run only when the run is in progress. You can't cancel a run /// that has already completed or failed. You also can't cancel a run that's scheduled /// to occur but hasn't started yet. To prevent a scheduled run, you can deactivate the /// flow with the <code>StopFlow</code> action. /// </para> /// /// <para> /// You cannot resume a run after you cancel it. /// </para> /// /// <para> /// When you send your request, the status for each run becomes <code>CancelStarted</code>. /// When the cancellation completes, the status becomes <code>Canceled</code>. /// </para> /// <note> /// <para> /// When you cancel a run, you still incur charges for any data that the run already processed /// before the cancellation. If the run had already written some data to the flow destination, /// then that data remains in the destination. If you configured the flow to use a batch /// API (such as the Salesforce Bulk API 2.0), then the run will finish reading or writing /// its entire batch of data after the cancellation. For these operations, the data processing /// charges for Amazon AppFlow apply. For the pricing information, see <a href="http://aws.amazon.com/appflow/pricing/">Amazon /// AppFlow pricing</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelFlowExecutions 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 CancelFlowExecutions service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CancelFlowExecutions">REST API Reference for CancelFlowExecutions Operation</seealso> public virtual Task<CancelFlowExecutionsResponse> CancelFlowExecutionsAsync(CancelFlowExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelFlowExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelFlowExecutionsResponseUnmarshaller.Instance; return InvokeAsync<CancelFlowExecutionsResponse>(request, options, cancellationToken); } #endregion #region CreateConnectorProfile /// <summary> /// Creates a new connector profile associated with your Amazon Web Services account. /// There is a soft quota of 100 connector profiles per Amazon Web Services account. If /// you need more connector profiles than this quota allows, you can submit a request /// to the Amazon AppFlow team through the Amazon AppFlow support channel. In each connector /// profile that you create, you can provide the credentials and properties for only one /// connector. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateConnectorProfile service method.</param> /// /// <returns>The response from the CreateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateConnectorProfile">REST API Reference for CreateConnectorProfile Operation</seealso> public virtual CreateConnectorProfileResponse CreateConnectorProfile(CreateConnectorProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateConnectorProfileResponseUnmarshaller.Instance; return Invoke<CreateConnectorProfileResponse>(request, options); } /// <summary> /// Creates a new connector profile associated with your Amazon Web Services account. /// There is a soft quota of 100 connector profiles per Amazon Web Services account. If /// you need more connector profiles than this quota allows, you can submit a request /// to the Amazon AppFlow team through the Amazon AppFlow support channel. In each connector /// profile that you create, you can provide the credentials and properties for only one /// connector. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateConnectorProfile 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 CreateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateConnectorProfile">REST API Reference for CreateConnectorProfile Operation</seealso> public virtual Task<CreateConnectorProfileResponse> CreateConnectorProfileAsync(CreateConnectorProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateConnectorProfileResponseUnmarshaller.Instance; return InvokeAsync<CreateConnectorProfileResponse>(request, options, cancellationToken); } #endregion #region CreateFlow /// <summary> /// Enables your application to create a new flow using Amazon AppFlow. You must create /// a connector profile before calling this API. Please note that the Request Syntax below /// shows syntax for multiple destinations, however, you can only transfer data to one /// item in this list at a time. Amazon AppFlow does not currently support flows to multiple /// destinations at once. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFlow service method.</param> /// /// <returns>The response from the CreateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateFlow">REST API Reference for CreateFlow Operation</seealso> public virtual CreateFlowResponse CreateFlow(CreateFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFlowResponseUnmarshaller.Instance; return Invoke<CreateFlowResponse>(request, options); } /// <summary> /// Enables your application to create a new flow using Amazon AppFlow. You must create /// a connector profile before calling this API. Please note that the Request Syntax below /// shows syntax for multiple destinations, however, you can only transfer data to one /// item in this list at a time. Amazon AppFlow does not currently support flows to multiple /// destinations at once. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFlow 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 CreateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateFlow">REST API Reference for CreateFlow Operation</seealso> public virtual Task<CreateFlowResponse> CreateFlowAsync(CreateFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFlowResponseUnmarshaller.Instance; return InvokeAsync<CreateFlowResponse>(request, options, cancellationToken); } #endregion #region DeleteConnectorProfile /// <summary> /// Enables you to delete an existing connector profile. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteConnectorProfile service method.</param> /// /// <returns>The response from the DeleteConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteConnectorProfile">REST API Reference for DeleteConnectorProfile Operation</seealso> public virtual DeleteConnectorProfileResponse DeleteConnectorProfile(DeleteConnectorProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteConnectorProfileResponseUnmarshaller.Instance; return Invoke<DeleteConnectorProfileResponse>(request, options); } /// <summary> /// Enables you to delete an existing connector profile. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteConnectorProfile 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 DeleteConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteConnectorProfile">REST API Reference for DeleteConnectorProfile Operation</seealso> public virtual Task<DeleteConnectorProfileResponse> DeleteConnectorProfileAsync(DeleteConnectorProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteConnectorProfileResponseUnmarshaller.Instance; return InvokeAsync<DeleteConnectorProfileResponse>(request, options, cancellationToken); } #endregion #region DeleteFlow /// <summary> /// Enables your application to delete an existing flow. Before deleting the flow, Amazon /// AppFlow validates the request by checking the flow configuration and status. You can /// delete flows one at a time. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFlow service method.</param> /// /// <returns>The response from the DeleteFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteFlow">REST API Reference for DeleteFlow Operation</seealso> public virtual DeleteFlowResponse DeleteFlow(DeleteFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFlowResponseUnmarshaller.Instance; return Invoke<DeleteFlowResponse>(request, options); } /// <summary> /// Enables your application to delete an existing flow. Before deleting the flow, Amazon /// AppFlow validates the request by checking the flow configuration and status. You can /// delete flows one at a time. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFlow 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 DeleteFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteFlow">REST API Reference for DeleteFlow Operation</seealso> public virtual Task<DeleteFlowResponse> DeleteFlowAsync(DeleteFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFlowResponseUnmarshaller.Instance; return InvokeAsync<DeleteFlowResponse>(request, options, cancellationToken); } #endregion #region DescribeConnector /// <summary> /// Describes the given custom connector registered in your Amazon Web Services account. /// This API can be used for custom connectors that are registered in your account and /// also for Amazon authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnector service method.</param> /// /// <returns>The response from the DescribeConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnector">REST API Reference for DescribeConnector Operation</seealso> public virtual DescribeConnectorResponse DescribeConnector(DescribeConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorResponseUnmarshaller.Instance; return Invoke<DescribeConnectorResponse>(request, options); } /// <summary> /// Describes the given custom connector registered in your Amazon Web Services account. /// This API can be used for custom connectors that are registered in your account and /// also for Amazon authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnector 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 DescribeConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnector">REST API Reference for DescribeConnector Operation</seealso> public virtual Task<DescribeConnectorResponse> DescribeConnectorAsync(DescribeConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorResponseUnmarshaller.Instance; return InvokeAsync<DescribeConnectorResponse>(request, options, cancellationToken); } #endregion #region DescribeConnectorEntity /// <summary> /// Provides details regarding the entity used with the connector, with a description /// of the data model for each field in that entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorEntity service method.</param> /// /// <returns>The response from the DescribeConnectorEntity service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorEntity">REST API Reference for DescribeConnectorEntity Operation</seealso> public virtual DescribeConnectorEntityResponse DescribeConnectorEntity(DescribeConnectorEntityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorEntityResponseUnmarshaller.Instance; return Invoke<DescribeConnectorEntityResponse>(request, options); } /// <summary> /// Provides details regarding the entity used with the connector, with a description /// of the data model for each field in that entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorEntity 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 DescribeConnectorEntity service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorEntity">REST API Reference for DescribeConnectorEntity Operation</seealso> public virtual Task<DescribeConnectorEntityResponse> DescribeConnectorEntityAsync(DescribeConnectorEntityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorEntityResponseUnmarshaller.Instance; return InvokeAsync<DescribeConnectorEntityResponse>(request, options, cancellationToken); } #endregion #region DescribeConnectorProfiles /// <summary> /// Returns a list of <code>connector-profile</code> details matching the provided <code>connector-profile</code> /// names and <code>connector-types</code>. Both input lists are optional, and you can /// use them to filter the result. /// /// /// <para> /// If no names or <code>connector-types</code> are provided, returns all connector profiles /// in a paginated form. If there is no match, this operation returns an empty list. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorProfiles service method.</param> /// /// <returns>The response from the DescribeConnectorProfiles service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorProfiles">REST API Reference for DescribeConnectorProfiles Operation</seealso> public virtual DescribeConnectorProfilesResponse DescribeConnectorProfiles(DescribeConnectorProfilesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorProfilesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorProfilesResponseUnmarshaller.Instance; return Invoke<DescribeConnectorProfilesResponse>(request, options); } /// <summary> /// Returns a list of <code>connector-profile</code> details matching the provided <code>connector-profile</code> /// names and <code>connector-types</code>. Both input lists are optional, and you can /// use them to filter the result. /// /// /// <para> /// If no names or <code>connector-types</code> are provided, returns all connector profiles /// in a paginated form. If there is no match, this operation returns an empty list. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorProfiles 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 DescribeConnectorProfiles service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorProfiles">REST API Reference for DescribeConnectorProfiles Operation</seealso> public virtual Task<DescribeConnectorProfilesResponse> DescribeConnectorProfilesAsync(DescribeConnectorProfilesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorProfilesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorProfilesResponseUnmarshaller.Instance; return InvokeAsync<DescribeConnectorProfilesResponse>(request, options, cancellationToken); } #endregion #region DescribeConnectors /// <summary> /// Describes the connectors vended by Amazon AppFlow for specified connector types. /// If you don't specify a connector type, this operation describes all connectors vended /// by Amazon AppFlow. If there are more connectors than can be returned in one page, /// the response contains a <code>nextToken</code> object, which can be be passed in to /// the next call to the <code>DescribeConnectors</code> API operation to retrieve the /// next page. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectors service method.</param> /// /// <returns>The response from the DescribeConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectors">REST API Reference for DescribeConnectors Operation</seealso> public virtual DescribeConnectorsResponse DescribeConnectors(DescribeConnectorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorsResponseUnmarshaller.Instance; return Invoke<DescribeConnectorsResponse>(request, options); } /// <summary> /// Describes the connectors vended by Amazon AppFlow for specified connector types. /// If you don't specify a connector type, this operation describes all connectors vended /// by Amazon AppFlow. If there are more connectors than can be returned in one page, /// the response contains a <code>nextToken</code> object, which can be be passed in to /// the next call to the <code>DescribeConnectors</code> API operation to retrieve the /// next page. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectors 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 DescribeConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectors">REST API Reference for DescribeConnectors Operation</seealso> public virtual Task<DescribeConnectorsResponse> DescribeConnectorsAsync(DescribeConnectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorsResponseUnmarshaller.Instance; return InvokeAsync<DescribeConnectorsResponse>(request, options, cancellationToken); } #endregion #region DescribeFlow /// <summary> /// Provides a description of the specified flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlow service method.</param> /// /// <returns>The response from the DescribeFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow">REST API Reference for DescribeFlow Operation</seealso> public virtual DescribeFlowResponse DescribeFlow(DescribeFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlowResponseUnmarshaller.Instance; return Invoke<DescribeFlowResponse>(request, options); } /// <summary> /// Provides a description of the specified flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlow 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 DescribeFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow">REST API Reference for DescribeFlow Operation</seealso> public virtual Task<DescribeFlowResponse> DescribeFlowAsync(DescribeFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlowResponseUnmarshaller.Instance; return InvokeAsync<DescribeFlowResponse>(request, options, cancellationToken); } #endregion #region DescribeFlowExecutionRecords /// <summary> /// Fetches the execution history of the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlowExecutionRecords service method.</param> /// /// <returns>The response from the DescribeFlowExecutionRecords service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords">REST API Reference for DescribeFlowExecutionRecords Operation</seealso> public virtual DescribeFlowExecutionRecordsResponse DescribeFlowExecutionRecords(DescribeFlowExecutionRecordsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlowExecutionRecordsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlowExecutionRecordsResponseUnmarshaller.Instance; return Invoke<DescribeFlowExecutionRecordsResponse>(request, options); } /// <summary> /// Fetches the execution history of the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlowExecutionRecords 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 DescribeFlowExecutionRecords service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords">REST API Reference for DescribeFlowExecutionRecords Operation</seealso> public virtual Task<DescribeFlowExecutionRecordsResponse> DescribeFlowExecutionRecordsAsync(DescribeFlowExecutionRecordsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlowExecutionRecordsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlowExecutionRecordsResponseUnmarshaller.Instance; return InvokeAsync<DescribeFlowExecutionRecordsResponse>(request, options, cancellationToken); } #endregion #region ListConnectorEntities /// <summary> /// Returns the list of available connector entities supported by Amazon AppFlow. For /// example, you can query Salesforce for <i>Account</i> and <i>Opportunity</i> entities, /// or query ServiceNow for the <i>Incident</i> entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectorEntities service method.</param> /// /// <returns>The response from the ListConnectorEntities service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectorEntities">REST API Reference for ListConnectorEntities Operation</seealso> public virtual ListConnectorEntitiesResponse ListConnectorEntities(ListConnectorEntitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListConnectorEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConnectorEntitiesResponseUnmarshaller.Instance; return Invoke<ListConnectorEntitiesResponse>(request, options); } /// <summary> /// Returns the list of available connector entities supported by Amazon AppFlow. For /// example, you can query Salesforce for <i>Account</i> and <i>Opportunity</i> entities, /// or query ServiceNow for the <i>Incident</i> entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectorEntities 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 ListConnectorEntities service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectorEntities">REST API Reference for ListConnectorEntities Operation</seealso> public virtual Task<ListConnectorEntitiesResponse> ListConnectorEntitiesAsync(ListConnectorEntitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListConnectorEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConnectorEntitiesResponseUnmarshaller.Instance; return InvokeAsync<ListConnectorEntitiesResponse>(request, options, cancellationToken); } #endregion #region ListConnectors /// <summary> /// Returns the list of all registered custom connectors in your Amazon Web Services account. /// This API lists only custom connectors registered in this account, not the Amazon Web /// Services authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectors service method.</param> /// /// <returns>The response from the ListConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectors">REST API Reference for ListConnectors Operation</seealso> public virtual ListConnectorsResponse ListConnectors(ListConnectorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConnectorsResponseUnmarshaller.Instance; return Invoke<ListConnectorsResponse>(request, options); } /// <summary> /// Returns the list of all registered custom connectors in your Amazon Web Services account. /// This API lists only custom connectors registered in this account, not the Amazon Web /// Services authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectors 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 ListConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectors">REST API Reference for ListConnectors Operation</seealso> public virtual Task<ListConnectorsResponse> ListConnectorsAsync(ListConnectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConnectorsResponseUnmarshaller.Instance; return InvokeAsync<ListConnectorsResponse>(request, options, cancellationToken); } #endregion #region ListFlows /// <summary> /// Lists all of the flows associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFlows service method.</param> /// /// <returns>The response from the ListFlows service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows">REST API Reference for ListFlows Operation</seealso> public virtual ListFlowsResponse ListFlows(ListFlowsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFlowsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFlowsResponseUnmarshaller.Instance; return Invoke<ListFlowsResponse>(request, options); } /// <summary> /// Lists all of the flows associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFlows 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 ListFlows service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows">REST API Reference for ListFlows Operation</seealso> public virtual Task<ListFlowsResponse> ListFlowsAsync(ListFlowsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListFlowsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFlowsResponseUnmarshaller.Instance; return InvokeAsync<ListFlowsResponse>(request, options, cancellationToken); } #endregion #region ListTagsForResource /// <summary> /// Retrieves the tags that are associated with a specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/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> /// Retrieves the tags that are associated with a specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/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 RegisterConnector /// <summary> /// Registers a new custom connector with your Amazon Web Services account. Before you /// can register the connector, you must deploy the associated AWS lambda function in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterConnector service method.</param> /// /// <returns>The response from the RegisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/RegisterConnector">REST API Reference for RegisterConnector Operation</seealso> public virtual RegisterConnectorResponse RegisterConnector(RegisterConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterConnectorResponseUnmarshaller.Instance; return Invoke<RegisterConnectorResponse>(request, options); } /// <summary> /// Registers a new custom connector with your Amazon Web Services account. Before you /// can register the connector, you must deploy the associated AWS lambda function in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterConnector 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 RegisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/RegisterConnector">REST API Reference for RegisterConnector Operation</seealso> public virtual Task<RegisterConnectorResponse> RegisterConnectorAsync(RegisterConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterConnectorResponseUnmarshaller.Instance; return InvokeAsync<RegisterConnectorResponse>(request, options, cancellationToken); } #endregion #region ResetConnectorMetadataCache /// <summary> /// Resets metadata about your connector entities that Amazon AppFlow stored in its cache. /// Use this action when you want Amazon AppFlow to return the latest information about /// the data that you have in a source application. /// /// /// <para> /// Amazon AppFlow returns metadata about your entities when you use the ListConnectorEntities /// or DescribeConnectorEntities actions. Following these actions, Amazon AppFlow caches /// the metadata to reduce the number of API requests that it must send to the source /// application. Amazon AppFlow automatically resets the cache once every hour, but you /// can use this action when you want to get the latest metadata right away. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResetConnectorMetadataCache service method.</param> /// /// <returns>The response from the ResetConnectorMetadataCache service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ResetConnectorMetadataCache">REST API Reference for ResetConnectorMetadataCache Operation</seealso> public virtual ResetConnectorMetadataCacheResponse ResetConnectorMetadataCache(ResetConnectorMetadataCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ResetConnectorMetadataCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = ResetConnectorMetadataCacheResponseUnmarshaller.Instance; return Invoke<ResetConnectorMetadataCacheResponse>(request, options); } /// <summary> /// Resets metadata about your connector entities that Amazon AppFlow stored in its cache. /// Use this action when you want Amazon AppFlow to return the latest information about /// the data that you have in a source application. /// /// /// <para> /// Amazon AppFlow returns metadata about your entities when you use the ListConnectorEntities /// or DescribeConnectorEntities actions. Following these actions, Amazon AppFlow caches /// the metadata to reduce the number of API requests that it must send to the source /// application. Amazon AppFlow automatically resets the cache once every hour, but you /// can use this action when you want to get the latest metadata right away. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResetConnectorMetadataCache 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 ResetConnectorMetadataCache service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ResetConnectorMetadataCache">REST API Reference for ResetConnectorMetadataCache Operation</seealso> public virtual Task<ResetConnectorMetadataCacheResponse> ResetConnectorMetadataCacheAsync(ResetConnectorMetadataCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ResetConnectorMetadataCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = ResetConnectorMetadataCacheResponseUnmarshaller.Instance; return InvokeAsync<ResetConnectorMetadataCacheResponse>(request, options, cancellationToken); } #endregion #region StartFlow /// <summary> /// Activates an existing flow. For on-demand flows, this operation runs the flow immediately. /// For schedule and event-triggered flows, this operation activates the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartFlow service method.</param> /// /// <returns>The response from the StartFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StartFlow">REST API Reference for StartFlow Operation</seealso> public virtual StartFlowResponse StartFlow(StartFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = StartFlowResponseUnmarshaller.Instance; return Invoke<StartFlowResponse>(request, options); } /// <summary> /// Activates an existing flow. For on-demand flows, this operation runs the flow immediately. /// For schedule and event-triggered flows, this operation activates the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartFlow 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 StartFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StartFlow">REST API Reference for StartFlow Operation</seealso> public virtual Task<StartFlowResponse> StartFlowAsync(StartFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = StartFlowResponseUnmarshaller.Instance; return InvokeAsync<StartFlowResponse>(request, options, cancellationToken); } #endregion #region StopFlow /// <summary> /// Deactivates the existing flow. For on-demand flows, this operation returns an <code>unsupportedOperationException</code> /// error message. For schedule and event-triggered flows, this operation deactivates /// the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopFlow service method.</param> /// /// <returns>The response from the StopFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.UnsupportedOperationException"> /// The requested operation is not supported for the current flow. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StopFlow">REST API Reference for StopFlow Operation</seealso> public virtual StopFlowResponse StopFlow(StopFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = StopFlowResponseUnmarshaller.Instance; return Invoke<StopFlowResponse>(request, options); } /// <summary> /// Deactivates the existing flow. For on-demand flows, this operation returns an <code>unsupportedOperationException</code> /// error message. For schedule and event-triggered flows, this operation deactivates /// the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopFlow 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 StopFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.UnsupportedOperationException"> /// The requested operation is not supported for the current flow. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StopFlow">REST API Reference for StopFlow Operation</seealso> public virtual Task<StopFlowResponse> StopFlowAsync(StopFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = StopFlowResponseUnmarshaller.Instance; return InvokeAsync<StopFlowResponse>(request, options, cancellationToken); } #endregion #region TagResource /// <summary> /// Applies a tag to the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/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> /// Applies a tag to the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/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 UnregisterConnector /// <summary> /// Unregisters the custom connector registered in your account that matches the connector /// label provided in the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UnregisterConnector service method.</param> /// /// <returns>The response from the UnregisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UnregisterConnector">REST API Reference for UnregisterConnector Operation</seealso> public virtual UnregisterConnectorResponse UnregisterConnector(UnregisterConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UnregisterConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = UnregisterConnectorResponseUnmarshaller.Instance; return Invoke<UnregisterConnectorResponse>(request, options); } /// <summary> /// Unregisters the custom connector registered in your account that matches the connector /// label provided in the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UnregisterConnector 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 UnregisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UnregisterConnector">REST API Reference for UnregisterConnector Operation</seealso> public virtual Task<UnregisterConnectorResponse> UnregisterConnectorAsync(UnregisterConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UnregisterConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = UnregisterConnectorResponseUnmarshaller.Instance; return InvokeAsync<UnregisterConnectorResponse>(request, options, cancellationToken); } #endregion #region UntagResource /// <summary> /// Removes a tag from the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/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> /// Removes a tag from the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/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 UpdateConnectorProfile /// <summary> /// Updates a given connector profile associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorProfile service method.</param> /// /// <returns>The response from the UpdateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorProfile">REST API Reference for UpdateConnectorProfile Operation</seealso> public virtual UpdateConnectorProfileResponse UpdateConnectorProfile(UpdateConnectorProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateConnectorProfileResponseUnmarshaller.Instance; return Invoke<UpdateConnectorProfileResponse>(request, options); } /// <summary> /// Updates a given connector profile associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorProfile 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 UpdateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorProfile">REST API Reference for UpdateConnectorProfile Operation</seealso> public virtual Task<UpdateConnectorProfileResponse> UpdateConnectorProfileAsync(UpdateConnectorProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateConnectorProfileResponseUnmarshaller.Instance; return InvokeAsync<UpdateConnectorProfileResponse>(request, options, cancellationToken); } #endregion #region UpdateConnectorRegistration /// <summary> /// Updates a custom connector that you've previously registered. This operation updates /// the connector with one of the following: /// /// <ul> <li> /// <para> /// The latest version of the AWS Lambda function that's assigned to the connector /// </para> /// </li> <li> /// <para> /// A new AWS Lambda function that you specify /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorRegistration service method.</param> /// /// <returns>The response from the UpdateConnectorRegistration service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorRegistration">REST API Reference for UpdateConnectorRegistration Operation</seealso> public virtual UpdateConnectorRegistrationResponse UpdateConnectorRegistration(UpdateConnectorRegistrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateConnectorRegistrationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateConnectorRegistrationResponseUnmarshaller.Instance; return Invoke<UpdateConnectorRegistrationResponse>(request, options); } /// <summary> /// Updates a custom connector that you've previously registered. This operation updates /// the connector with one of the following: /// /// <ul> <li> /// <para> /// The latest version of the AWS Lambda function that's assigned to the connector /// </para> /// </li> <li> /// <para> /// A new AWS Lambda function that you specify /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorRegistration 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 UpdateConnectorRegistration service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorRegistration">REST API Reference for UpdateConnectorRegistration Operation</seealso> public virtual Task<UpdateConnectorRegistrationResponse> UpdateConnectorRegistrationAsync(UpdateConnectorRegistrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateConnectorRegistrationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateConnectorRegistrationResponseUnmarshaller.Instance; return InvokeAsync<UpdateConnectorRegistrationResponse>(request, options, cancellationToken); } #endregion #region UpdateFlow /// <summary> /// Updates an existing flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFlow service method.</param> /// /// <returns>The response from the UpdateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateFlow">REST API Reference for UpdateFlow Operation</seealso> public virtual UpdateFlowResponse UpdateFlow(UpdateFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFlowResponseUnmarshaller.Instance; return Invoke<UpdateFlowResponse>(request, options); } /// <summary> /// Updates an existing flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFlow 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 UpdateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateFlow">REST API Reference for UpdateFlow Operation</seealso> public virtual Task<UpdateFlowResponse> UpdateFlowAsync(UpdateFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFlowResponseUnmarshaller.Instance; return InvokeAsync<UpdateFlowResponse>(request, options, cancellationToken); } #endregion } }
2,280
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Appflow.Model; namespace Amazon.Appflow { /// <summary> /// Interface for accessing Appflow /// /// Welcome to the Amazon AppFlow API reference. This guide is for developers who need /// detailed information about the Amazon AppFlow API operations, data types, and errors. /// /// /// /// <para> /// Amazon AppFlow is a fully managed integration service that enables you to securely /// transfer data between software as a service (SaaS) applications like Salesforce, Marketo, /// Slack, and ServiceNow, and Amazon Web Services like Amazon S3 and Amazon Redshift. /// /// </para> /// /// <para> /// Use the following links to get started on the Amazon AppFlow API: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Operations.html">Actions</a>: /// An alphabetical list of all Amazon AppFlow API operations. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Types.html">Data /// types</a>: An alphabetical list of all Amazon AppFlow data types. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonParameters.html">Common /// parameters</a>: Parameters that all Query operations can use. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonErrors.html">Common /// errors</a>: Client and server errors that all operations can return. /// </para> /// </li> </ul> /// <para> /// If you're new to Amazon AppFlow, we recommend that you review the <a href="https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html">Amazon /// AppFlow User Guide</a>. /// </para> /// /// <para> /// Amazon AppFlow API users can use vendor-specific mechanisms for OAuth, and include /// applicable OAuth attributes (such as <code>auth-code</code> and <code>redirecturi</code>) /// with the connector-specific <code>ConnectorProfileProperties</code> when creating /// a new connector profile using Amazon AppFlow API operations. For example, Salesforce /// users can refer to the <a href="https://help.salesforce.com/articleView?id=remoteaccess_authenticate.htm"> /// <i>Authorize Apps with OAuth</i> </a> documentation. /// </para> /// </summary> public partial interface IAmazonAppflow : IAmazonService, IDisposable { /// <summary> /// Paginators for the service /// </summary> IAppflowPaginatorFactory Paginators { get; } #region CancelFlowExecutions /// <summary> /// Cancels active runs for a flow. /// /// /// <para> /// You can cancel all of the active runs for a flow, or you can cancel specific runs /// by providing their IDs. /// </para> /// /// <para> /// You can cancel a flow run only when the run is in progress. You can't cancel a run /// that has already completed or failed. You also can't cancel a run that's scheduled /// to occur but hasn't started yet. To prevent a scheduled run, you can deactivate the /// flow with the <code>StopFlow</code> action. /// </para> /// /// <para> /// You cannot resume a run after you cancel it. /// </para> /// /// <para> /// When you send your request, the status for each run becomes <code>CancelStarted</code>. /// When the cancellation completes, the status becomes <code>Canceled</code>. /// </para> /// <note> /// <para> /// When you cancel a run, you still incur charges for any data that the run already processed /// before the cancellation. If the run had already written some data to the flow destination, /// then that data remains in the destination. If you configured the flow to use a batch /// API (such as the Salesforce Bulk API 2.0), then the run will finish reading or writing /// its entire batch of data after the cancellation. For these operations, the data processing /// charges for Amazon AppFlow apply. For the pricing information, see <a href="http://aws.amazon.com/appflow/pricing/">Amazon /// AppFlow pricing</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelFlowExecutions service method.</param> /// /// <returns>The response from the CancelFlowExecutions service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CancelFlowExecutions">REST API Reference for CancelFlowExecutions Operation</seealso> CancelFlowExecutionsResponse CancelFlowExecutions(CancelFlowExecutionsRequest request); /// <summary> /// Cancels active runs for a flow. /// /// /// <para> /// You can cancel all of the active runs for a flow, or you can cancel specific runs /// by providing their IDs. /// </para> /// /// <para> /// You can cancel a flow run only when the run is in progress. You can't cancel a run /// that has already completed or failed. You also can't cancel a run that's scheduled /// to occur but hasn't started yet. To prevent a scheduled run, you can deactivate the /// flow with the <code>StopFlow</code> action. /// </para> /// /// <para> /// You cannot resume a run after you cancel it. /// </para> /// /// <para> /// When you send your request, the status for each run becomes <code>CancelStarted</code>. /// When the cancellation completes, the status becomes <code>Canceled</code>. /// </para> /// <note> /// <para> /// When you cancel a run, you still incur charges for any data that the run already processed /// before the cancellation. If the run had already written some data to the flow destination, /// then that data remains in the destination. If you configured the flow to use a batch /// API (such as the Salesforce Bulk API 2.0), then the run will finish reading or writing /// its entire batch of data after the cancellation. For these operations, the data processing /// charges for Amazon AppFlow apply. For the pricing information, see <a href="http://aws.amazon.com/appflow/pricing/">Amazon /// AppFlow pricing</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelFlowExecutions 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 CancelFlowExecutions service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CancelFlowExecutions">REST API Reference for CancelFlowExecutions Operation</seealso> Task<CancelFlowExecutionsResponse> CancelFlowExecutionsAsync(CancelFlowExecutionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateConnectorProfile /// <summary> /// Creates a new connector profile associated with your Amazon Web Services account. /// There is a soft quota of 100 connector profiles per Amazon Web Services account. If /// you need more connector profiles than this quota allows, you can submit a request /// to the Amazon AppFlow team through the Amazon AppFlow support channel. In each connector /// profile that you create, you can provide the credentials and properties for only one /// connector. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateConnectorProfile service method.</param> /// /// <returns>The response from the CreateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateConnectorProfile">REST API Reference for CreateConnectorProfile Operation</seealso> CreateConnectorProfileResponse CreateConnectorProfile(CreateConnectorProfileRequest request); /// <summary> /// Creates a new connector profile associated with your Amazon Web Services account. /// There is a soft quota of 100 connector profiles per Amazon Web Services account. If /// you need more connector profiles than this quota allows, you can submit a request /// to the Amazon AppFlow team through the Amazon AppFlow support channel. In each connector /// profile that you create, you can provide the credentials and properties for only one /// connector. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateConnectorProfile 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 CreateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateConnectorProfile">REST API Reference for CreateConnectorProfile Operation</seealso> Task<CreateConnectorProfileResponse> CreateConnectorProfileAsync(CreateConnectorProfileRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateFlow /// <summary> /// Enables your application to create a new flow using Amazon AppFlow. You must create /// a connector profile before calling this API. Please note that the Request Syntax below /// shows syntax for multiple destinations, however, you can only transfer data to one /// item in this list at a time. Amazon AppFlow does not currently support flows to multiple /// destinations at once. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFlow service method.</param> /// /// <returns>The response from the CreateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateFlow">REST API Reference for CreateFlow Operation</seealso> CreateFlowResponse CreateFlow(CreateFlowRequest request); /// <summary> /// Enables your application to create a new flow using Amazon AppFlow. You must create /// a connector profile before calling this API. Please note that the Request Syntax below /// shows syntax for multiple destinations, however, you can only transfer data to one /// item in this list at a time. Amazon AppFlow does not currently support flows to multiple /// destinations at once. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFlow 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 CreateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateFlow">REST API Reference for CreateFlow Operation</seealso> Task<CreateFlowResponse> CreateFlowAsync(CreateFlowRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteConnectorProfile /// <summary> /// Enables you to delete an existing connector profile. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteConnectorProfile service method.</param> /// /// <returns>The response from the DeleteConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteConnectorProfile">REST API Reference for DeleteConnectorProfile Operation</seealso> DeleteConnectorProfileResponse DeleteConnectorProfile(DeleteConnectorProfileRequest request); /// <summary> /// Enables you to delete an existing connector profile. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteConnectorProfile 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 DeleteConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteConnectorProfile">REST API Reference for DeleteConnectorProfile Operation</seealso> Task<DeleteConnectorProfileResponse> DeleteConnectorProfileAsync(DeleteConnectorProfileRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteFlow /// <summary> /// Enables your application to delete an existing flow. Before deleting the flow, Amazon /// AppFlow validates the request by checking the flow configuration and status. You can /// delete flows one at a time. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFlow service method.</param> /// /// <returns>The response from the DeleteFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteFlow">REST API Reference for DeleteFlow Operation</seealso> DeleteFlowResponse DeleteFlow(DeleteFlowRequest request); /// <summary> /// Enables your application to delete an existing flow. Before deleting the flow, Amazon /// AppFlow validates the request by checking the flow configuration and status. You can /// delete flows one at a time. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFlow 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 DeleteFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteFlow">REST API Reference for DeleteFlow Operation</seealso> Task<DeleteFlowResponse> DeleteFlowAsync(DeleteFlowRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeConnector /// <summary> /// Describes the given custom connector registered in your Amazon Web Services account. /// This API can be used for custom connectors that are registered in your account and /// also for Amazon authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnector service method.</param> /// /// <returns>The response from the DescribeConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnector">REST API Reference for DescribeConnector Operation</seealso> DescribeConnectorResponse DescribeConnector(DescribeConnectorRequest request); /// <summary> /// Describes the given custom connector registered in your Amazon Web Services account. /// This API can be used for custom connectors that are registered in your account and /// also for Amazon authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnector 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 DescribeConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnector">REST API Reference for DescribeConnector Operation</seealso> Task<DescribeConnectorResponse> DescribeConnectorAsync(DescribeConnectorRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeConnectorEntity /// <summary> /// Provides details regarding the entity used with the connector, with a description /// of the data model for each field in that entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorEntity service method.</param> /// /// <returns>The response from the DescribeConnectorEntity service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorEntity">REST API Reference for DescribeConnectorEntity Operation</seealso> DescribeConnectorEntityResponse DescribeConnectorEntity(DescribeConnectorEntityRequest request); /// <summary> /// Provides details regarding the entity used with the connector, with a description /// of the data model for each field in that entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorEntity 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 DescribeConnectorEntity service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorEntity">REST API Reference for DescribeConnectorEntity Operation</seealso> Task<DescribeConnectorEntityResponse> DescribeConnectorEntityAsync(DescribeConnectorEntityRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeConnectorProfiles /// <summary> /// Returns a list of <code>connector-profile</code> details matching the provided <code>connector-profile</code> /// names and <code>connector-types</code>. Both input lists are optional, and you can /// use them to filter the result. /// /// /// <para> /// If no names or <code>connector-types</code> are provided, returns all connector profiles /// in a paginated form. If there is no match, this operation returns an empty list. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorProfiles service method.</param> /// /// <returns>The response from the DescribeConnectorProfiles service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorProfiles">REST API Reference for DescribeConnectorProfiles Operation</seealso> DescribeConnectorProfilesResponse DescribeConnectorProfiles(DescribeConnectorProfilesRequest request); /// <summary> /// Returns a list of <code>connector-profile</code> details matching the provided <code>connector-profile</code> /// names and <code>connector-types</code>. Both input lists are optional, and you can /// use them to filter the result. /// /// /// <para> /// If no names or <code>connector-types</code> are provided, returns all connector profiles /// in a paginated form. If there is no match, this operation returns an empty list. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorProfiles 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 DescribeConnectorProfiles service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorProfiles">REST API Reference for DescribeConnectorProfiles Operation</seealso> Task<DescribeConnectorProfilesResponse> DescribeConnectorProfilesAsync(DescribeConnectorProfilesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeConnectors /// <summary> /// Describes the connectors vended by Amazon AppFlow for specified connector types. /// If you don't specify a connector type, this operation describes all connectors vended /// by Amazon AppFlow. If there are more connectors than can be returned in one page, /// the response contains a <code>nextToken</code> object, which can be be passed in to /// the next call to the <code>DescribeConnectors</code> API operation to retrieve the /// next page. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectors service method.</param> /// /// <returns>The response from the DescribeConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectors">REST API Reference for DescribeConnectors Operation</seealso> DescribeConnectorsResponse DescribeConnectors(DescribeConnectorsRequest request); /// <summary> /// Describes the connectors vended by Amazon AppFlow for specified connector types. /// If you don't specify a connector type, this operation describes all connectors vended /// by Amazon AppFlow. If there are more connectors than can be returned in one page, /// the response contains a <code>nextToken</code> object, which can be be passed in to /// the next call to the <code>DescribeConnectors</code> API operation to retrieve the /// next page. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectors 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 DescribeConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectors">REST API Reference for DescribeConnectors Operation</seealso> Task<DescribeConnectorsResponse> DescribeConnectorsAsync(DescribeConnectorsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeFlow /// <summary> /// Provides a description of the specified flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlow service method.</param> /// /// <returns>The response from the DescribeFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow">REST API Reference for DescribeFlow Operation</seealso> DescribeFlowResponse DescribeFlow(DescribeFlowRequest request); /// <summary> /// Provides a description of the specified flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlow 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 DescribeFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow">REST API Reference for DescribeFlow Operation</seealso> Task<DescribeFlowResponse> DescribeFlowAsync(DescribeFlowRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeFlowExecutionRecords /// <summary> /// Fetches the execution history of the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlowExecutionRecords service method.</param> /// /// <returns>The response from the DescribeFlowExecutionRecords service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords">REST API Reference for DescribeFlowExecutionRecords Operation</seealso> DescribeFlowExecutionRecordsResponse DescribeFlowExecutionRecords(DescribeFlowExecutionRecordsRequest request); /// <summary> /// Fetches the execution history of the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlowExecutionRecords 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 DescribeFlowExecutionRecords service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords">REST API Reference for DescribeFlowExecutionRecords Operation</seealso> Task<DescribeFlowExecutionRecordsResponse> DescribeFlowExecutionRecordsAsync(DescribeFlowExecutionRecordsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListConnectorEntities /// <summary> /// Returns the list of available connector entities supported by Amazon AppFlow. For /// example, you can query Salesforce for <i>Account</i> and <i>Opportunity</i> entities, /// or query ServiceNow for the <i>Incident</i> entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectorEntities service method.</param> /// /// <returns>The response from the ListConnectorEntities service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectorEntities">REST API Reference for ListConnectorEntities Operation</seealso> ListConnectorEntitiesResponse ListConnectorEntities(ListConnectorEntitiesRequest request); /// <summary> /// Returns the list of available connector entities supported by Amazon AppFlow. For /// example, you can query Salesforce for <i>Account</i> and <i>Opportunity</i> entities, /// or query ServiceNow for the <i>Incident</i> entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectorEntities 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 ListConnectorEntities service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectorEntities">REST API Reference for ListConnectorEntities Operation</seealso> Task<ListConnectorEntitiesResponse> ListConnectorEntitiesAsync(ListConnectorEntitiesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListConnectors /// <summary> /// Returns the list of all registered custom connectors in your Amazon Web Services account. /// This API lists only custom connectors registered in this account, not the Amazon Web /// Services authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectors service method.</param> /// /// <returns>The response from the ListConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectors">REST API Reference for ListConnectors Operation</seealso> ListConnectorsResponse ListConnectors(ListConnectorsRequest request); /// <summary> /// Returns the list of all registered custom connectors in your Amazon Web Services account. /// This API lists only custom connectors registered in this account, not the Amazon Web /// Services authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectors 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 ListConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectors">REST API Reference for ListConnectors Operation</seealso> Task<ListConnectorsResponse> ListConnectorsAsync(ListConnectorsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListFlows /// <summary> /// Lists all of the flows associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFlows service method.</param> /// /// <returns>The response from the ListFlows service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows">REST API Reference for ListFlows Operation</seealso> ListFlowsResponse ListFlows(ListFlowsRequest request); /// <summary> /// Lists all of the flows associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFlows 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 ListFlows service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows">REST API Reference for ListFlows Operation</seealso> Task<ListFlowsResponse> ListFlowsAsync(ListFlowsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// Retrieves the tags that are associated with a specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// Retrieves the tags that are associated with a specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RegisterConnector /// <summary> /// Registers a new custom connector with your Amazon Web Services account. Before you /// can register the connector, you must deploy the associated AWS lambda function in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterConnector service method.</param> /// /// <returns>The response from the RegisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/RegisterConnector">REST API Reference for RegisterConnector Operation</seealso> RegisterConnectorResponse RegisterConnector(RegisterConnectorRequest request); /// <summary> /// Registers a new custom connector with your Amazon Web Services account. Before you /// can register the connector, you must deploy the associated AWS lambda function in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterConnector 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 RegisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/RegisterConnector">REST API Reference for RegisterConnector Operation</seealso> Task<RegisterConnectorResponse> RegisterConnectorAsync(RegisterConnectorRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ResetConnectorMetadataCache /// <summary> /// Resets metadata about your connector entities that Amazon AppFlow stored in its cache. /// Use this action when you want Amazon AppFlow to return the latest information about /// the data that you have in a source application. /// /// /// <para> /// Amazon AppFlow returns metadata about your entities when you use the ListConnectorEntities /// or DescribeConnectorEntities actions. Following these actions, Amazon AppFlow caches /// the metadata to reduce the number of API requests that it must send to the source /// application. Amazon AppFlow automatically resets the cache once every hour, but you /// can use this action when you want to get the latest metadata right away. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResetConnectorMetadataCache service method.</param> /// /// <returns>The response from the ResetConnectorMetadataCache service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ResetConnectorMetadataCache">REST API Reference for ResetConnectorMetadataCache Operation</seealso> ResetConnectorMetadataCacheResponse ResetConnectorMetadataCache(ResetConnectorMetadataCacheRequest request); /// <summary> /// Resets metadata about your connector entities that Amazon AppFlow stored in its cache. /// Use this action when you want Amazon AppFlow to return the latest information about /// the data that you have in a source application. /// /// /// <para> /// Amazon AppFlow returns metadata about your entities when you use the ListConnectorEntities /// or DescribeConnectorEntities actions. Following these actions, Amazon AppFlow caches /// the metadata to reduce the number of API requests that it must send to the source /// application. Amazon AppFlow automatically resets the cache once every hour, but you /// can use this action when you want to get the latest metadata right away. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResetConnectorMetadataCache 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 ResetConnectorMetadataCache service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ResetConnectorMetadataCache">REST API Reference for ResetConnectorMetadataCache Operation</seealso> Task<ResetConnectorMetadataCacheResponse> ResetConnectorMetadataCacheAsync(ResetConnectorMetadataCacheRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartFlow /// <summary> /// Activates an existing flow. For on-demand flows, this operation runs the flow immediately. /// For schedule and event-triggered flows, this operation activates the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartFlow service method.</param> /// /// <returns>The response from the StartFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StartFlow">REST API Reference for StartFlow Operation</seealso> StartFlowResponse StartFlow(StartFlowRequest request); /// <summary> /// Activates an existing flow. For on-demand flows, this operation runs the flow immediately. /// For schedule and event-triggered flows, this operation activates the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartFlow 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 StartFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StartFlow">REST API Reference for StartFlow Operation</seealso> Task<StartFlowResponse> StartFlowAsync(StartFlowRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StopFlow /// <summary> /// Deactivates the existing flow. For on-demand flows, this operation returns an <code>unsupportedOperationException</code> /// error message. For schedule and event-triggered flows, this operation deactivates /// the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopFlow service method.</param> /// /// <returns>The response from the StopFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.UnsupportedOperationException"> /// The requested operation is not supported for the current flow. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StopFlow">REST API Reference for StopFlow Operation</seealso> StopFlowResponse StopFlow(StopFlowRequest request); /// <summary> /// Deactivates the existing flow. For on-demand flows, this operation returns an <code>unsupportedOperationException</code> /// error message. For schedule and event-triggered flows, this operation deactivates /// the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopFlow 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 StopFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.UnsupportedOperationException"> /// The requested operation is not supported for the current flow. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StopFlow">REST API Reference for StopFlow Operation</seealso> Task<StopFlowResponse> StopFlowAsync(StopFlowRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Applies a tag to the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse TagResource(TagResourceRequest request); /// <summary> /// Applies a tag to the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UnregisterConnector /// <summary> /// Unregisters the custom connector registered in your account that matches the connector /// label provided in the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UnregisterConnector service method.</param> /// /// <returns>The response from the UnregisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UnregisterConnector">REST API Reference for UnregisterConnector Operation</seealso> UnregisterConnectorResponse UnregisterConnector(UnregisterConnectorRequest request); /// <summary> /// Unregisters the custom connector registered in your account that matches the connector /// label provided in the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UnregisterConnector 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 UnregisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UnregisterConnector">REST API Reference for UnregisterConnector Operation</seealso> Task<UnregisterConnectorResponse> UnregisterConnectorAsync(UnregisterConnectorRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Removes a tag from the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse UntagResource(UntagResourceRequest request); /// <summary> /// Removes a tag from the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateConnectorProfile /// <summary> /// Updates a given connector profile associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorProfile service method.</param> /// /// <returns>The response from the UpdateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorProfile">REST API Reference for UpdateConnectorProfile Operation</seealso> UpdateConnectorProfileResponse UpdateConnectorProfile(UpdateConnectorProfileRequest request); /// <summary> /// Updates a given connector profile associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorProfile 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 UpdateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorProfile">REST API Reference for UpdateConnectorProfile Operation</seealso> Task<UpdateConnectorProfileResponse> UpdateConnectorProfileAsync(UpdateConnectorProfileRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateConnectorRegistration /// <summary> /// Updates a custom connector that you've previously registered. This operation updates /// the connector with one of the following: /// /// <ul> <li> /// <para> /// The latest version of the AWS Lambda function that's assigned to the connector /// </para> /// </li> <li> /// <para> /// A new AWS Lambda function that you specify /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorRegistration service method.</param> /// /// <returns>The response from the UpdateConnectorRegistration service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorRegistration">REST API Reference for UpdateConnectorRegistration Operation</seealso> UpdateConnectorRegistrationResponse UpdateConnectorRegistration(UpdateConnectorRegistrationRequest request); /// <summary> /// Updates a custom connector that you've previously registered. This operation updates /// the connector with one of the following: /// /// <ul> <li> /// <para> /// The latest version of the AWS Lambda function that's assigned to the connector /// </para> /// </li> <li> /// <para> /// A new AWS Lambda function that you specify /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorRegistration 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 UpdateConnectorRegistration service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorRegistration">REST API Reference for UpdateConnectorRegistration Operation</seealso> Task<UpdateConnectorRegistrationResponse> UpdateConnectorRegistrationAsync(UpdateConnectorRegistrationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateFlow /// <summary> /// Updates an existing flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFlow service method.</param> /// /// <returns>The response from the UpdateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateFlow">REST API Reference for UpdateFlow Operation</seealso> UpdateFlowResponse UpdateFlow(UpdateFlowRequest request); /// <summary> /// Updates an existing flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFlow 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 UpdateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateFlow">REST API Reference for UpdateFlow Operation</seealso> Task<UpdateFlowResponse> UpdateFlowAsync(UpdateFlowRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
1,734
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.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.Appflow.Model; using Amazon.Appflow.Model.Internal.MarshallTransformations; using Amazon.Appflow.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Appflow { /// <summary> /// Implementation for accessing Appflow /// /// Welcome to the Amazon AppFlow API reference. This guide is for developers who need /// detailed information about the Amazon AppFlow API operations, data types, and errors. /// /// /// /// <para> /// Amazon AppFlow is a fully managed integration service that enables you to securely /// transfer data between software as a service (SaaS) applications like Salesforce, Marketo, /// Slack, and ServiceNow, and Amazon Web Services like Amazon S3 and Amazon Redshift. /// /// </para> /// /// <para> /// Use the following links to get started on the Amazon AppFlow API: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Operations.html">Actions</a>: /// An alphabetical list of all Amazon AppFlow API operations. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Types.html">Data /// types</a>: An alphabetical list of all Amazon AppFlow data types. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonParameters.html">Common /// parameters</a>: Parameters that all Query operations can use. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonErrors.html">Common /// errors</a>: Client and server errors that all operations can return. /// </para> /// </li> </ul> /// <para> /// If you're new to Amazon AppFlow, we recommend that you review the <a href="https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html">Amazon /// AppFlow User Guide</a>. /// </para> /// /// <para> /// Amazon AppFlow API users can use vendor-specific mechanisms for OAuth, and include /// applicable OAuth attributes (such as <code>auth-code</code> and <code>redirecturi</code>) /// with the connector-specific <code>ConnectorProfileProperties</code> when creating /// a new connector profile using Amazon AppFlow API operations. For example, Salesforce /// users can refer to the <a href="https://help.salesforce.com/articleView?id=remoteaccess_authenticate.htm"> /// <i>Authorize Apps with OAuth</i> </a> documentation. /// </para> /// </summary> public partial class AmazonAppflowClient : AmazonServiceClient, IAmazonAppflow { private static IServiceMetadata serviceMetadata = new AmazonAppflowMetadata(); #region Constructors /// <summary> /// Constructs AmazonAppflowClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonAppflowClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppflowConfig()) { } /// <summary> /// Constructs AmazonAppflowClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonAppflowClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppflowConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppflowClient 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> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonAppflowClient Configuration Object</param> public AmazonAppflowClient(AmazonAppflowConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonAppflowClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAppflowClient(AWSCredentials credentials) : this(credentials, new AmazonAppflowConfig()) { } /// <summary> /// Constructs AmazonAppflowClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAppflowClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAppflowConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppflowClient with AWS Credentials and an /// AmazonAppflowClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAppflowClient Configuration Object</param> public AmazonAppflowClient(AWSCredentials credentials, AmazonAppflowConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAppflowClient 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 AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppflowConfig()) { } /// <summary> /// Constructs AmazonAppflowClient 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 AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppflowConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAppflowClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppflowClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAppflowClient Configuration Object</param> public AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAppflowConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAppflowClient 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 AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppflowConfig()) { } /// <summary> /// Constructs AmazonAppflowClient 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 AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppflowConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAppflowClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppflowClient 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 AmazonAppflowClient Configuration Object</param> public AmazonAppflowClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAppflowConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IAppflowPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IAppflowPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new AppflowPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customizes the runtime pipeline. /// </summary> /// <param name="pipeline">Runtime pipeline for the current client.</param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAppflowEndpointResolver()); } /// <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 CancelFlowExecutions internal virtual CancelFlowExecutionsResponse CancelFlowExecutions(CancelFlowExecutionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelFlowExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelFlowExecutionsResponseUnmarshaller.Instance; return Invoke<CancelFlowExecutionsResponse>(request, options); } /// <summary> /// Cancels active runs for a flow. /// /// /// <para> /// You can cancel all of the active runs for a flow, or you can cancel specific runs /// by providing their IDs. /// </para> /// /// <para> /// You can cancel a flow run only when the run is in progress. You can't cancel a run /// that has already completed or failed. You also can't cancel a run that's scheduled /// to occur but hasn't started yet. To prevent a scheduled run, you can deactivate the /// flow with the <code>StopFlow</code> action. /// </para> /// /// <para> /// You cannot resume a run after you cancel it. /// </para> /// /// <para> /// When you send your request, the status for each run becomes <code>CancelStarted</code>. /// When the cancellation completes, the status becomes <code>Canceled</code>. /// </para> /// <note> /// <para> /// When you cancel a run, you still incur charges for any data that the run already processed /// before the cancellation. If the run had already written some data to the flow destination, /// then that data remains in the destination. If you configured the flow to use a batch /// API (such as the Salesforce Bulk API 2.0), then the run will finish reading or writing /// its entire batch of data after the cancellation. For these operations, the data processing /// charges for Amazon AppFlow apply. For the pricing information, see <a href="http://aws.amazon.com/appflow/pricing/">Amazon /// AppFlow pricing</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelFlowExecutions 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 CancelFlowExecutions service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CancelFlowExecutions">REST API Reference for CancelFlowExecutions Operation</seealso> public virtual Task<CancelFlowExecutionsResponse> CancelFlowExecutionsAsync(CancelFlowExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelFlowExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelFlowExecutionsResponseUnmarshaller.Instance; return InvokeAsync<CancelFlowExecutionsResponse>(request, options, cancellationToken); } #endregion #region CreateConnectorProfile internal virtual CreateConnectorProfileResponse CreateConnectorProfile(CreateConnectorProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateConnectorProfileResponseUnmarshaller.Instance; return Invoke<CreateConnectorProfileResponse>(request, options); } /// <summary> /// Creates a new connector profile associated with your Amazon Web Services account. /// There is a soft quota of 100 connector profiles per Amazon Web Services account. If /// you need more connector profiles than this quota allows, you can submit a request /// to the Amazon AppFlow team through the Amazon AppFlow support channel. In each connector /// profile that you create, you can provide the credentials and properties for only one /// connector. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateConnectorProfile 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 CreateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateConnectorProfile">REST API Reference for CreateConnectorProfile Operation</seealso> public virtual Task<CreateConnectorProfileResponse> CreateConnectorProfileAsync(CreateConnectorProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateConnectorProfileResponseUnmarshaller.Instance; return InvokeAsync<CreateConnectorProfileResponse>(request, options, cancellationToken); } #endregion #region CreateFlow internal virtual CreateFlowResponse CreateFlow(CreateFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFlowResponseUnmarshaller.Instance; return Invoke<CreateFlowResponse>(request, options); } /// <summary> /// Enables your application to create a new flow using Amazon AppFlow. You must create /// a connector profile before calling this API. Please note that the Request Syntax below /// shows syntax for multiple destinations, however, you can only transfer data to one /// item in this list at a time. Amazon AppFlow does not currently support flows to multiple /// destinations at once. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFlow 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 CreateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateFlow">REST API Reference for CreateFlow Operation</seealso> public virtual Task<CreateFlowResponse> CreateFlowAsync(CreateFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFlowResponseUnmarshaller.Instance; return InvokeAsync<CreateFlowResponse>(request, options, cancellationToken); } #endregion #region DeleteConnectorProfile internal virtual DeleteConnectorProfileResponse DeleteConnectorProfile(DeleteConnectorProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteConnectorProfileResponseUnmarshaller.Instance; return Invoke<DeleteConnectorProfileResponse>(request, options); } /// <summary> /// Enables you to delete an existing connector profile. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteConnectorProfile 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 DeleteConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteConnectorProfile">REST API Reference for DeleteConnectorProfile Operation</seealso> public virtual Task<DeleteConnectorProfileResponse> DeleteConnectorProfileAsync(DeleteConnectorProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteConnectorProfileResponseUnmarshaller.Instance; return InvokeAsync<DeleteConnectorProfileResponse>(request, options, cancellationToken); } #endregion #region DeleteFlow internal virtual DeleteFlowResponse DeleteFlow(DeleteFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFlowResponseUnmarshaller.Instance; return Invoke<DeleteFlowResponse>(request, options); } /// <summary> /// Enables your application to delete an existing flow. Before deleting the flow, Amazon /// AppFlow validates the request by checking the flow configuration and status. You can /// delete flows one at a time. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFlow 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 DeleteFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteFlow">REST API Reference for DeleteFlow Operation</seealso> public virtual Task<DeleteFlowResponse> DeleteFlowAsync(DeleteFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFlowResponseUnmarshaller.Instance; return InvokeAsync<DeleteFlowResponse>(request, options, cancellationToken); } #endregion #region DescribeConnector internal virtual DescribeConnectorResponse DescribeConnector(DescribeConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorResponseUnmarshaller.Instance; return Invoke<DescribeConnectorResponse>(request, options); } /// <summary> /// Describes the given custom connector registered in your Amazon Web Services account. /// This API can be used for custom connectors that are registered in your account and /// also for Amazon authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnector 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 DescribeConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnector">REST API Reference for DescribeConnector Operation</seealso> public virtual Task<DescribeConnectorResponse> DescribeConnectorAsync(DescribeConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorResponseUnmarshaller.Instance; return InvokeAsync<DescribeConnectorResponse>(request, options, cancellationToken); } #endregion #region DescribeConnectorEntity internal virtual DescribeConnectorEntityResponse DescribeConnectorEntity(DescribeConnectorEntityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorEntityResponseUnmarshaller.Instance; return Invoke<DescribeConnectorEntityResponse>(request, options); } /// <summary> /// Provides details regarding the entity used with the connector, with a description /// of the data model for each field in that entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorEntity 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 DescribeConnectorEntity service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorEntity">REST API Reference for DescribeConnectorEntity Operation</seealso> public virtual Task<DescribeConnectorEntityResponse> DescribeConnectorEntityAsync(DescribeConnectorEntityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorEntityResponseUnmarshaller.Instance; return InvokeAsync<DescribeConnectorEntityResponse>(request, options, cancellationToken); } #endregion #region DescribeConnectorProfiles internal virtual DescribeConnectorProfilesResponse DescribeConnectorProfiles(DescribeConnectorProfilesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorProfilesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorProfilesResponseUnmarshaller.Instance; return Invoke<DescribeConnectorProfilesResponse>(request, options); } /// <summary> /// Returns a list of <code>connector-profile</code> details matching the provided <code>connector-profile</code> /// names and <code>connector-types</code>. Both input lists are optional, and you can /// use them to filter the result. /// /// /// <para> /// If no names or <code>connector-types</code> are provided, returns all connector profiles /// in a paginated form. If there is no match, this operation returns an empty list. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorProfiles 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 DescribeConnectorProfiles service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorProfiles">REST API Reference for DescribeConnectorProfiles Operation</seealso> public virtual Task<DescribeConnectorProfilesResponse> DescribeConnectorProfilesAsync(DescribeConnectorProfilesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorProfilesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorProfilesResponseUnmarshaller.Instance; return InvokeAsync<DescribeConnectorProfilesResponse>(request, options, cancellationToken); } #endregion #region DescribeConnectors internal virtual DescribeConnectorsResponse DescribeConnectors(DescribeConnectorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorsResponseUnmarshaller.Instance; return Invoke<DescribeConnectorsResponse>(request, options); } /// <summary> /// Describes the connectors vended by Amazon AppFlow for specified connector types. /// If you don't specify a connector type, this operation describes all connectors vended /// by Amazon AppFlow. If there are more connectors than can be returned in one page, /// the response contains a <code>nextToken</code> object, which can be be passed in to /// the next call to the <code>DescribeConnectors</code> API operation to retrieve the /// next page. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectors 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 DescribeConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectors">REST API Reference for DescribeConnectors Operation</seealso> public virtual Task<DescribeConnectorsResponse> DescribeConnectorsAsync(DescribeConnectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeConnectorsResponseUnmarshaller.Instance; return InvokeAsync<DescribeConnectorsResponse>(request, options, cancellationToken); } #endregion #region DescribeFlow internal virtual DescribeFlowResponse DescribeFlow(DescribeFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlowResponseUnmarshaller.Instance; return Invoke<DescribeFlowResponse>(request, options); } /// <summary> /// Provides a description of the specified flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlow 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 DescribeFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow">REST API Reference for DescribeFlow Operation</seealso> public virtual Task<DescribeFlowResponse> DescribeFlowAsync(DescribeFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlowResponseUnmarshaller.Instance; return InvokeAsync<DescribeFlowResponse>(request, options, cancellationToken); } #endregion #region DescribeFlowExecutionRecords internal virtual DescribeFlowExecutionRecordsResponse DescribeFlowExecutionRecords(DescribeFlowExecutionRecordsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlowExecutionRecordsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlowExecutionRecordsResponseUnmarshaller.Instance; return Invoke<DescribeFlowExecutionRecordsResponse>(request, options); } /// <summary> /// Fetches the execution history of the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlowExecutionRecords 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 DescribeFlowExecutionRecords service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords">REST API Reference for DescribeFlowExecutionRecords Operation</seealso> public virtual Task<DescribeFlowExecutionRecordsResponse> DescribeFlowExecutionRecordsAsync(DescribeFlowExecutionRecordsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlowExecutionRecordsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlowExecutionRecordsResponseUnmarshaller.Instance; return InvokeAsync<DescribeFlowExecutionRecordsResponse>(request, options, cancellationToken); } #endregion #region ListConnectorEntities internal virtual ListConnectorEntitiesResponse ListConnectorEntities(ListConnectorEntitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListConnectorEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConnectorEntitiesResponseUnmarshaller.Instance; return Invoke<ListConnectorEntitiesResponse>(request, options); } /// <summary> /// Returns the list of available connector entities supported by Amazon AppFlow. For /// example, you can query Salesforce for <i>Account</i> and <i>Opportunity</i> entities, /// or query ServiceNow for the <i>Incident</i> entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectorEntities 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 ListConnectorEntities service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectorEntities">REST API Reference for ListConnectorEntities Operation</seealso> public virtual Task<ListConnectorEntitiesResponse> ListConnectorEntitiesAsync(ListConnectorEntitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListConnectorEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConnectorEntitiesResponseUnmarshaller.Instance; return InvokeAsync<ListConnectorEntitiesResponse>(request, options, cancellationToken); } #endregion #region ListConnectors internal virtual ListConnectorsResponse ListConnectors(ListConnectorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConnectorsResponseUnmarshaller.Instance; return Invoke<ListConnectorsResponse>(request, options); } /// <summary> /// Returns the list of all registered custom connectors in your Amazon Web Services account. /// This API lists only custom connectors registered in this account, not the Amazon Web /// Services authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectors 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 ListConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectors">REST API Reference for ListConnectors Operation</seealso> public virtual Task<ListConnectorsResponse> ListConnectorsAsync(ListConnectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListConnectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConnectorsResponseUnmarshaller.Instance; return InvokeAsync<ListConnectorsResponse>(request, options, cancellationToken); } #endregion #region ListFlows internal virtual ListFlowsResponse ListFlows(ListFlowsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFlowsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFlowsResponseUnmarshaller.Instance; return Invoke<ListFlowsResponse>(request, options); } /// <summary> /// Lists all of the flows associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFlows 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 ListFlows service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows">REST API Reference for ListFlows Operation</seealso> public virtual Task<ListFlowsResponse> ListFlowsAsync(ListFlowsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListFlowsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFlowsResponseUnmarshaller.Instance; return InvokeAsync<ListFlowsResponse>(request, options, cancellationToken); } #endregion #region ListTagsForResource internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// Retrieves the tags that are associated with a specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/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 RegisterConnector internal virtual RegisterConnectorResponse RegisterConnector(RegisterConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterConnectorResponseUnmarshaller.Instance; return Invoke<RegisterConnectorResponse>(request, options); } /// <summary> /// Registers a new custom connector with your Amazon Web Services account. Before you /// can register the connector, you must deploy the associated AWS lambda function in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterConnector 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 RegisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/RegisterConnector">REST API Reference for RegisterConnector Operation</seealso> public virtual Task<RegisterConnectorResponse> RegisterConnectorAsync(RegisterConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterConnectorResponseUnmarshaller.Instance; return InvokeAsync<RegisterConnectorResponse>(request, options, cancellationToken); } #endregion #region ResetConnectorMetadataCache internal virtual ResetConnectorMetadataCacheResponse ResetConnectorMetadataCache(ResetConnectorMetadataCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ResetConnectorMetadataCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = ResetConnectorMetadataCacheResponseUnmarshaller.Instance; return Invoke<ResetConnectorMetadataCacheResponse>(request, options); } /// <summary> /// Resets metadata about your connector entities that Amazon AppFlow stored in its cache. /// Use this action when you want Amazon AppFlow to return the latest information about /// the data that you have in a source application. /// /// /// <para> /// Amazon AppFlow returns metadata about your entities when you use the ListConnectorEntities /// or DescribeConnectorEntities actions. Following these actions, Amazon AppFlow caches /// the metadata to reduce the number of API requests that it must send to the source /// application. Amazon AppFlow automatically resets the cache once every hour, but you /// can use this action when you want to get the latest metadata right away. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResetConnectorMetadataCache 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 ResetConnectorMetadataCache service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ResetConnectorMetadataCache">REST API Reference for ResetConnectorMetadataCache Operation</seealso> public virtual Task<ResetConnectorMetadataCacheResponse> ResetConnectorMetadataCacheAsync(ResetConnectorMetadataCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ResetConnectorMetadataCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = ResetConnectorMetadataCacheResponseUnmarshaller.Instance; return InvokeAsync<ResetConnectorMetadataCacheResponse>(request, options, cancellationToken); } #endregion #region StartFlow internal virtual StartFlowResponse StartFlow(StartFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = StartFlowResponseUnmarshaller.Instance; return Invoke<StartFlowResponse>(request, options); } /// <summary> /// Activates an existing flow. For on-demand flows, this operation runs the flow immediately. /// For schedule and event-triggered flows, this operation activates the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartFlow 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 StartFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StartFlow">REST API Reference for StartFlow Operation</seealso> public virtual Task<StartFlowResponse> StartFlowAsync(StartFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = StartFlowResponseUnmarshaller.Instance; return InvokeAsync<StartFlowResponse>(request, options, cancellationToken); } #endregion #region StopFlow internal virtual StopFlowResponse StopFlow(StopFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = StopFlowResponseUnmarshaller.Instance; return Invoke<StopFlowResponse>(request, options); } /// <summary> /// Deactivates the existing flow. For on-demand flows, this operation returns an <code>unsupportedOperationException</code> /// error message. For schedule and event-triggered flows, this operation deactivates /// the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopFlow 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 StopFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.UnsupportedOperationException"> /// The requested operation is not supported for the current flow. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StopFlow">REST API Reference for StopFlow Operation</seealso> public virtual Task<StopFlowResponse> StopFlowAsync(StopFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = StopFlowResponseUnmarshaller.Instance; return InvokeAsync<StopFlowResponse>(request, options, cancellationToken); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Applies a tag to the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/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 UnregisterConnector internal virtual UnregisterConnectorResponse UnregisterConnector(UnregisterConnectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UnregisterConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = UnregisterConnectorResponseUnmarshaller.Instance; return Invoke<UnregisterConnectorResponse>(request, options); } /// <summary> /// Unregisters the custom connector registered in your account that matches the connector /// label provided in the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UnregisterConnector 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 UnregisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UnregisterConnector">REST API Reference for UnregisterConnector Operation</seealso> public virtual Task<UnregisterConnectorResponse> UnregisterConnectorAsync(UnregisterConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UnregisterConnectorRequestMarshaller.Instance; options.ResponseUnmarshaller = UnregisterConnectorResponseUnmarshaller.Instance; return InvokeAsync<UnregisterConnectorResponse>(request, options, cancellationToken); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Removes a tag from the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/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 UpdateConnectorProfile internal virtual UpdateConnectorProfileResponse UpdateConnectorProfile(UpdateConnectorProfileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateConnectorProfileResponseUnmarshaller.Instance; return Invoke<UpdateConnectorProfileResponse>(request, options); } /// <summary> /// Updates a given connector profile associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorProfile 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 UpdateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorProfile">REST API Reference for UpdateConnectorProfile Operation</seealso> public virtual Task<UpdateConnectorProfileResponse> UpdateConnectorProfileAsync(UpdateConnectorProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateConnectorProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateConnectorProfileResponseUnmarshaller.Instance; return InvokeAsync<UpdateConnectorProfileResponse>(request, options, cancellationToken); } #endregion #region UpdateConnectorRegistration internal virtual UpdateConnectorRegistrationResponse UpdateConnectorRegistration(UpdateConnectorRegistrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateConnectorRegistrationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateConnectorRegistrationResponseUnmarshaller.Instance; return Invoke<UpdateConnectorRegistrationResponse>(request, options); } /// <summary> /// Updates a custom connector that you've previously registered. This operation updates /// the connector with one of the following: /// /// <ul> <li> /// <para> /// The latest version of the AWS Lambda function that's assigned to the connector /// </para> /// </li> <li> /// <para> /// A new AWS Lambda function that you specify /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorRegistration 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 UpdateConnectorRegistration service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorRegistration">REST API Reference for UpdateConnectorRegistration Operation</seealso> public virtual Task<UpdateConnectorRegistrationResponse> UpdateConnectorRegistrationAsync(UpdateConnectorRegistrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateConnectorRegistrationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateConnectorRegistrationResponseUnmarshaller.Instance; return InvokeAsync<UpdateConnectorRegistrationResponse>(request, options, cancellationToken); } #endregion #region UpdateFlow internal virtual UpdateFlowResponse UpdateFlow(UpdateFlowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFlowResponseUnmarshaller.Instance; return Invoke<UpdateFlowResponse>(request, options); } /// <summary> /// Updates an existing flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFlow 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 UpdateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateFlow">REST API Reference for UpdateFlow Operation</seealso> public virtual Task<UpdateFlowResponse> UpdateFlowAsync(UpdateFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFlowRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFlowResponseUnmarshaller.Instance; return InvokeAsync<UpdateFlowResponse>(request, options, cancellationToken); } #endregion } }
1,639
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appflow-2020-08-23.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Appflow.Model; namespace Amazon.Appflow { /// <summary> /// Interface for accessing Appflow /// /// Welcome to the Amazon AppFlow API reference. This guide is for developers who need /// detailed information about the Amazon AppFlow API operations, data types, and errors. /// /// /// /// <para> /// Amazon AppFlow is a fully managed integration service that enables you to securely /// transfer data between software as a service (SaaS) applications like Salesforce, Marketo, /// Slack, and ServiceNow, and Amazon Web Services like Amazon S3 and Amazon Redshift. /// /// </para> /// /// <para> /// Use the following links to get started on the Amazon AppFlow API: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Operations.html">Actions</a>: /// An alphabetical list of all Amazon AppFlow API operations. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Types.html">Data /// types</a>: An alphabetical list of all Amazon AppFlow data types. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonParameters.html">Common /// parameters</a>: Parameters that all Query operations can use. /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonErrors.html">Common /// errors</a>: Client and server errors that all operations can return. /// </para> /// </li> </ul> /// <para> /// If you're new to Amazon AppFlow, we recommend that you review the <a href="https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html">Amazon /// AppFlow User Guide</a>. /// </para> /// /// <para> /// Amazon AppFlow API users can use vendor-specific mechanisms for OAuth, and include /// applicable OAuth attributes (such as <code>auth-code</code> and <code>redirecturi</code>) /// with the connector-specific <code>ConnectorProfileProperties</code> when creating /// a new connector profile using Amazon AppFlow API operations. For example, Salesforce /// users can refer to the <a href="https://help.salesforce.com/articleView?id=remoteaccess_authenticate.htm"> /// <i>Authorize Apps with OAuth</i> </a> documentation. /// </para> /// </summary> public partial interface IAmazonAppflow : IAmazonService, IDisposable { #if AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IAppflowPaginatorFactory Paginators { get; } #endif #region CancelFlowExecutions /// <summary> /// Cancels active runs for a flow. /// /// /// <para> /// You can cancel all of the active runs for a flow, or you can cancel specific runs /// by providing their IDs. /// </para> /// /// <para> /// You can cancel a flow run only when the run is in progress. You can't cancel a run /// that has already completed or failed. You also can't cancel a run that's scheduled /// to occur but hasn't started yet. To prevent a scheduled run, you can deactivate the /// flow with the <code>StopFlow</code> action. /// </para> /// /// <para> /// You cannot resume a run after you cancel it. /// </para> /// /// <para> /// When you send your request, the status for each run becomes <code>CancelStarted</code>. /// When the cancellation completes, the status becomes <code>Canceled</code>. /// </para> /// <note> /// <para> /// When you cancel a run, you still incur charges for any data that the run already processed /// before the cancellation. If the run had already written some data to the flow destination, /// then that data remains in the destination. If you configured the flow to use a batch /// API (such as the Salesforce Bulk API 2.0), then the run will finish reading or writing /// its entire batch of data after the cancellation. For these operations, the data processing /// charges for Amazon AppFlow apply. For the pricing information, see <a href="http://aws.amazon.com/appflow/pricing/">Amazon /// AppFlow pricing</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelFlowExecutions 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 CancelFlowExecutions service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CancelFlowExecutions">REST API Reference for CancelFlowExecutions Operation</seealso> Task<CancelFlowExecutionsResponse> CancelFlowExecutionsAsync(CancelFlowExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateConnectorProfile /// <summary> /// Creates a new connector profile associated with your Amazon Web Services account. /// There is a soft quota of 100 connector profiles per Amazon Web Services account. If /// you need more connector profiles than this quota allows, you can submit a request /// to the Amazon AppFlow team through the Amazon AppFlow support channel. In each connector /// profile that you create, you can provide the credentials and properties for only one /// connector. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateConnectorProfile 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 CreateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateConnectorProfile">REST API Reference for CreateConnectorProfile Operation</seealso> Task<CreateConnectorProfileResponse> CreateConnectorProfileAsync(CreateConnectorProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateFlow /// <summary> /// Enables your application to create a new flow using Amazon AppFlow. You must create /// a connector profile before calling this API. Please note that the Request Syntax below /// shows syntax for multiple destinations, however, you can only transfer data to one /// item in this list at a time. Amazon AppFlow does not currently support flows to multiple /// destinations at once. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFlow 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 CreateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateFlow">REST API Reference for CreateFlow Operation</seealso> Task<CreateFlowResponse> CreateFlowAsync(CreateFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteConnectorProfile /// <summary> /// Enables you to delete an existing connector profile. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteConnectorProfile 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 DeleteConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteConnectorProfile">REST API Reference for DeleteConnectorProfile Operation</seealso> Task<DeleteConnectorProfileResponse> DeleteConnectorProfileAsync(DeleteConnectorProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteFlow /// <summary> /// Enables your application to delete an existing flow. Before deleting the flow, Amazon /// AppFlow validates the request by checking the flow configuration and status. You can /// delete flows one at a time. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFlow 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 DeleteFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteFlow">REST API Reference for DeleteFlow Operation</seealso> Task<DeleteFlowResponse> DeleteFlowAsync(DeleteFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeConnector /// <summary> /// Describes the given custom connector registered in your Amazon Web Services account. /// This API can be used for custom connectors that are registered in your account and /// also for Amazon authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnector 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 DescribeConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnector">REST API Reference for DescribeConnector Operation</seealso> Task<DescribeConnectorResponse> DescribeConnectorAsync(DescribeConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeConnectorEntity /// <summary> /// Provides details regarding the entity used with the connector, with a description /// of the data model for each field in that entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorEntity 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 DescribeConnectorEntity service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorEntity">REST API Reference for DescribeConnectorEntity Operation</seealso> Task<DescribeConnectorEntityResponse> DescribeConnectorEntityAsync(DescribeConnectorEntityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeConnectorProfiles /// <summary> /// Returns a list of <code>connector-profile</code> details matching the provided <code>connector-profile</code> /// names and <code>connector-types</code>. Both input lists are optional, and you can /// use them to filter the result. /// /// /// <para> /// If no names or <code>connector-types</code> are provided, returns all connector profiles /// in a paginated form. If there is no match, this operation returns an empty list. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectorProfiles 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 DescribeConnectorProfiles service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorProfiles">REST API Reference for DescribeConnectorProfiles Operation</seealso> Task<DescribeConnectorProfilesResponse> DescribeConnectorProfilesAsync(DescribeConnectorProfilesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeConnectors /// <summary> /// Describes the connectors vended by Amazon AppFlow for specified connector types. /// If you don't specify a connector type, this operation describes all connectors vended /// by Amazon AppFlow. If there are more connectors than can be returned in one page, /// the response contains a <code>nextToken</code> object, which can be be passed in to /// the next call to the <code>DescribeConnectors</code> API operation to retrieve the /// next page. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeConnectors 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 DescribeConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectors">REST API Reference for DescribeConnectors Operation</seealso> Task<DescribeConnectorsResponse> DescribeConnectorsAsync(DescribeConnectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeFlow /// <summary> /// Provides a description of the specified flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlow 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 DescribeFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow">REST API Reference for DescribeFlow Operation</seealso> Task<DescribeFlowResponse> DescribeFlowAsync(DescribeFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeFlowExecutionRecords /// <summary> /// Fetches the execution history of the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeFlowExecutionRecords 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 DescribeFlowExecutionRecords service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords">REST API Reference for DescribeFlowExecutionRecords Operation</seealso> Task<DescribeFlowExecutionRecordsResponse> DescribeFlowExecutionRecordsAsync(DescribeFlowExecutionRecordsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListConnectorEntities /// <summary> /// Returns the list of available connector entities supported by Amazon AppFlow. For /// example, you can query Salesforce for <i>Account</i> and <i>Opportunity</i> entities, /// or query ServiceNow for the <i>Incident</i> entity. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectorEntities 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 ListConnectorEntities service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectorEntities">REST API Reference for ListConnectorEntities Operation</seealso> Task<ListConnectorEntitiesResponse> ListConnectorEntitiesAsync(ListConnectorEntitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListConnectors /// <summary> /// Returns the list of all registered custom connectors in your Amazon Web Services account. /// This API lists only custom connectors registered in this account, not the Amazon Web /// Services authored connectors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListConnectors 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 ListConnectors service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectors">REST API Reference for ListConnectors Operation</seealso> Task<ListConnectorsResponse> ListConnectorsAsync(ListConnectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListFlows /// <summary> /// Lists all of the flows associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFlows 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 ListFlows service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows">REST API Reference for ListFlows Operation</seealso> Task<ListFlowsResponse> ListFlowsAsync(ListFlowsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// Retrieves the tags that are associated with a specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RegisterConnector /// <summary> /// Registers a new custom connector with your Amazon Web Services account. Before you /// can register the connector, you must deploy the associated AWS lambda function in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterConnector 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 RegisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/RegisterConnector">REST API Reference for RegisterConnector Operation</seealso> Task<RegisterConnectorResponse> RegisterConnectorAsync(RegisterConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ResetConnectorMetadataCache /// <summary> /// Resets metadata about your connector entities that Amazon AppFlow stored in its cache. /// Use this action when you want Amazon AppFlow to return the latest information about /// the data that you have in a source application. /// /// /// <para> /// Amazon AppFlow returns metadata about your entities when you use the ListConnectorEntities /// or DescribeConnectorEntities actions. Following these actions, Amazon AppFlow caches /// the metadata to reduce the number of API requests that it must send to the source /// application. Amazon AppFlow automatically resets the cache once every hour, but you /// can use this action when you want to get the latest metadata right away. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResetConnectorMetadataCache 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 ResetConnectorMetadataCache service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ResetConnectorMetadataCache">REST API Reference for ResetConnectorMetadataCache Operation</seealso> Task<ResetConnectorMetadataCacheResponse> ResetConnectorMetadataCacheAsync(ResetConnectorMetadataCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartFlow /// <summary> /// Activates an existing flow. For on-demand flows, this operation runs the flow immediately. /// For schedule and event-triggered flows, this operation activates the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartFlow 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 StartFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StartFlow">REST API Reference for StartFlow Operation</seealso> Task<StartFlowResponse> StartFlowAsync(StartFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StopFlow /// <summary> /// Deactivates the existing flow. For on-demand flows, this operation returns an <code>unsupportedOperationException</code> /// error message. For schedule and event-triggered flows, this operation deactivates /// the flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopFlow 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 StopFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.UnsupportedOperationException"> /// The requested operation is not supported for the current flow. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StopFlow">REST API Reference for StopFlow Operation</seealso> Task<StopFlowResponse> StopFlowAsync(StopFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Applies a tag to the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UnregisterConnector /// <summary> /// Unregisters the custom connector registered in your account that matches the connector /// label provided in the request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UnregisterConnector 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 UnregisterConnector service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UnregisterConnector">REST API Reference for UnregisterConnector Operation</seealso> Task<UnregisterConnectorResponse> UnregisterConnectorAsync(UnregisterConnectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Removes a tag from the specified flow. /// </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 Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateConnectorProfile /// <summary> /// Updates a given connector profile associated with your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorProfile 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 UpdateConnectorProfile service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorProfile">REST API Reference for UpdateConnectorProfile Operation</seealso> Task<UpdateConnectorProfileResponse> UpdateConnectorProfileAsync(UpdateConnectorProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateConnectorRegistration /// <summary> /// Updates a custom connector that you've previously registered. This operation updates /// the connector with one of the following: /// /// <ul> <li> /// <para> /// The latest version of the AWS Lambda function that's assigned to the connector /// </para> /// </li> <li> /// <para> /// A new AWS Lambda function that you specify /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateConnectorRegistration 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 UpdateConnectorRegistration service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.AccessDeniedException"> /// AppFlow/Requester has invalid or missing permissions. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ThrottlingException"> /// API calls have exceeded the maximum allowed API request rate per account and per Region. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorRegistration">REST API Reference for UpdateConnectorRegistration Operation</seealso> Task<UpdateConnectorRegistrationResponse> UpdateConnectorRegistrationAsync(UpdateConnectorRegistrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateFlow /// <summary> /// Updates an existing flow. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFlow 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 UpdateFlow service method, as returned by Appflow.</returns> /// <exception cref="Amazon.Appflow.Model.ConflictException"> /// There was a conflict when processing the request (for example, a flow with the given /// name already exists within the account. Check for conflicting resource names and try /// again. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorAuthenticationException"> /// An error occurred when authenticating with the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.ConnectorServerException"> /// An error occurred when retrieving data from the connector endpoint. /// </exception> /// <exception cref="Amazon.Appflow.Model.InternalServerException"> /// An internal service error occurred during the processing of your request. Try again /// later. /// </exception> /// <exception cref="Amazon.Appflow.Model.ResourceNotFoundException"> /// The resource specified in the request (such as the source or destination connector /// profile) is not found. /// </exception> /// <exception cref="Amazon.Appflow.Model.ServiceQuotaExceededException"> /// The request would cause a service quota (such as the number of flows) to be exceeded. /// </exception> /// <exception cref="Amazon.Appflow.Model.ValidationException"> /// The request has invalid or missing parameters. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateFlow">REST API Reference for UpdateFlow Operation</seealso> Task<UpdateFlowResponse> UpdateFlowAsync(UpdateFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
1,014
aws-sdk-net
aws
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.Appflow")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon Appflow. Amazon AppFlow is a fully managed integration service that securely transfers data between AWS services and SaaS applications. This update releases the first version of Amazon AppFlow APIs and SDK.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Amazon Appflow. Amazon AppFlow is a fully managed integration service that securely transfers data between AWS services and SaaS applications. This update releases the first version of Amazon AppFlow APIs and SDK.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Amazon Appflow. Amazon AppFlow is a fully managed integration service that securely transfers data between AWS services and SaaS applications. This update releases the first version of Amazon AppFlow APIs and SDK.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Amazon Appflow. Amazon AppFlow is a fully managed integration service that securely transfers data between AWS services and SaaS applications. This update releases the first version of Amazon AppFlow APIs and SDK.")] #else #error Unknown platform constant - unable to set correct AssemblyDescription #endif [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] [assembly: AssemblyCompany("Amazon.com, Inc")] [assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.3")] [assembly: AssemblyFileVersion("3.7.113.0")] [assembly: System.CLSCompliant(true)] #if BCL [assembly: System.Security.AllowPartiallyTrustedCallers] #endif
51
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appintegrations-2020-07-29.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.AppIntegrationsService.Internal; namespace Amazon.AppIntegrationsService { /// <summary> /// Configuration for accessing Amazon AppIntegrationsService service /// </summary> [AWSSignerType("v4")] public partial class AmazonAppIntegrationsServiceConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.101.58"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonAppIntegrationsServiceConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonAppIntegrationsServiceDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "app-integrations"; this.EndpointProvider = new AmazonAppIntegrationsServiceEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "app-integrations"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2020-07-29"; } } /// <summary> /// Gets the value of UserAgent property. /// </summary> public override string UserAgent { get { return _userAgent; } } } }
83
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appintegrations-2020-07-29.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.AppIntegrationsService { /// <summary> /// Configuration for accessing Amazon AppIntegrationsService service /// </summary> public static class AmazonAppIntegrationsServiceDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// AppIntegrationsService /// </summary> public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations() { return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration> { Standard, InRegion, CrossRegion, Mobile, Auto, Legacy }); } /// <summary> /// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Standard, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.InRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.CrossRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Mobile, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:30 ConnectTimeout = TimeSpan.FromMilliseconds(30000L), // 0:00:30 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p> /// </summary> public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Auto, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p> /// </summary> public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Legacy, RetryMode = RequestRetryMode.Legacy, StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy, ConnectTimeout = null, TlsNegotiationTimeout = null, TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; } }
146
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appintegrations-2020-07-29.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.AppIntegrationsService.Endpoints { /// <summary> /// Contains parameters used for resolving AppIntegrationsService endpoints /// Parameters can be sourced from client config and service operations /// Used by internal AppIntegrationsServiceEndpointProvider and AppIntegrationsServiceEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class AppIntegrationsServiceEndpointParameters : EndpointParameters { /// <summary> /// AppIntegrationsServiceEndpointParameters constructor /// </summary> public AppIntegrationsServiceEndpointParameters() { UseDualStack = false; UseFIPS = false; } /// <summary> /// Region parameter /// </summary> public string Region { get { return (string)this["Region"]; } set { this["Region"] = value; } } /// <summary> /// UseDualStack parameter /// </summary> public bool? UseDualStack { get { return (bool?)this["UseDualStack"]; } set { this["UseDualStack"] = value; } } /// <summary> /// UseFIPS parameter /// </summary> public bool? UseFIPS { get { return (bool?)this["UseFIPS"]; } set { this["UseFIPS"] = value; } } /// <summary> /// Endpoint parameter /// </summary> public string Endpoint { get { return (string)this["Endpoint"]; } set { this["Endpoint"] = value; } } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appintegrations-2020-07-29.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.AppIntegrationsService { ///<summary> /// Common exception for the AppIntegrationsService service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonAppIntegrationsServiceException : AmazonServiceException { /// <summary> /// Construct instance of AmazonAppIntegrationsServiceException /// </summary> /// <param name="message"></param> public AmazonAppIntegrationsServiceException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonAppIntegrationsServiceException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonAppIntegrationsServiceException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonAppIntegrationsServiceException /// </summary> /// <param name="innerException"></param> public AmazonAppIntegrationsServiceException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonAppIntegrationsServiceException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonAppIntegrationsServiceException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonAppIntegrationsServiceException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonAppIntegrationsServiceException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) { } #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AmazonAppIntegrationsServiceException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AmazonAppIntegrationsServiceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } #endif } }
105
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appintegrations-2020-07-29.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.AppIntegrationsService { }
26
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appintegrations-2020-07-29.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Runtime.Endpoints; using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn; namespace Amazon.AppIntegrationsService.Internal { /// <summary> /// Amazon AppIntegrationsService endpoint provider. /// Resolves endpoint for given set of AppIntegrationsServiceEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonAppIntegrationsServiceEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for AppIntegrationsServiceEndpointParameters /// </summary> public Endpoint ResolveEndpoint(EndpointParameters parameters) { if (parameters == null) throw new ArgumentNullException("parameters"); if (parameters["UseDualStack"] == null) throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution"); if (parameters["UseFIPS"] == null) throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution"); var refs = new Dictionary<string, object>() { ["Region"] = parameters["Region"], ["UseDualStack"] = parameters["UseDualStack"], ["UseFIPS"] = parameters["UseFIPS"], ["Endpoint"] = parameters["Endpoint"], }; if (IsSet(refs["Endpoint"])) { if (Equals(refs["UseFIPS"], true)) { throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported"); } if (Equals(refs["UseDualStack"], true)) { throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported"); } return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (IsSet(refs["Region"])) { if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://app-integrations-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { return new Endpoint(Interpolate(@"https://app-integrations-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS"); } if (Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://app-integrations.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint(Interpolate(@"https://app-integrations.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } } throw new AmazonClientException("Invalid Configuration: Missing Region"); throw new AmazonClientException("Cannot resolve endpoint"); } } }
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 appintegrations-2020-07-29.normal.json service model. */ using System; using Amazon.AppIntegrationsService.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.AppIntegrationsService.Endpoints; #pragma warning disable 1591 namespace Amazon.AppIntegrationsService.Internal { /// <summary> /// Amazon AppIntegrationsService endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for AppIntegrationsService service requests. /// Collects values for AppIntegrationsServiceEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses AppIntegrationsServiceEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonAppIntegrationsServiceEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonAppIntegrationsServiceConfig)requestContext.ClientConfig; var result = new AppIntegrationsServiceEndpointParameters(); result.Region = config.RegionEndpoint?.SystemName; result.UseDualStack = config.UseDualstackEndpoint; result.UseFIPS = config.UseFIPSEndpoint; result.Endpoint = config.ServiceURL; // The region needs to be determined from the ServiceURL if not set. var regionEndpoint = config.RegionEndpoint; if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL)) { var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL); result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName; } // To support legacy endpoint overridding rules in the endpoints.json if (result.Region == "us-east-1-regional") { result.Region = "us-east-1"; } // Use AlternateEndpoint region override if set if (requestContext.Request.AlternateEndpoint != null) { result.Region = requestContext.Request.AlternateEndpoint.SystemName; } // Assign staticContextParams and contextParam per operation return result; } } }
83
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appintegrations-2020-07-29.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.AppIntegrationsService.Internal { /// <summary> /// Service metadata for Amazon AppIntegrationsService service /// </summary> public partial class AmazonAppIntegrationsServiceMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "AppIntegrations"; } } /// <summary> /// Gets the dictionary that gives mapping of renamed operations /// </summary> public System.Collections.Generic.IDictionary<string, string> OperationNameMapping { get { return new System.Collections.Generic.Dictionary<string, string>(0) { }; } } } }
55
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appintegrations-2020-07-29.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AppIntegrationsService.Model { /// <summary> /// You do not have sufficient access to perform this action. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AccessDeniedException : AmazonAppIntegrationsServiceException { /// <summary> /// Constructs a new AccessDeniedException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public AccessDeniedException(string message) : base(message) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AccessDeniedException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="innerException"></param> public AccessDeniedException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccessDeniedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccessDeniedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AccessDeniedException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AccessDeniedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124