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 appintegrations-2020-07-29.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AppIntegrationsService
{
/// <summary>
/// Base class for AppIntegrationsService operation requests.
/// </summary>
public partial class AmazonAppIntegrationsServiceRequest : AmazonWebServiceRequest
{
}
} | 30 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// Container for the parameters to the CreateDataIntegration operation.
/// Creates and persists a DataIntegration resource.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <code>CreateDataIntegration</code> API.
/// </para>
/// </note>
/// </summary>
public partial class CreateDataIntegrationRequest : AmazonAppIntegrationsServiceRequest
{
private string _clientToken;
private string _description;
private FileConfiguration _fileConfiguration;
private string _kmsKey;
private string _name;
private Dictionary<string, Dictionary<string, List<string>>> _objectConfiguration = new Dictionary<string, Dictionary<string, List<string>>>();
private ScheduleConfiguration _scheduleConfig;
private string _sourceURI;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property ClientToken.
/// <para>
/// A unique, case-sensitive identifier that you provide to ensure the idempotency of
/// the request. If not provided, the Amazon Web Services SDK populates this field. For
/// more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making
/// retries safe with idempotent APIs</a>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// A description of the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property FileConfiguration.
/// <para>
/// The configuration for what files should be pulled from the source.
/// </para>
/// </summary>
public FileConfiguration FileConfiguration
{
get { return this._fileConfiguration; }
set { this._fileConfiguration = value; }
}
// Check to see if FileConfiguration property is set
internal bool IsSetFileConfiguration()
{
return this._fileConfiguration != null;
}
/// <summary>
/// Gets and sets the property KmsKey.
/// <para>
/// The KMS key for the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string KmsKey
{
get { return this._kmsKey; }
set { this._kmsKey = value; }
}
// Check to see if KmsKey property is set
internal bool IsSetKmsKey()
{
return this._kmsKey != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property ObjectConfiguration.
/// <para>
/// The configuration for what data should be pulled from the source.
/// </para>
/// </summary>
public Dictionary<string, Dictionary<string, List<string>>> ObjectConfiguration
{
get { return this._objectConfiguration; }
set { this._objectConfiguration = value; }
}
// Check to see if ObjectConfiguration property is set
internal bool IsSetObjectConfiguration()
{
return this._objectConfiguration != null && this._objectConfiguration.Count > 0;
}
/// <summary>
/// Gets and sets the property ScheduleConfig.
/// <para>
/// The name of the data and how often it should be pulled from the source.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ScheduleConfiguration ScheduleConfig
{
get { return this._scheduleConfig; }
set { this._scheduleConfig = value; }
}
// Check to see if ScheduleConfig property is set
internal bool IsSetScheduleConfig()
{
return this._scheduleConfig != null;
}
/// <summary>
/// Gets and sets the property SourceURI.
/// <para>
/// The URI of the data source.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1000)]
public string SourceURI
{
get { return this._sourceURI; }
set { this._sourceURI = value; }
}
// Check to see if SourceURI property is set
internal bool IsSetSourceURI()
{
return this._sourceURI != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags used to organize, track, or control access for this resource. For example,
/// { "tags": {"key1":"value1", "key2":"value2"} }.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=200)]
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 229 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// This is the response object from the CreateDataIntegration operation.
/// </summary>
public partial class CreateDataIntegrationResponse : AmazonWebServiceResponse
{
private string _arn;
private string _clientToken;
private string _description;
private FileConfiguration _fileConfiguration;
private string _id;
private string _kmsKey;
private string _name;
private Dictionary<string, Dictionary<string, List<string>>> _objectConfiguration = new Dictionary<string, Dictionary<string, List<string>>>();
private ScheduleConfiguration _scheduleConfiguration;
private string _sourceURI;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The Amazon Resource Name (ARN)
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property ClientToken.
/// <para>
/// A unique, case-sensitive identifier that you provide to ensure the idempotency of
/// the request. If not provided, the Amazon Web Services SDK populates this field. For
/// more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making
/// retries safe with idempotent APIs</a>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// A description of the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property FileConfiguration.
/// <para>
/// The configuration for what files should be pulled from the source.
/// </para>
/// </summary>
public FileConfiguration FileConfiguration
{
get { return this._fileConfiguration; }
set { this._fileConfiguration = value; }
}
// Check to see if FileConfiguration property is set
internal bool IsSetFileConfiguration()
{
return this._fileConfiguration != null;
}
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// A unique identifier.
/// </para>
/// </summary>
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property KmsKey.
/// <para>
/// The KMS key for the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string KmsKey
{
get { return this._kmsKey; }
set { this._kmsKey = value; }
}
// Check to see if KmsKey property is set
internal bool IsSetKmsKey()
{
return this._kmsKey != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property ObjectConfiguration.
/// <para>
/// The configuration for what data should be pulled from the source.
/// </para>
/// </summary>
public Dictionary<string, Dictionary<string, List<string>>> ObjectConfiguration
{
get { return this._objectConfiguration; }
set { this._objectConfiguration = value; }
}
// Check to see if ObjectConfiguration property is set
internal bool IsSetObjectConfiguration()
{
return this._objectConfiguration != null && this._objectConfiguration.Count > 0;
}
/// <summary>
/// Gets and sets the property ScheduleConfiguration.
/// <para>
/// The name of the data and how often it should be pulled from the source.
/// </para>
/// </summary>
public ScheduleConfiguration ScheduleConfiguration
{
get { return this._scheduleConfiguration; }
set { this._scheduleConfiguration = value; }
}
// Check to see if ScheduleConfiguration property is set
internal bool IsSetScheduleConfiguration()
{
return this._scheduleConfiguration != null;
}
/// <summary>
/// Gets and sets the property SourceURI.
/// <para>
/// The URI of the data source.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string SourceURI
{
get { return this._sourceURI; }
set { this._sourceURI = value; }
}
// Check to see if SourceURI property is set
internal bool IsSetSourceURI()
{
return this._sourceURI != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags used to organize, track, or control access for this resource. For example,
/// { "tags": {"key1":"value1", "key2":"value2"} }.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=200)]
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 258 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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>
/// Container for the parameters to the CreateEventIntegration operation.
/// Creates an EventIntegration, given a specified name, description, and a reference
/// to an Amazon EventBridge bus in your account and a partner event source that pushes
/// events to that bus. No objects are created in the your account, only metadata that
/// is persisted on the EventIntegration control plane.
/// </summary>
public partial class CreateEventIntegrationRequest : AmazonAppIntegrationsServiceRequest
{
private string _clientToken;
private string _description;
private string _eventBridgeBus;
private EventFilter _eventFilter;
private string _name;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property ClientToken.
/// <para>
/// A unique, case-sensitive identifier that you provide to ensure the idempotency of
/// the request. If not provided, the Amazon Web Services SDK populates this field. For
/// more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making
/// retries safe with idempotent APIs</a>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the event integration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property EventBridgeBus.
/// <para>
/// The EventBridge bus.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string EventBridgeBus
{
get { return this._eventBridgeBus; }
set { this._eventBridgeBus = value; }
}
// Check to see if EventBridgeBus property is set
internal bool IsSetEventBridgeBus()
{
return this._eventBridgeBus != null;
}
/// <summary>
/// Gets and sets the property EventFilter.
/// <para>
/// The event filter.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public EventFilter EventFilter
{
get { return this._eventFilter; }
set { this._eventFilter = value; }
}
// Check to see if EventFilter property is set
internal bool IsSetEventFilter()
{
return this._eventFilter != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the event integration.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags used to organize, track, or control access for this resource. For example,
/// { "tags": {"key1":"value1", "key2":"value2"} }.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=200)]
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 166 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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>
/// This is the response object from the CreateEventIntegration operation.
/// </summary>
public partial class CreateEventIntegrationResponse : AmazonWebServiceResponse
{
private string _eventIntegrationArn;
/// <summary>
/// Gets and sets the property EventIntegrationArn.
/// <para>
/// The Amazon Resource Name (ARN) of the event integration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string EventIntegrationArn
{
get { return this._eventIntegrationArn; }
set { this._eventIntegrationArn = value; }
}
// Check to see if EventIntegrationArn property is set
internal bool IsSetEventIntegrationArn()
{
return this._eventIntegrationArn != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// Summary information about the DataIntegration association.
/// </summary>
public partial class DataIntegrationAssociationSummary
{
private string _clientId;
private string _dataIntegrationArn;
private string _dataIntegrationAssociationArn;
/// <summary>
/// Gets and sets the property ClientId.
/// <para>
/// The identifier for the client that is associated with the DataIntegration association.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ClientId
{
get { return this._clientId; }
set { this._clientId = value; }
}
// Check to see if ClientId property is set
internal bool IsSetClientId()
{
return this._clientId != null;
}
/// <summary>
/// Gets and sets the property DataIntegrationArn.
/// <para>
/// The Amazon Resource Name (ARN) of the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string DataIntegrationArn
{
get { return this._dataIntegrationArn; }
set { this._dataIntegrationArn = value; }
}
// Check to see if DataIntegrationArn property is set
internal bool IsSetDataIntegrationArn()
{
return this._dataIntegrationArn != null;
}
/// <summary>
/// Gets and sets the property DataIntegrationAssociationArn.
/// <para>
/// The Amazon Resource Name (ARN) of the DataIntegration association.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string DataIntegrationAssociationArn
{
get { return this._dataIntegrationAssociationArn; }
set { this._dataIntegrationAssociationArn = value; }
}
// Check to see if DataIntegrationAssociationArn property is set
internal bool IsSetDataIntegrationAssociationArn()
{
return this._dataIntegrationAssociationArn != null;
}
}
} | 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 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>
/// Summary information about the DataIntegration.
/// </summary>
public partial class DataIntegrationSummary
{
private string _arn;
private string _name;
private string _sourceURI;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The Amazon Resource Name (ARN) of the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property SourceURI.
/// <para>
/// The URI of the data source.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string SourceURI
{
get { return this._sourceURI; }
set { this._sourceURI = value; }
}
// Check to see if SourceURI property is set
internal bool IsSetSourceURI()
{
return this._sourceURI != null;
}
}
} | 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 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>
/// Container for the parameters to the DeleteDataIntegration operation.
/// Deletes the DataIntegration. Only DataIntegrations that don't have any DataIntegrationAssociations
/// can be deleted. Deleting a DataIntegration also deletes the underlying Amazon AppFlow
/// flow and service linked role.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
public partial class DeleteDataIntegrationRequest : AmazonAppIntegrationsServiceRequest
{
private string _dataIntegrationIdentifier;
/// <summary>
/// Gets and sets the property DataIntegrationIdentifier.
/// <para>
/// A unique identifier for the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string DataIntegrationIdentifier
{
get { return this._dataIntegrationIdentifier; }
set { this._dataIntegrationIdentifier = value; }
}
// Check to see if DataIntegrationIdentifier property is set
internal bool IsSetDataIntegrationIdentifier()
{
return this._dataIntegrationIdentifier != null;
}
}
} | 70 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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>
/// This is the response object from the DeleteDataIntegration operation.
/// </summary>
public partial class DeleteDataIntegrationResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// Container for the parameters to the DeleteEventIntegration operation.
/// Deletes the specified existing event integration. If the event integration is associated
/// with clients, the request is rejected.
/// </summary>
public partial class DeleteEventIntegrationRequest : AmazonAppIntegrationsServiceRequest
{
private string _name;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the event integration.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
} | 60 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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>
/// This is the response object from the DeleteEventIntegration operation.
/// </summary>
public partial class DeleteEventIntegrationResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// A resource with the specified name already exists.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class DuplicateResourceException : AmazonAppIntegrationsServiceException
{
/// <summary>
/// Constructs a new DuplicateResourceException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public DuplicateResourceException(string message)
: base(message) {}
/// <summary>
/// Construct instance of DuplicateResourceException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public DuplicateResourceException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of DuplicateResourceException
/// </summary>
/// <param name="innerException"></param>
public DuplicateResourceException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of DuplicateResourceException
/// </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 DuplicateResourceException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of DuplicateResourceException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public DuplicateResourceException(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 DuplicateResourceException 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 DuplicateResourceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// The event filter.
/// </summary>
public partial class EventFilter
{
private string _source;
/// <summary>
/// Gets and sets the property Source.
/// <para>
/// The source of the events.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string Source
{
get { return this._source; }
set { this._source = value; }
}
// Check to see if Source property is set
internal bool IsSetSource()
{
return this._source != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// The event integration.
/// </summary>
public partial class EventIntegration
{
private string _description;
private string _eventBridgeBus;
private EventFilter _eventFilter;
private string _eventIntegrationArn;
private string _name;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The event integration description.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property EventBridgeBus.
/// <para>
/// The Amazon EventBridge bus for the event integration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string EventBridgeBus
{
get { return this._eventBridgeBus; }
set { this._eventBridgeBus = value; }
}
// Check to see if EventBridgeBus property is set
internal bool IsSetEventBridgeBus()
{
return this._eventBridgeBus != null;
}
/// <summary>
/// Gets and sets the property EventFilter.
/// <para>
/// The event integration filter.
/// </para>
/// </summary>
public EventFilter EventFilter
{
get { return this._eventFilter; }
set { this._eventFilter = value; }
}
// Check to see if EventFilter property is set
internal bool IsSetEventFilter()
{
return this._eventFilter != null;
}
/// <summary>
/// Gets and sets the property EventIntegrationArn.
/// <para>
/// The Amazon Resource Name (ARN) of the event integration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string EventIntegrationArn
{
get { return this._eventIntegrationArn; }
set { this._eventIntegrationArn = value; }
}
// Check to see if EventIntegrationArn property is set
internal bool IsSetEventIntegrationArn()
{
return this._eventIntegrationArn != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the event integration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags used to organize, track, or control access for this resource. For example,
/// { "tags": {"key1":"value1", "key2":"value2"} }.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=200)]
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 158 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// The event integration association.
/// </summary>
public partial class EventIntegrationAssociation
{
private Dictionary<string, string> _clientAssociationMetadata = new Dictionary<string, string>();
private string _clientId;
private string _eventBridgeRuleName;
private string _eventIntegrationAssociationArn;
private string _eventIntegrationAssociationId;
private string _eventIntegrationName;
/// <summary>
/// Gets and sets the property ClientAssociationMetadata.
/// <para>
/// The metadata associated with the client.
/// </para>
/// </summary>
public Dictionary<string, string> ClientAssociationMetadata
{
get { return this._clientAssociationMetadata; }
set { this._clientAssociationMetadata = value; }
}
// Check to see if ClientAssociationMetadata property is set
internal bool IsSetClientAssociationMetadata()
{
return this._clientAssociationMetadata != null && this._clientAssociationMetadata.Count > 0;
}
/// <summary>
/// Gets and sets the property ClientId.
/// <para>
/// The identifier for the client that is associated with the event integration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ClientId
{
get { return this._clientId; }
set { this._clientId = value; }
}
// Check to see if ClientId property is set
internal bool IsSetClientId()
{
return this._clientId != null;
}
/// <summary>
/// Gets and sets the property EventBridgeRuleName.
/// <para>
/// The name of the EventBridge rule.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string EventBridgeRuleName
{
get { return this._eventBridgeRuleName; }
set { this._eventBridgeRuleName = value; }
}
// Check to see if EventBridgeRuleName property is set
internal bool IsSetEventBridgeRuleName()
{
return this._eventBridgeRuleName != null;
}
/// <summary>
/// Gets and sets the property EventIntegrationAssociationArn.
/// <para>
/// The Amazon Resource Name (ARN) for the event integration association.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string EventIntegrationAssociationArn
{
get { return this._eventIntegrationAssociationArn; }
set { this._eventIntegrationAssociationArn = value; }
}
// Check to see if EventIntegrationAssociationArn property is set
internal bool IsSetEventIntegrationAssociationArn()
{
return this._eventIntegrationAssociationArn != null;
}
/// <summary>
/// Gets and sets the property EventIntegrationAssociationId.
/// <para>
/// The identifier for the event integration association.
/// </para>
/// </summary>
public string EventIntegrationAssociationId
{
get { return this._eventIntegrationAssociationId; }
set { this._eventIntegrationAssociationId = value; }
}
// Check to see if EventIntegrationAssociationId property is set
internal bool IsSetEventIntegrationAssociationId()
{
return this._eventIntegrationAssociationId != null;
}
/// <summary>
/// Gets and sets the property EventIntegrationName.
/// <para>
/// The name of the event integration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string EventIntegrationName
{
get { return this._eventIntegrationName; }
set { this._eventIntegrationName = value; }
}
// Check to see if EventIntegrationName property is set
internal bool IsSetEventIntegrationName()
{
return this._eventIntegrationName != null;
}
}
} | 156 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// The configuration for what files should be pulled from the source.
/// </summary>
public partial class FileConfiguration
{
private Dictionary<string, List<string>> _filters = new Dictionary<string, List<string>>();
private List<string> _folders = new List<string>();
/// <summary>
/// Gets and sets the property Filters.
/// <para>
/// Restrictions for what files should be pulled from the source.
/// </para>
/// </summary>
public Dictionary<string, List<string>> Filters
{
get { return this._filters; }
set { this._filters = value; }
}
// Check to see if Filters property is set
internal bool IsSetFilters()
{
return this._filters != null && this._filters.Count > 0;
}
/// <summary>
/// Gets and sets the property Folders.
/// <para>
/// Identifiers for the source folders to pull all files from recursively.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=10)]
public List<string> Folders
{
get { return this._folders; }
set { this._folders = value; }
}
// Check to see if Folders property is set
internal bool IsSetFolders()
{
return this._folders != null && this._folders.Count > 0;
}
}
} | 77 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// Container for the parameters to the GetDataIntegration operation.
/// Returns information about the DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
public partial class GetDataIntegrationRequest : AmazonAppIntegrationsServiceRequest
{
private string _identifier;
/// <summary>
/// Gets and sets the property Identifier.
/// <para>
/// A unique identifier.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Identifier
{
get { return this._identifier; }
set { this._identifier = value; }
}
// Check to see if Identifier property is set
internal bool IsSetIdentifier()
{
return this._identifier != null;
}
}
} | 68 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// This is the response object from the GetDataIntegration operation.
/// </summary>
public partial class GetDataIntegrationResponse : AmazonWebServiceResponse
{
private string _arn;
private string _description;
private FileConfiguration _fileConfiguration;
private string _id;
private string _kmsKey;
private string _name;
private Dictionary<string, Dictionary<string, List<string>>> _objectConfiguration = new Dictionary<string, Dictionary<string, List<string>>>();
private ScheduleConfiguration _scheduleConfiguration;
private string _sourceURI;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The Amazon Resource Name (ARN) for the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The KMS key for the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property FileConfiguration.
/// <para>
/// The configuration for what files should be pulled from the source.
/// </para>
/// </summary>
public FileConfiguration FileConfiguration
{
get { return this._fileConfiguration; }
set { this._fileConfiguration = value; }
}
// Check to see if FileConfiguration property is set
internal bool IsSetFileConfiguration()
{
return this._fileConfiguration != null;
}
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// A unique identifier.
/// </para>
/// </summary>
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property KmsKey.
/// <para>
/// The KMS key for the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string KmsKey
{
get { return this._kmsKey; }
set { this._kmsKey = value; }
}
// Check to see if KmsKey property is set
internal bool IsSetKmsKey()
{
return this._kmsKey != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property ObjectConfiguration.
/// <para>
/// The configuration for what data should be pulled from the source.
/// </para>
/// </summary>
public Dictionary<string, Dictionary<string, List<string>>> ObjectConfiguration
{
get { return this._objectConfiguration; }
set { this._objectConfiguration = value; }
}
// Check to see if ObjectConfiguration property is set
internal bool IsSetObjectConfiguration()
{
return this._objectConfiguration != null && this._objectConfiguration.Count > 0;
}
/// <summary>
/// Gets and sets the property ScheduleConfiguration.
/// <para>
/// The name of the data and how often it should be pulled from the source.
/// </para>
/// </summary>
public ScheduleConfiguration ScheduleConfiguration
{
get { return this._scheduleConfiguration; }
set { this._scheduleConfiguration = value; }
}
// Check to see if ScheduleConfiguration property is set
internal bool IsSetScheduleConfiguration()
{
return this._scheduleConfiguration != null;
}
/// <summary>
/// Gets and sets the property SourceURI.
/// <para>
/// The URI of the data source.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string SourceURI
{
get { return this._sourceURI; }
set { this._sourceURI = value; }
}
// Check to see if SourceURI property is set
internal bool IsSetSourceURI()
{
return this._sourceURI != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags used to organize, track, or control access for this resource. For example,
/// { "tags": {"key1":"value1", "key2":"value2"} }.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=200)]
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 235 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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>
/// Container for the parameters to the GetEventIntegration operation.
/// Returns information about the event integration.
/// </summary>
public partial class GetEventIntegrationRequest : AmazonAppIntegrationsServiceRequest
{
private string _name;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the event integration.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
} | 59 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// This is the response object from the GetEventIntegration operation.
/// </summary>
public partial class GetEventIntegrationResponse : AmazonWebServiceResponse
{
private string _description;
private string _eventBridgeBus;
private EventFilter _eventFilter;
private string _eventIntegrationArn;
private string _name;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the event integration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property EventBridgeBus.
/// <para>
/// The EventBridge bus.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string EventBridgeBus
{
get { return this._eventBridgeBus; }
set { this._eventBridgeBus = value; }
}
// Check to see if EventBridgeBus property is set
internal bool IsSetEventBridgeBus()
{
return this._eventBridgeBus != null;
}
/// <summary>
/// Gets and sets the property EventFilter.
/// <para>
/// The event filter.
/// </para>
/// </summary>
public EventFilter EventFilter
{
get { return this._eventFilter; }
set { this._eventFilter = value; }
}
// Check to see if EventFilter property is set
internal bool IsSetEventFilter()
{
return this._eventFilter != null;
}
/// <summary>
/// Gets and sets the property EventIntegrationArn.
/// <para>
/// The Amazon Resource Name (ARN) for the event integration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string EventIntegrationArn
{
get { return this._eventIntegrationArn; }
set { this._eventIntegrationArn = value; }
}
// Check to see if EventIntegrationArn property is set
internal bool IsSetEventIntegrationArn()
{
return this._eventIntegrationArn != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the event integration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags used to organize, track, or control access for this resource. For example,
/// { "tags": {"key1":"value1", "key2":"value2"} }.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=200)]
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 158 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// Request processing failed due to an error or failure with the service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InternalServiceErrorException : AmazonAppIntegrationsServiceException
{
/// <summary>
/// Constructs a new InternalServiceErrorException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InternalServiceErrorException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InternalServiceErrorException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InternalServiceErrorException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InternalServiceErrorException
/// </summary>
/// <param name="innerException"></param>
public InternalServiceErrorException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InternalServiceErrorException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServiceErrorException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InternalServiceErrorException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServiceErrorException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the InternalServiceErrorException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected InternalServiceErrorException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// The request is not valid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidRequestException : AmazonAppIntegrationsServiceException
{
/// <summary>
/// Constructs a new InvalidRequestException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidRequestException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidRequestException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidRequestException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidRequestException
/// </summary>
/// <param name="innerException"></param>
public InvalidRequestException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidRequestException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidRequestException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidRequestException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidRequestException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the InvalidRequestException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected InvalidRequestException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// Container for the parameters to the ListDataIntegrationAssociations operation.
/// Returns a paginated list of DataIntegration associations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
public partial class ListDataIntegrationAssociationsRequest : AmazonAppIntegrationsServiceRequest
{
private string _dataIntegrationIdentifier;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property DataIntegrationIdentifier.
/// <para>
/// A unique identifier for the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string DataIntegrationIdentifier
{
get { return this._dataIntegrationIdentifier; }
set { this._dataIntegrationIdentifier = value; }
}
// Check to see if DataIntegrationIdentifier property is set
internal bool IsSetDataIntegrationIdentifier()
{
return this._dataIntegrationIdentifier != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to return per page.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of results. Use the value returned in the previous response
/// in the next request to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 109 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// This is the response object from the ListDataIntegrationAssociations operation.
/// </summary>
public partial class ListDataIntegrationAssociationsResponse : AmazonWebServiceResponse
{
private List<DataIntegrationAssociationSummary> _dataIntegrationAssociations = new List<DataIntegrationAssociationSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property DataIntegrationAssociations.
/// <para>
/// The Amazon Resource Name (ARN) and unique ID of the DataIntegration association.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public List<DataIntegrationAssociationSummary> DataIntegrationAssociations
{
get { return this._dataIntegrationAssociations; }
set { this._dataIntegrationAssociations = value; }
}
// Check to see if DataIntegrationAssociations property is set
internal bool IsSetDataIntegrationAssociations()
{
return this._dataIntegrationAssociations != null && this._dataIntegrationAssociations.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If there are additional results, this is the token for the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 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.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppIntegrationsService.Model
{
/// <summary>
/// Container for the parameters to the ListDataIntegrations operation.
/// Returns a paginated list of DataIntegrations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
public partial class ListDataIntegrationsRequest : AmazonAppIntegrationsServiceRequest
{
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to return per page.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of results. Use the value returned in the previous response
/// in the next request to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 89 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// This is the response object from the ListDataIntegrations operation.
/// </summary>
public partial class ListDataIntegrationsResponse : AmazonWebServiceResponse
{
private List<DataIntegrationSummary> _dataIntegrations = new List<DataIntegrationSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property DataIntegrations.
/// <para>
/// The DataIntegrations associated with this account.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public List<DataIntegrationSummary> DataIntegrations
{
get { return this._dataIntegrations; }
set { this._dataIntegrations = value; }
}
// Check to see if DataIntegrations property is set
internal bool IsSetDataIntegrations()
{
return this._dataIntegrations != null && this._dataIntegrations.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If there are additional results, this is the token for the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 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.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppIntegrationsService.Model
{
/// <summary>
/// Container for the parameters to the ListEventIntegrationAssociations operation.
/// Returns a paginated list of event integration associations in the account.
/// </summary>
public partial class ListEventIntegrationAssociationsRequest : AmazonAppIntegrationsServiceRequest
{
private string _eventIntegrationName;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property EventIntegrationName.
/// <para>
/// The name of the event integration.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string EventIntegrationName
{
get { return this._eventIntegrationName; }
set { this._eventIntegrationName = value; }
}
// Check to see if EventIntegrationName property is set
internal bool IsSetEventIntegrationName()
{
return this._eventIntegrationName != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to return per page.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of results. Use the value returned in the previous response
/// in the next request to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 100 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// This is the response object from the ListEventIntegrationAssociations operation.
/// </summary>
public partial class ListEventIntegrationAssociationsResponse : AmazonWebServiceResponse
{
private List<EventIntegrationAssociation> _eventIntegrationAssociations = new List<EventIntegrationAssociation>();
private string _nextToken;
/// <summary>
/// Gets and sets the property EventIntegrationAssociations.
/// <para>
/// The event integration associations.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public List<EventIntegrationAssociation> EventIntegrationAssociations
{
get { return this._eventIntegrationAssociations; }
set { this._eventIntegrationAssociations = value; }
}
// Check to see if EventIntegrationAssociations property is set
internal bool IsSetEventIntegrationAssociations()
{
return this._eventIntegrationAssociations != null && this._eventIntegrationAssociations.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If there are additional results, this is the token for the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 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.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppIntegrationsService.Model
{
/// <summary>
/// Container for the parameters to the ListEventIntegrations operation.
/// Returns a paginated list of event integrations in the account.
/// </summary>
public partial class ListEventIntegrationsRequest : AmazonAppIntegrationsServiceRequest
{
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to return per page.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of results. Use the value returned in the previous response
/// in the next request to retrieve the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 80 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// This is the response object from the ListEventIntegrations operation.
/// </summary>
public partial class ListEventIntegrationsResponse : AmazonWebServiceResponse
{
private List<EventIntegration> _eventIntegrations = new List<EventIntegration>();
private string _nextToken;
/// <summary>
/// Gets and sets the property EventIntegrations.
/// <para>
/// The event integrations.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public List<EventIntegration> EventIntegrations
{
get { return this._eventIntegrations; }
set { this._eventIntegrations = value; }
}
// Check to see if EventIntegrations property is set
internal bool IsSetEventIntegrations()
{
return this._eventIntegrations != null && this._eventIntegrations.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If there are additional results, this is the token for the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 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.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppIntegrationsService.Model
{
/// <summary>
/// Container for the parameters to the ListTagsForResource operation.
/// Lists the tags for the specified resource.
/// </summary>
public partial class ListTagsForResourceRequest : AmazonAppIntegrationsServiceRequest
{
private string _resourceArn;
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// The Amazon Resource Name (ARN) of the resource.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=2048)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
}
} | 59 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// This is the response object from the ListTagsForResource operation.
/// </summary>
public partial class ListTagsForResourceResponse : AmazonWebServiceResponse
{
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Information about the tags.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=200)]
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// The specified resource was not found.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceNotFoundException : AmazonAppIntegrationsServiceException
{
/// <summary>
/// Constructs a new ResourceNotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceNotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceNotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="innerException"></param>
public ResourceNotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ResourceNotFoundException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// The allowed quota for the resource has been exceeded.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceQuotaExceededException : AmazonAppIntegrationsServiceException
{
/// <summary>
/// Constructs a new ResourceQuotaExceededException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceQuotaExceededException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceQuotaExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceQuotaExceededException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceQuotaExceededException
/// </summary>
/// <param name="innerException"></param>
public ResourceQuotaExceededException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceQuotaExceededException
/// </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 ResourceQuotaExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceQuotaExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceQuotaExceededException(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 ResourceQuotaExceededException 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 ResourceQuotaExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// The name of the data and how often it should be pulled from the source.
/// </summary>
public partial class ScheduleConfiguration
{
private string _firstExecutionFrom;
private string _object;
private string _scheduleExpression;
/// <summary>
/// Gets and sets the property FirstExecutionFrom.
/// <para>
/// The start date for objects to import in the first flow run as an Unix/epoch timestamp
/// in milliseconds or in ISO-8601 format.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string FirstExecutionFrom
{
get { return this._firstExecutionFrom; }
set { this._firstExecutionFrom = value; }
}
// Check to see if FirstExecutionFrom property is set
internal bool IsSetFirstExecutionFrom()
{
return this._firstExecutionFrom != null;
}
/// <summary>
/// Gets and sets the property Object.
/// <para>
/// The name of the object to pull from the data source.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Object
{
get { return this._object; }
set { this._object = value; }
}
// Check to see if Object property is set
internal bool IsSetObject()
{
return this._object != null;
}
/// <summary>
/// Gets and sets the property ScheduleExpression.
/// <para>
/// How often the data should be pulled from data source.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ScheduleExpression
{
get { return this._scheduleExpression; }
set { this._scheduleExpression = value; }
}
// Check to see if ScheduleExpression property is set
internal bool IsSetScheduleExpression()
{
return this._scheduleExpression != null;
}
}
} | 99 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// Container for the parameters to the TagResource operation.
/// Adds the specified tags to the specified resource.
/// </summary>
public partial class TagResourceRequest : AmazonAppIntegrationsServiceRequest
{
private string _resourceArn;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// The Amazon Resource Name (ARN) of the resource.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=2048)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags used to organize, track, or control access for this resource. For example,
/// { "tags": {"key1":"value1", "key2":"value2"} }.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=200)]
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 80 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// This is the response object from the TagResource operation.
/// </summary>
public partial class TagResourceResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// The throttling limit has been exceeded.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ThrottlingException : AmazonAppIntegrationsServiceException
{
/// <summary>
/// Constructs a new ThrottlingException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ThrottlingException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ThrottlingException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="innerException"></param>
public ThrottlingException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </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 ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ThrottlingException(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 ThrottlingException 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 ThrottlingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// Container for the parameters to the UntagResource operation.
/// Removes the specified tags from the specified resource.
/// </summary>
public partial class UntagResourceRequest : AmazonAppIntegrationsServiceRequest
{
private string _resourceArn;
private List<string> _tagKeys = new List<string>();
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// The Amazon Resource Name (ARN) of the resource.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=2048)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
/// <summary>
/// Gets and sets the property TagKeys.
/// <para>
/// The tag keys.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=200)]
public List<string> TagKeys
{
get { return this._tagKeys; }
set { this._tagKeys = value; }
}
// Check to see if TagKeys property is set
internal bool IsSetTagKeys()
{
return this._tagKeys != null && this._tagKeys.Count > 0;
}
}
} | 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 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>
/// This is the response object from the UntagResource operation.
/// </summary>
public partial class UntagResourceResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// Container for the parameters to the UpdateDataIntegration operation.
/// Updates the description of a DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
public partial class UpdateDataIntegrationRequest : AmazonAppIntegrationsServiceRequest
{
private string _description;
private string _identifier;
private string _name;
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// A description of the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Identifier.
/// <para>
/// A unique identifier for the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Identifier
{
get { return this._identifier; }
set { this._identifier = value; }
}
// Check to see if Identifier property is set
internal bool IsSetIdentifier()
{
return this._identifier != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the DataIntegration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
} | 108 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// This is the response object from the UpdateDataIntegration operation.
/// </summary>
public partial class UpdateDataIntegrationResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// Container for the parameters to the UpdateEventIntegration operation.
/// Updates the description of an event integration.
/// </summary>
public partial class UpdateEventIntegrationRequest : AmazonAppIntegrationsServiceRequest
{
private string _description;
private string _name;
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the event inegration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the event integration.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
} | 79 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// This is the response object from the UpdateEventIntegration operation.
/// </summary>
public partial class UpdateEventIntegrationResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AccessDeniedException Object
/// </summary>
public class AccessDeniedExceptionUnmarshaller : IErrorResponseUnmarshaller<AccessDeniedException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AccessDeniedException 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 AccessDeniedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
AccessDeniedException unmarshalledObject = new AccessDeniedException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static AccessDeniedExceptionUnmarshaller _instance = new AccessDeniedExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AccessDeniedExceptionUnmarshaller 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateDataIntegration Request Marshaller
/// </summary>
public class CreateDataIntegrationRequestMarshaller : IMarshaller<IRequest, CreateDataIntegrationRequest> , 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((CreateDataIntegrationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateDataIntegrationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppIntegrationsService");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-29";
request.HttpMethod = "POST";
request.ResourcePath = "/dataIntegrations";
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.IsSetFileConfiguration())
{
context.Writer.WritePropertyName("FileConfiguration");
context.Writer.WriteObjectStart();
var marshaller = FileConfigurationMarshaller.Instance;
marshaller.Marshall(publicRequest.FileConfiguration, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetKmsKey())
{
context.Writer.WritePropertyName("KmsKey");
context.Writer.Write(publicRequest.KmsKey);
}
if(publicRequest.IsSetName())
{
context.Writer.WritePropertyName("Name");
context.Writer.Write(publicRequest.Name);
}
if(publicRequest.IsSetObjectConfiguration())
{
context.Writer.WritePropertyName("ObjectConfiguration");
context.Writer.WriteObjectStart();
foreach (var publicRequestObjectConfigurationKvp in publicRequest.ObjectConfiguration)
{
context.Writer.WritePropertyName(publicRequestObjectConfigurationKvp.Key);
var publicRequestObjectConfigurationValue = publicRequestObjectConfigurationKvp.Value;
context.Writer.WriteObjectStart();
foreach (var publicRequestObjectConfigurationValueKvp in publicRequestObjectConfigurationValue)
{
context.Writer.WritePropertyName(publicRequestObjectConfigurationValueKvp.Key);
var publicRequestObjectConfigurationValueValue = publicRequestObjectConfigurationValueKvp.Value;
context.Writer.WriteArrayStart();
foreach(var publicRequestObjectConfigurationValueValueListValue in publicRequestObjectConfigurationValueValue)
{
context.Writer.Write(publicRequestObjectConfigurationValueValueListValue);
}
context.Writer.WriteArrayEnd();
}
context.Writer.WriteObjectEnd();
}
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetScheduleConfig())
{
context.Writer.WritePropertyName("ScheduleConfig");
context.Writer.WriteObjectStart();
var marshaller = ScheduleConfigurationMarshaller.Instance;
marshaller.Marshall(publicRequest.ScheduleConfig, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetSourceURI())
{
context.Writer.WritePropertyName("SourceURI");
context.Writer.Write(publicRequest.SourceURI);
}
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 CreateDataIntegrationRequestMarshaller _instance = new CreateDataIntegrationRequestMarshaller();
internal static CreateDataIntegrationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateDataIntegrationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 193 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateDataIntegration operation
/// </summary>
public class CreateDataIntegrationResponseUnmarshaller : 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)
{
CreateDataIntegrationResponse response = new CreateDataIntegrationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Arn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Arn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ClientToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ClientToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Description", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Description = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("FileConfiguration", targetDepth))
{
var unmarshaller = FileConfigurationUnmarshaller.Instance;
response.FileConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Id", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Id = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("KmsKey", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.KmsKey = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ObjectConfiguration", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, Dictionary<string, List<string>>, StringUnmarshaller, DictionaryUnmarshaller<string, List<string>, StringUnmarshaller, ListUnmarshaller<string, StringUnmarshaller>>>(StringUnmarshaller.Instance, new DictionaryUnmarshaller<string, List<string>, StringUnmarshaller, ListUnmarshaller<string, StringUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance)));
response.ObjectConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScheduleConfiguration", targetDepth))
{
var unmarshaller = ScheduleConfigurationUnmarshaller.Instance;
response.ScheduleConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SourceURI", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SourceURI = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Tags", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
response.Tags = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("DuplicateResourceException"))
{
return DuplicateResourceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceError"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceQuotaExceededException"))
{
return ResourceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppIntegrationsServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateDataIntegrationResponseUnmarshaller _instance = new CreateDataIntegrationResponseUnmarshaller();
internal static CreateDataIntegrationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateDataIntegrationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 190 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateEventIntegration Request Marshaller
/// </summary>
public class CreateEventIntegrationRequestMarshaller : IMarshaller<IRequest, CreateEventIntegrationRequest> , 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((CreateEventIntegrationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateEventIntegrationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppIntegrationsService");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-29";
request.HttpMethod = "POST";
request.ResourcePath = "/eventIntegrations";
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.IsSetEventBridgeBus())
{
context.Writer.WritePropertyName("EventBridgeBus");
context.Writer.Write(publicRequest.EventBridgeBus);
}
if(publicRequest.IsSetEventFilter())
{
context.Writer.WritePropertyName("EventFilter");
context.Writer.WriteObjectStart();
var marshaller = EventFilterMarshaller.Instance;
marshaller.Marshall(publicRequest.EventFilter, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetName())
{
context.Writer.WritePropertyName("Name");
context.Writer.Write(publicRequest.Name);
}
if(publicRequest.IsSetTags())
{
context.Writer.WritePropertyName("Tags");
context.Writer.WriteObjectStart();
foreach (var publicRequestTagsKvp in publicRequest.Tags)
{
context.Writer.WritePropertyName(publicRequestTagsKvp.Key);
var publicRequestTagsValue = publicRequestTagsKvp.Value;
context.Writer.Write(publicRequestTagsValue);
}
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateEventIntegrationRequestMarshaller _instance = new CreateEventIntegrationRequestMarshaller();
internal static CreateEventIntegrationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateEventIntegrationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 149 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateEventIntegration operation
/// </summary>
public class CreateEventIntegrationResponseUnmarshaller : 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)
{
CreateEventIntegrationResponse response = new CreateEventIntegrationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("EventIntegrationArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.EventIntegrationArn = 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("DuplicateResourceException"))
{
return DuplicateResourceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceError"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceQuotaExceededException"))
{
return ResourceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppIntegrationsServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateEventIntegrationResponseUnmarshaller _instance = new CreateEventIntegrationResponseUnmarshaller();
internal static CreateEventIntegrationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateEventIntegrationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 130 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DataIntegrationAssociationSummary Object
/// </summary>
public class DataIntegrationAssociationSummaryUnmarshaller : IUnmarshaller<DataIntegrationAssociationSummary, XmlUnmarshallerContext>, IUnmarshaller<DataIntegrationAssociationSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
DataIntegrationAssociationSummary IUnmarshaller<DataIntegrationAssociationSummary, 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 DataIntegrationAssociationSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
DataIntegrationAssociationSummary unmarshalledObject = new DataIntegrationAssociationSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ClientId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ClientId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DataIntegrationArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DataIntegrationArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DataIntegrationAssociationArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DataIntegrationAssociationArn = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static DataIntegrationAssociationSummaryUnmarshaller _instance = new DataIntegrationAssociationSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static DataIntegrationAssociationSummaryUnmarshaller 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DataIntegrationSummary Object
/// </summary>
public class DataIntegrationSummaryUnmarshaller : IUnmarshaller<DataIntegrationSummary, XmlUnmarshallerContext>, IUnmarshaller<DataIntegrationSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
DataIntegrationSummary IUnmarshaller<DataIntegrationSummary, 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 DataIntegrationSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
DataIntegrationSummary unmarshalledObject = new DataIntegrationSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Arn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Arn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SourceURI", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SourceURI = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static DataIntegrationSummaryUnmarshaller _instance = new DataIntegrationSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static DataIntegrationSummaryUnmarshaller 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteDataIntegration Request Marshaller
/// </summary>
public class DeleteDataIntegrationRequestMarshaller : IMarshaller<IRequest, DeleteDataIntegrationRequest> , 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((DeleteDataIntegrationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteDataIntegrationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppIntegrationsService");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-29";
request.HttpMethod = "DELETE";
if (!publicRequest.IsSetDataIntegrationIdentifier())
throw new AmazonAppIntegrationsServiceException("Request object does not have required field DataIntegrationIdentifier set");
request.AddPathResource("{Identifier}", StringUtils.FromString(publicRequest.DataIntegrationIdentifier));
request.ResourcePath = "/dataIntegrations/{Identifier}";
return request;
}
private static DeleteDataIntegrationRequestMarshaller _instance = new DeleteDataIntegrationRequestMarshaller();
internal static DeleteDataIntegrationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteDataIntegrationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 87 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteDataIntegration operation
/// </summary>
public class DeleteDataIntegrationResponseUnmarshaller : 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)
{
DeleteDataIntegrationResponse response = new DeleteDataIntegrationResponse();
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("InternalServiceError"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppIntegrationsServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteDataIntegrationResponseUnmarshaller _instance = new DeleteDataIntegrationResponseUnmarshaller();
internal static DeleteDataIntegrationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteDataIntegrationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteEventIntegration Request Marshaller
/// </summary>
public class DeleteEventIntegrationRequestMarshaller : IMarshaller<IRequest, DeleteEventIntegrationRequest> , 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((DeleteEventIntegrationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteEventIntegrationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppIntegrationsService");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-29";
request.HttpMethod = "DELETE";
if (!publicRequest.IsSetName())
throw new AmazonAppIntegrationsServiceException("Request object does not have required field Name set");
request.AddPathResource("{Name}", StringUtils.FromString(publicRequest.Name));
request.ResourcePath = "/eventIntegrations/{Name}";
return request;
}
private static DeleteEventIntegrationRequestMarshaller _instance = new DeleteEventIntegrationRequestMarshaller();
internal static DeleteEventIntegrationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteEventIntegrationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 87 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteEventIntegration operation
/// </summary>
public class DeleteEventIntegrationResponseUnmarshaller : 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)
{
DeleteEventIntegrationResponse response = new DeleteEventIntegrationResponse();
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("InternalServiceError"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppIntegrationsServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteEventIntegrationResponseUnmarshaller _instance = new DeleteEventIntegrationResponseUnmarshaller();
internal static DeleteEventIntegrationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteEventIntegrationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DuplicateResourceException Object
/// </summary>
public class DuplicateResourceExceptionUnmarshaller : IErrorResponseUnmarshaller<DuplicateResourceException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public DuplicateResourceException 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 DuplicateResourceException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
DuplicateResourceException unmarshalledObject = new DuplicateResourceException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static DuplicateResourceExceptionUnmarshaller _instance = new DuplicateResourceExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static DuplicateResourceExceptionUnmarshaller 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// EventFilter Marshaller
/// </summary>
public class EventFilterMarshaller : IRequestMarshaller<EventFilter, 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(EventFilter requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetSource())
{
context.Writer.WritePropertyName("Source");
context.Writer.Write(requestObject.Source);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static EventFilterMarshaller Instance = new EventFilterMarshaller();
}
} | 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for EventFilter Object
/// </summary>
public class EventFilterUnmarshaller : IUnmarshaller<EventFilter, XmlUnmarshallerContext>, IUnmarshaller<EventFilter, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
EventFilter IUnmarshaller<EventFilter, 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 EventFilter Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
EventFilter unmarshalledObject = new EventFilter();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Source", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Source = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static EventFilterUnmarshaller _instance = new EventFilterUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static EventFilterUnmarshaller 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for EventIntegrationAssociation Object
/// </summary>
public class EventIntegrationAssociationUnmarshaller : IUnmarshaller<EventIntegrationAssociation, XmlUnmarshallerContext>, IUnmarshaller<EventIntegrationAssociation, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
EventIntegrationAssociation IUnmarshaller<EventIntegrationAssociation, 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 EventIntegrationAssociation Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
EventIntegrationAssociation unmarshalledObject = new EventIntegrationAssociation();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ClientAssociationMetadata", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
unmarshalledObject.ClientAssociationMetadata = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ClientId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ClientId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EventBridgeRuleName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EventBridgeRuleName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EventIntegrationAssociationArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EventIntegrationAssociationArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EventIntegrationAssociationId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EventIntegrationAssociationId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EventIntegrationName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EventIntegrationName = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static EventIntegrationAssociationUnmarshaller _instance = new EventIntegrationAssociationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static EventIntegrationAssociationUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 122 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for EventIntegration Object
/// </summary>
public class EventIntegrationUnmarshaller : IUnmarshaller<EventIntegration, XmlUnmarshallerContext>, IUnmarshaller<EventIntegration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
EventIntegration IUnmarshaller<EventIntegration, 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 EventIntegration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
EventIntegration unmarshalledObject = new EventIntegration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Description", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Description = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EventBridgeBus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EventBridgeBus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EventFilter", targetDepth))
{
var unmarshaller = EventFilterUnmarshaller.Instance;
unmarshalledObject.EventFilter = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EventIntegrationArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EventIntegrationArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Tags", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
unmarshalledObject.Tags = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static EventIntegrationUnmarshaller _instance = new EventIntegrationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static EventIntegrationUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 122 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// FileConfiguration Marshaller
/// </summary>
public class FileConfigurationMarshaller : IRequestMarshaller<FileConfiguration, 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(FileConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetFilters())
{
context.Writer.WritePropertyName("Filters");
context.Writer.WriteObjectStart();
foreach (var requestObjectFiltersKvp in requestObject.Filters)
{
context.Writer.WritePropertyName(requestObjectFiltersKvp.Key);
var requestObjectFiltersValue = requestObjectFiltersKvp.Value;
context.Writer.WriteArrayStart();
foreach(var requestObjectFiltersValueListValue in requestObjectFiltersValue)
{
context.Writer.Write(requestObjectFiltersValueListValue);
}
context.Writer.WriteArrayEnd();
}
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetFolders())
{
context.Writer.WritePropertyName("Folders");
context.Writer.WriteArrayStart();
foreach(var requestObjectFoldersListValue in requestObject.Folders)
{
context.Writer.Write(requestObjectFoldersListValue);
}
context.Writer.WriteArrayEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static FileConfigurationMarshaller Instance = new FileConfigurationMarshaller();
}
} | 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for FileConfiguration Object
/// </summary>
public class FileConfigurationUnmarshaller : IUnmarshaller<FileConfiguration, XmlUnmarshallerContext>, IUnmarshaller<FileConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
FileConfiguration IUnmarshaller<FileConfiguration, 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 FileConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
FileConfiguration unmarshalledObject = new FileConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Filters", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, List<string>, StringUnmarshaller, ListUnmarshaller<string, StringUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance));
unmarshalledObject.Filters = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Folders", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.Folders = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static FileConfigurationUnmarshaller _instance = new FileConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static FileConfigurationUnmarshaller 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// GetDataIntegration Request Marshaller
/// </summary>
public class GetDataIntegrationRequestMarshaller : IMarshaller<IRequest, GetDataIntegrationRequest> , 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((GetDataIntegrationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(GetDataIntegrationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppIntegrationsService");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-29";
request.HttpMethod = "GET";
if (!publicRequest.IsSetIdentifier())
throw new AmazonAppIntegrationsServiceException("Request object does not have required field Identifier set");
request.AddPathResource("{Identifier}", StringUtils.FromString(publicRequest.Identifier));
request.ResourcePath = "/dataIntegrations/{Identifier}";
return request;
}
private static GetDataIntegrationRequestMarshaller _instance = new GetDataIntegrationRequestMarshaller();
internal static GetDataIntegrationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetDataIntegrationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 87 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for GetDataIntegration operation
/// </summary>
public class GetDataIntegrationResponseUnmarshaller : 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)
{
GetDataIntegrationResponse response = new GetDataIntegrationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Arn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Arn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Description", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Description = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("FileConfiguration", targetDepth))
{
var unmarshaller = FileConfigurationUnmarshaller.Instance;
response.FileConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Id", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Id = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("KmsKey", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.KmsKey = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ObjectConfiguration", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, Dictionary<string, List<string>>, StringUnmarshaller, DictionaryUnmarshaller<string, List<string>, StringUnmarshaller, ListUnmarshaller<string, StringUnmarshaller>>>(StringUnmarshaller.Instance, new DictionaryUnmarshaller<string, List<string>, StringUnmarshaller, ListUnmarshaller<string, StringUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance)));
response.ObjectConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScheduleConfiguration", targetDepth))
{
var unmarshaller = ScheduleConfigurationUnmarshaller.Instance;
response.ScheduleConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SourceURI", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SourceURI = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Tags", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
response.Tags = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceError"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppIntegrationsServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static GetDataIntegrationResponseUnmarshaller _instance = new GetDataIntegrationResponseUnmarshaller();
internal static GetDataIntegrationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetDataIntegrationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 180 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// GetEventIntegration Request Marshaller
/// </summary>
public class GetEventIntegrationRequestMarshaller : IMarshaller<IRequest, GetEventIntegrationRequest> , 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((GetEventIntegrationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(GetEventIntegrationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppIntegrationsService");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-29";
request.HttpMethod = "GET";
if (!publicRequest.IsSetName())
throw new AmazonAppIntegrationsServiceException("Request object does not have required field Name set");
request.AddPathResource("{Name}", StringUtils.FromString(publicRequest.Name));
request.ResourcePath = "/eventIntegrations/{Name}";
return request;
}
private static GetEventIntegrationRequestMarshaller _instance = new GetEventIntegrationRequestMarshaller();
internal static GetEventIntegrationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetEventIntegrationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 87 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for GetEventIntegration operation
/// </summary>
public class GetEventIntegrationResponseUnmarshaller : 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)
{
GetEventIntegrationResponse response = new GetEventIntegrationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Description", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Description = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EventBridgeBus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.EventBridgeBus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EventFilter", targetDepth))
{
var unmarshaller = EventFilterUnmarshaller.Instance;
response.EventFilter = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EventIntegrationArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.EventIntegrationArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Tags", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
response.Tags = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceError"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppIntegrationsServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static GetEventIntegrationResponseUnmarshaller _instance = new GetEventIntegrationResponseUnmarshaller();
internal static GetEventIntegrationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetEventIntegrationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 156 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InternalServiceErrorException Object
/// </summary>
public class InternalServiceErrorExceptionUnmarshaller : IErrorResponseUnmarshaller<InternalServiceErrorException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InternalServiceErrorException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public InternalServiceErrorException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InternalServiceErrorException unmarshalledObject = new InternalServiceErrorException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InternalServiceErrorExceptionUnmarshaller _instance = new InternalServiceErrorExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InternalServiceErrorExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InvalidRequestException Object
/// </summary>
public class InvalidRequestExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidRequestException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InvalidRequestException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public InvalidRequestException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InvalidRequestException unmarshalledObject = new InvalidRequestException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InvalidRequestExceptionUnmarshaller _instance = new InvalidRequestExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InvalidRequestExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListDataIntegrationAssociations Request Marshaller
/// </summary>
public class ListDataIntegrationAssociationsRequestMarshaller : IMarshaller<IRequest, ListDataIntegrationAssociationsRequest> , 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((ListDataIntegrationAssociationsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListDataIntegrationAssociationsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppIntegrationsService");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-29";
request.HttpMethod = "GET";
if (!publicRequest.IsSetDataIntegrationIdentifier())
throw new AmazonAppIntegrationsServiceException("Request object does not have required field DataIntegrationIdentifier set");
request.AddPathResource("{Identifier}", StringUtils.FromString(publicRequest.DataIntegrationIdentifier));
if (publicRequest.IsSetMaxResults())
request.Parameters.Add("maxResults", StringUtils.FromInt(publicRequest.MaxResults));
if (publicRequest.IsSetNextToken())
request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken));
request.ResourcePath = "/dataIntegrations/{Identifier}/associations";
request.UseQueryString = true;
return request;
}
private static ListDataIntegrationAssociationsRequestMarshaller _instance = new ListDataIntegrationAssociationsRequestMarshaller();
internal static ListDataIntegrationAssociationsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListDataIntegrationAssociationsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 94 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListDataIntegrationAssociations operation
/// </summary>
public class ListDataIntegrationAssociationsResponseUnmarshaller : 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)
{
ListDataIntegrationAssociationsResponse response = new ListDataIntegrationAssociationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("DataIntegrationAssociations", targetDepth))
{
var unmarshaller = new ListUnmarshaller<DataIntegrationAssociationSummary, DataIntegrationAssociationSummaryUnmarshaller>(DataIntegrationAssociationSummaryUnmarshaller.Instance);
response.DataIntegrationAssociations = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceError"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppIntegrationsServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListDataIntegrationAssociationsResponseUnmarshaller _instance = new ListDataIntegrationAssociationsResponseUnmarshaller();
internal static ListDataIntegrationAssociationsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListDataIntegrationAssociationsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 132 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListDataIntegrations Request Marshaller
/// </summary>
public class ListDataIntegrationsRequestMarshaller : IMarshaller<IRequest, ListDataIntegrationsRequest> , 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((ListDataIntegrationsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListDataIntegrationsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppIntegrationsService");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-29";
request.HttpMethod = "GET";
if (publicRequest.IsSetMaxResults())
request.Parameters.Add("maxResults", StringUtils.FromInt(publicRequest.MaxResults));
if (publicRequest.IsSetNextToken())
request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken));
request.ResourcePath = "/dataIntegrations";
request.UseQueryString = true;
return request;
}
private static ListDataIntegrationsRequestMarshaller _instance = new ListDataIntegrationsRequestMarshaller();
internal static ListDataIntegrationsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListDataIntegrationsRequestMarshaller 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListDataIntegrations operation
/// </summary>
public class ListDataIntegrationsResponseUnmarshaller : 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)
{
ListDataIntegrationsResponse response = new ListDataIntegrationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("DataIntegrations", targetDepth))
{
var unmarshaller = new ListUnmarshaller<DataIntegrationSummary, DataIntegrationSummaryUnmarshaller>(DataIntegrationSummaryUnmarshaller.Instance);
response.DataIntegrations = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceError"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppIntegrationsServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListDataIntegrationsResponseUnmarshaller _instance = new ListDataIntegrationsResponseUnmarshaller();
internal static ListDataIntegrationsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListDataIntegrationsResponseUnmarshaller 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListEventIntegrationAssociations Request Marshaller
/// </summary>
public class ListEventIntegrationAssociationsRequestMarshaller : IMarshaller<IRequest, ListEventIntegrationAssociationsRequest> , 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((ListEventIntegrationAssociationsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListEventIntegrationAssociationsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppIntegrationsService");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-29";
request.HttpMethod = "GET";
if (!publicRequest.IsSetEventIntegrationName())
throw new AmazonAppIntegrationsServiceException("Request object does not have required field EventIntegrationName set");
request.AddPathResource("{Name}", StringUtils.FromString(publicRequest.EventIntegrationName));
if (publicRequest.IsSetMaxResults())
request.Parameters.Add("maxResults", StringUtils.FromInt(publicRequest.MaxResults));
if (publicRequest.IsSetNextToken())
request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken));
request.ResourcePath = "/eventIntegrations/{Name}/associations";
request.UseQueryString = true;
return request;
}
private static ListEventIntegrationAssociationsRequestMarshaller _instance = new ListEventIntegrationAssociationsRequestMarshaller();
internal static ListEventIntegrationAssociationsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListEventIntegrationAssociationsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 94 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListEventIntegrationAssociations operation
/// </summary>
public class ListEventIntegrationAssociationsResponseUnmarshaller : 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)
{
ListEventIntegrationAssociationsResponse response = new ListEventIntegrationAssociationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("EventIntegrationAssociations", targetDepth))
{
var unmarshaller = new ListUnmarshaller<EventIntegrationAssociation, EventIntegrationAssociationUnmarshaller>(EventIntegrationAssociationUnmarshaller.Instance);
response.EventIntegrationAssociations = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceError"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppIntegrationsServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListEventIntegrationAssociationsResponseUnmarshaller _instance = new ListEventIntegrationAssociationsResponseUnmarshaller();
internal static ListEventIntegrationAssociationsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListEventIntegrationAssociationsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 132 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListEventIntegrations Request Marshaller
/// </summary>
public class ListEventIntegrationsRequestMarshaller : IMarshaller<IRequest, ListEventIntegrationsRequest> , 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((ListEventIntegrationsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListEventIntegrationsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppIntegrationsService");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-29";
request.HttpMethod = "GET";
if (publicRequest.IsSetMaxResults())
request.Parameters.Add("maxResults", StringUtils.FromInt(publicRequest.MaxResults));
if (publicRequest.IsSetNextToken())
request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken));
request.ResourcePath = "/eventIntegrations";
request.UseQueryString = true;
return request;
}
private static ListEventIntegrationsRequestMarshaller _instance = new ListEventIntegrationsRequestMarshaller();
internal static ListEventIntegrationsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListEventIntegrationsRequestMarshaller 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListEventIntegrations operation
/// </summary>
public class ListEventIntegrationsResponseUnmarshaller : 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)
{
ListEventIntegrationsResponse response = new ListEventIntegrationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("EventIntegrations", targetDepth))
{
var unmarshaller = new ListUnmarshaller<EventIntegration, EventIntegrationUnmarshaller>(EventIntegrationUnmarshaller.Instance);
response.EventIntegrations = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceError"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppIntegrationsServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListEventIntegrationsResponseUnmarshaller _instance = new ListEventIntegrationsResponseUnmarshaller();
internal static ListEventIntegrationsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListEventIntegrationsResponseUnmarshaller 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListTagsForResource Request Marshaller
/// </summary>
public class ListTagsForResourceRequestMarshaller : IMarshaller<IRequest, ListTagsForResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((ListTagsForResourceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListTagsForResourceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppIntegrationsService");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-29";
request.HttpMethod = "GET";
if (!publicRequest.IsSetResourceArn())
throw new AmazonAppIntegrationsServiceException("Request object does not have required field ResourceArn set");
request.AddPathResource("{resourceArn}", StringUtils.FromString(publicRequest.ResourceArn));
request.ResourcePath = "/tags/{resourceArn}";
return request;
}
private static ListTagsForResourceRequestMarshaller _instance = new ListTagsForResourceRequestMarshaller();
internal static ListTagsForResourceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListTagsForResourceRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 87 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListTagsForResource operation
/// </summary>
public class ListTagsForResourceResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ListTagsForResourceResponse response = new ListTagsForResourceResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("tags", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
response.Tags = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceError"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppIntegrationsServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListTagsForResourceResponseUnmarshaller _instance = new ListTagsForResourceResponseUnmarshaller();
internal static ListTagsForResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListTagsForResourceResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 122 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ResourceNotFoundException Object
/// </summary>
public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResourceNotFoundExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ResourceQuotaExceededException Object
/// </summary>
public class ResourceQuotaExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceQuotaExceededException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ResourceQuotaExceededException 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 ResourceQuotaExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ResourceQuotaExceededException unmarshalledObject = new ResourceQuotaExceededException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ResourceQuotaExceededExceptionUnmarshaller _instance = new ResourceQuotaExceededExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResourceQuotaExceededExceptionUnmarshaller 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// ScheduleConfiguration Marshaller
/// </summary>
public class ScheduleConfigurationMarshaller : IRequestMarshaller<ScheduleConfiguration, 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(ScheduleConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetFirstExecutionFrom())
{
context.Writer.WritePropertyName("FirstExecutionFrom");
context.Writer.Write(requestObject.FirstExecutionFrom);
}
if(requestObject.IsSetObject())
{
context.Writer.WritePropertyName("Object");
context.Writer.Write(requestObject.Object);
}
if(requestObject.IsSetScheduleExpression())
{
context.Writer.WritePropertyName("ScheduleExpression");
context.Writer.Write(requestObject.ScheduleExpression);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ScheduleConfigurationMarshaller Instance = new ScheduleConfigurationMarshaller();
}
} | 74 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ScheduleConfiguration Object
/// </summary>
public class ScheduleConfigurationUnmarshaller : IUnmarshaller<ScheduleConfiguration, XmlUnmarshallerContext>, IUnmarshaller<ScheduleConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ScheduleConfiguration IUnmarshaller<ScheduleConfiguration, 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 ScheduleConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ScheduleConfiguration unmarshalledObject = new ScheduleConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("FirstExecutionFrom", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.FirstExecutionFrom = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Object", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Object = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScheduleExpression", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ScheduleExpression = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ScheduleConfigurationUnmarshaller _instance = new ScheduleConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ScheduleConfigurationUnmarshaller 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.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.AppIntegrationsService");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-29";
request.HttpMethod = "POST";
if (!publicRequest.IsSetResourceArn())
throw new AmazonAppIntegrationsServiceException("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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.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("InternalServiceError"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppIntegrationsServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static TagResourceResponseUnmarshaller _instance = new TagResourceResponseUnmarshaller();
internal static TagResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static TagResourceResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 111 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.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.AppIntegrationsService");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-29";
request.HttpMethod = "DELETE";
if (!publicRequest.IsSetResourceArn())
throw new AmazonAppIntegrationsServiceException("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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.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("InternalServiceError"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppIntegrationsServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UntagResourceResponseUnmarshaller _instance = new UntagResourceResponseUnmarshaller();
internal static UntagResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UntagResourceResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 111 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateDataIntegration Request Marshaller
/// </summary>
public class UpdateDataIntegrationRequestMarshaller : IMarshaller<IRequest, UpdateDataIntegrationRequest> , 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((UpdateDataIntegrationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UpdateDataIntegrationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppIntegrationsService");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-29";
request.HttpMethod = "PATCH";
if (!publicRequest.IsSetIdentifier())
throw new AmazonAppIntegrationsServiceException("Request object does not have required field Identifier set");
request.AddPathResource("{Identifier}", StringUtils.FromString(publicRequest.Identifier));
request.ResourcePath = "/dataIntegrations/{Identifier}";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetDescription())
{
context.Writer.WritePropertyName("Description");
context.Writer.Write(publicRequest.Description);
}
if(publicRequest.IsSetName())
{
context.Writer.WritePropertyName("Name");
context.Writer.Write(publicRequest.Name);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static UpdateDataIntegrationRequestMarshaller _instance = new UpdateDataIntegrationRequestMarshaller();
internal static UpdateDataIntegrationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateDataIntegrationRequestMarshaller 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UpdateDataIntegration operation
/// </summary>
public class UpdateDataIntegrationResponseUnmarshaller : 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)
{
UpdateDataIntegrationResponse response = new UpdateDataIntegrationResponse();
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("InternalServiceError"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppIntegrationsServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UpdateDataIntegrationResponseUnmarshaller _instance = new UpdateDataIntegrationResponseUnmarshaller();
internal static UpdateDataIntegrationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateDataIntegrationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateEventIntegration Request Marshaller
/// </summary>
public class UpdateEventIntegrationRequestMarshaller : IMarshaller<IRequest, UpdateEventIntegrationRequest> , 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((UpdateEventIntegrationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UpdateEventIntegrationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppIntegrationsService");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2020-07-29";
request.HttpMethod = "PATCH";
if (!publicRequest.IsSetName())
throw new AmazonAppIntegrationsServiceException("Request object does not have required field Name set");
request.AddPathResource("{Name}", StringUtils.FromString(publicRequest.Name));
request.ResourcePath = "/eventIntegrations/{Name}";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
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 UpdateEventIntegrationRequestMarshaller _instance = new UpdateEventIntegrationRequestMarshaller();
internal static UpdateEventIntegrationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateEventIntegrationRequestMarshaller 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UpdateEventIntegration operation
/// </summary>
public class UpdateEventIntegrationResponseUnmarshaller : 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)
{
UpdateEventIntegrationResponse response = new UpdateEventIntegrationResponse();
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("InternalServiceError"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppIntegrationsServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UpdateEventIntegrationResponseUnmarshaller _instance = new UpdateEventIntegrationResponseUnmarshaller();
internal static UpdateEventIntegrationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateEventIntegrationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appintegrations-2020-07-29.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.AppIntegrationsService.Model;
using Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations;
using Amazon.AppIntegrationsService.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AppIntegrationsService
{
/// <summary>
/// Implementation for accessing AppIntegrationsService
///
/// The Amazon AppIntegrations service enables you to configure and reuse connections
/// to external applications.
///
///
/// <para>
/// For information about how you can use external applications with Amazon Connect, see
/// <a href="https://docs.aws.amazon.com/connect/latest/adminguide/crm.html">Set up pre-built
/// integrations</a> and <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-wisdom.html">Deliver
/// information to agents using Amazon Connect Wisdom</a> in the <i>Amazon Connect Administrator
/// Guide</i>.
/// </para>
/// </summary>
public partial class AmazonAppIntegrationsServiceClient : AmazonServiceClient, IAmazonAppIntegrationsService
{
private static IServiceMetadata serviceMetadata = new AmazonAppIntegrationsServiceMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonAppIntegrationsServiceClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppIntegrationsServiceConfig()) { }
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonAppIntegrationsServiceClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppIntegrationsServiceConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonAppIntegrationsServiceClient Configuration Object</param>
public AmazonAppIntegrationsServiceClient(AmazonAppIntegrationsServiceConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAppIntegrationsServiceClient(AWSCredentials credentials)
: this(credentials, new AmazonAppIntegrationsServiceConfig())
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAppIntegrationsServiceClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAppIntegrationsServiceConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with AWS Credentials and an
/// AmazonAppIntegrationsServiceClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAppIntegrationsServiceClient Configuration Object</param>
public AmazonAppIntegrationsServiceClient(AWSCredentials credentials, AmazonAppIntegrationsServiceConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppIntegrationsServiceConfig())
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppIntegrationsServiceConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAppIntegrationsServiceClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAppIntegrationsServiceClient Configuration Object</param>
public AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAppIntegrationsServiceConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppIntegrationsServiceConfig())
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppIntegrationsServiceConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient Configuration Object</param>
public AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAppIntegrationsServiceConfig 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 AmazonAppIntegrationsServiceEndpointResolver());
}
/// <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 CreateDataIntegration
/// <summary>
/// Creates and persists a DataIntegration resource.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <code>CreateDataIntegration</code> API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateDataIntegration service method.</param>
///
/// <returns>The response from the CreateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateDataIntegration">REST API Reference for CreateDataIntegration Operation</seealso>
public virtual CreateDataIntegrationResponse CreateDataIntegration(CreateDataIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDataIntegrationResponseUnmarshaller.Instance;
return Invoke<CreateDataIntegrationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateDataIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateDataIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndCreateDataIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateDataIntegration">REST API Reference for CreateDataIntegration Operation</seealso>
public virtual IAsyncResult BeginCreateDataIntegration(CreateDataIntegrationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDataIntegrationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateDataIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateDataIntegration.</param>
///
/// <returns>Returns a CreateDataIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateDataIntegration">REST API Reference for CreateDataIntegration Operation</seealso>
public virtual CreateDataIntegrationResponse EndCreateDataIntegration(IAsyncResult asyncResult)
{
return EndInvoke<CreateDataIntegrationResponse>(asyncResult);
}
#endregion
#region CreateEventIntegration
/// <summary>
/// Creates an EventIntegration, given a specified name, description, and a reference
/// to an Amazon EventBridge bus in your account and a partner event source that pushes
/// events to that bus. No objects are created in the your account, only metadata that
/// is persisted on the EventIntegration control plane.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventIntegration service method.</param>
///
/// <returns>The response from the CreateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration">REST API Reference for CreateEventIntegration Operation</seealso>
public virtual CreateEventIntegrationResponse CreateEventIntegration(CreateEventIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEventIntegrationResponseUnmarshaller.Instance;
return Invoke<CreateEventIntegrationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateEventIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateEventIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndCreateEventIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration">REST API Reference for CreateEventIntegration Operation</seealso>
public virtual IAsyncResult BeginCreateEventIntegration(CreateEventIntegrationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEventIntegrationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateEventIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateEventIntegration.</param>
///
/// <returns>Returns a CreateEventIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration">REST API Reference for CreateEventIntegration Operation</seealso>
public virtual CreateEventIntegrationResponse EndCreateEventIntegration(IAsyncResult asyncResult)
{
return EndInvoke<CreateEventIntegrationResponse>(asyncResult);
}
#endregion
#region DeleteDataIntegration
/// <summary>
/// Deletes the DataIntegration. Only DataIntegrations that don't have any DataIntegrationAssociations
/// can be deleted. Deleting a DataIntegration also deletes the underlying Amazon AppFlow
/// flow and service linked role.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteDataIntegration service method.</param>
///
/// <returns>The response from the DeleteDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteDataIntegration">REST API Reference for DeleteDataIntegration Operation</seealso>
public virtual DeleteDataIntegrationResponse DeleteDataIntegration(DeleteDataIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDataIntegrationResponseUnmarshaller.Instance;
return Invoke<DeleteDataIntegrationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteDataIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteDataIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndDeleteDataIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteDataIntegration">REST API Reference for DeleteDataIntegration Operation</seealso>
public virtual IAsyncResult BeginDeleteDataIntegration(DeleteDataIntegrationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDataIntegrationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteDataIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteDataIntegration.</param>
///
/// <returns>Returns a DeleteDataIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteDataIntegration">REST API Reference for DeleteDataIntegration Operation</seealso>
public virtual DeleteDataIntegrationResponse EndDeleteDataIntegration(IAsyncResult asyncResult)
{
return EndInvoke<DeleteDataIntegrationResponse>(asyncResult);
}
#endregion
#region DeleteEventIntegration
/// <summary>
/// Deletes the specified existing event integration. If the event integration is associated
/// with clients, the request is rejected.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventIntegration service method.</param>
///
/// <returns>The response from the DeleteEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteEventIntegration">REST API Reference for DeleteEventIntegration Operation</seealso>
public virtual DeleteEventIntegrationResponse DeleteEventIntegration(DeleteEventIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEventIntegrationResponseUnmarshaller.Instance;
return Invoke<DeleteEventIntegrationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteEventIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteEventIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndDeleteEventIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteEventIntegration">REST API Reference for DeleteEventIntegration Operation</seealso>
public virtual IAsyncResult BeginDeleteEventIntegration(DeleteEventIntegrationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEventIntegrationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteEventIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteEventIntegration.</param>
///
/// <returns>Returns a DeleteEventIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteEventIntegration">REST API Reference for DeleteEventIntegration Operation</seealso>
public virtual DeleteEventIntegrationResponse EndDeleteEventIntegration(IAsyncResult asyncResult)
{
return EndInvoke<DeleteEventIntegrationResponse>(asyncResult);
}
#endregion
#region GetDataIntegration
/// <summary>
/// Returns information about the DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDataIntegration service method.</param>
///
/// <returns>The response from the GetDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetDataIntegration">REST API Reference for GetDataIntegration Operation</seealso>
public virtual GetDataIntegrationResponse GetDataIntegration(GetDataIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDataIntegrationResponseUnmarshaller.Instance;
return Invoke<GetDataIntegrationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the GetDataIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetDataIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndGetDataIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetDataIntegration">REST API Reference for GetDataIntegration Operation</seealso>
public virtual IAsyncResult BeginGetDataIntegration(GetDataIntegrationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDataIntegrationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the GetDataIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDataIntegration.</param>
///
/// <returns>Returns a GetDataIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetDataIntegration">REST API Reference for GetDataIntegration Operation</seealso>
public virtual GetDataIntegrationResponse EndGetDataIntegration(IAsyncResult asyncResult)
{
return EndInvoke<GetDataIntegrationResponse>(asyncResult);
}
#endregion
#region GetEventIntegration
/// <summary>
/// Returns information about the event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetEventIntegration service method.</param>
///
/// <returns>The response from the GetEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetEventIntegration">REST API Reference for GetEventIntegration Operation</seealso>
public virtual GetEventIntegrationResponse GetEventIntegration(GetEventIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetEventIntegrationResponseUnmarshaller.Instance;
return Invoke<GetEventIntegrationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the GetEventIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetEventIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndGetEventIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetEventIntegration">REST API Reference for GetEventIntegration Operation</seealso>
public virtual IAsyncResult BeginGetEventIntegration(GetEventIntegrationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetEventIntegrationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the GetEventIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetEventIntegration.</param>
///
/// <returns>Returns a GetEventIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetEventIntegration">REST API Reference for GetEventIntegration Operation</seealso>
public virtual GetEventIntegrationResponse EndGetEventIntegration(IAsyncResult asyncResult)
{
return EndInvoke<GetEventIntegrationResponse>(asyncResult);
}
#endregion
#region ListDataIntegrationAssociations
/// <summary>
/// Returns a paginated list of DataIntegration associations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrationAssociations service method.</param>
///
/// <returns>The response from the ListDataIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrationAssociations">REST API Reference for ListDataIntegrationAssociations Operation</seealso>
public virtual ListDataIntegrationAssociationsResponse ListDataIntegrationAssociations(ListDataIntegrationAssociationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDataIntegrationAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDataIntegrationAssociationsResponseUnmarshaller.Instance;
return Invoke<ListDataIntegrationAssociationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListDataIntegrationAssociations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrationAssociations operation on AmazonAppIntegrationsServiceClient.</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 EndListDataIntegrationAssociations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrationAssociations">REST API Reference for ListDataIntegrationAssociations Operation</seealso>
public virtual IAsyncResult BeginListDataIntegrationAssociations(ListDataIntegrationAssociationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDataIntegrationAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDataIntegrationAssociationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListDataIntegrationAssociations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDataIntegrationAssociations.</param>
///
/// <returns>Returns a ListDataIntegrationAssociationsResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrationAssociations">REST API Reference for ListDataIntegrationAssociations Operation</seealso>
public virtual ListDataIntegrationAssociationsResponse EndListDataIntegrationAssociations(IAsyncResult asyncResult)
{
return EndInvoke<ListDataIntegrationAssociationsResponse>(asyncResult);
}
#endregion
#region ListDataIntegrations
/// <summary>
/// Returns a paginated list of DataIntegrations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrations service method.</param>
///
/// <returns>The response from the ListDataIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrations">REST API Reference for ListDataIntegrations Operation</seealso>
public virtual ListDataIntegrationsResponse ListDataIntegrations(ListDataIntegrationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDataIntegrationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDataIntegrationsResponseUnmarshaller.Instance;
return Invoke<ListDataIntegrationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListDataIntegrations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrations operation on AmazonAppIntegrationsServiceClient.</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 EndListDataIntegrations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrations">REST API Reference for ListDataIntegrations Operation</seealso>
public virtual IAsyncResult BeginListDataIntegrations(ListDataIntegrationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDataIntegrationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDataIntegrationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListDataIntegrations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDataIntegrations.</param>
///
/// <returns>Returns a ListDataIntegrationsResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrations">REST API Reference for ListDataIntegrations Operation</seealso>
public virtual ListDataIntegrationsResponse EndListDataIntegrations(IAsyncResult asyncResult)
{
return EndInvoke<ListDataIntegrationsResponse>(asyncResult);
}
#endregion
#region ListEventIntegrationAssociations
/// <summary>
/// Returns a paginated list of event integration associations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrationAssociations service method.</param>
///
/// <returns>The response from the ListEventIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrationAssociations">REST API Reference for ListEventIntegrationAssociations Operation</seealso>
public virtual ListEventIntegrationAssociationsResponse ListEventIntegrationAssociations(ListEventIntegrationAssociationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventIntegrationAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventIntegrationAssociationsResponseUnmarshaller.Instance;
return Invoke<ListEventIntegrationAssociationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListEventIntegrationAssociations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrationAssociations operation on AmazonAppIntegrationsServiceClient.</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 EndListEventIntegrationAssociations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrationAssociations">REST API Reference for ListEventIntegrationAssociations Operation</seealso>
public virtual IAsyncResult BeginListEventIntegrationAssociations(ListEventIntegrationAssociationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventIntegrationAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventIntegrationAssociationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListEventIntegrationAssociations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListEventIntegrationAssociations.</param>
///
/// <returns>Returns a ListEventIntegrationAssociationsResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrationAssociations">REST API Reference for ListEventIntegrationAssociations Operation</seealso>
public virtual ListEventIntegrationAssociationsResponse EndListEventIntegrationAssociations(IAsyncResult asyncResult)
{
return EndInvoke<ListEventIntegrationAssociationsResponse>(asyncResult);
}
#endregion
#region ListEventIntegrations
/// <summary>
/// Returns a paginated list of event integrations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrations service method.</param>
///
/// <returns>The response from the ListEventIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrations">REST API Reference for ListEventIntegrations Operation</seealso>
public virtual ListEventIntegrationsResponse ListEventIntegrations(ListEventIntegrationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventIntegrationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventIntegrationsResponseUnmarshaller.Instance;
return Invoke<ListEventIntegrationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListEventIntegrations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrations operation on AmazonAppIntegrationsServiceClient.</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 EndListEventIntegrations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrations">REST API Reference for ListEventIntegrations Operation</seealso>
public virtual IAsyncResult BeginListEventIntegrations(ListEventIntegrationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventIntegrationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventIntegrationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListEventIntegrations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListEventIntegrations.</param>
///
/// <returns>Returns a ListEventIntegrationsResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrations">REST API Reference for ListEventIntegrations Operation</seealso>
public virtual ListEventIntegrationsResponse EndListEventIntegrations(IAsyncResult asyncResult)
{
return EndInvoke<ListEventIntegrationsResponse>(asyncResult);
}
#endregion
#region ListTagsForResource
/// <summary>
/// Lists the tags for the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/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 AmazonAppIntegrationsServiceClient.</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/appintegrations-2020-07-29/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 AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult)
{
return EndInvoke<ListTagsForResourceResponse>(asyncResult);
}
#endregion
#region TagResource
/// <summary>
/// Adds the specified tags to the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/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 AmazonAppIntegrationsServiceClient.</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/appintegrations-2020-07-29/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 AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult)
{
return EndInvoke<TagResourceResponse>(asyncResult);
}
#endregion
#region UntagResource
/// <summary>
/// Removes the specified tags from the specified resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/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 AmazonAppIntegrationsServiceClient.</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/appintegrations-2020-07-29/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 AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult)
{
return EndInvoke<UntagResourceResponse>(asyncResult);
}
#endregion
#region UpdateDataIntegration
/// <summary>
/// Updates the description of a DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateDataIntegration service method.</param>
///
/// <returns>The response from the UpdateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateDataIntegration">REST API Reference for UpdateDataIntegration Operation</seealso>
public virtual UpdateDataIntegrationResponse UpdateDataIntegration(UpdateDataIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDataIntegrationResponseUnmarshaller.Instance;
return Invoke<UpdateDataIntegrationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UpdateDataIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateDataIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndUpdateDataIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateDataIntegration">REST API Reference for UpdateDataIntegration Operation</seealso>
public virtual IAsyncResult BeginUpdateDataIntegration(UpdateDataIntegrationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDataIntegrationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UpdateDataIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateDataIntegration.</param>
///
/// <returns>Returns a UpdateDataIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateDataIntegration">REST API Reference for UpdateDataIntegration Operation</seealso>
public virtual UpdateDataIntegrationResponse EndUpdateDataIntegration(IAsyncResult asyncResult)
{
return EndInvoke<UpdateDataIntegrationResponse>(asyncResult);
}
#endregion
#region UpdateEventIntegration
/// <summary>
/// Updates the description of an event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateEventIntegration service method.</param>
///
/// <returns>The response from the UpdateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateEventIntegration">REST API Reference for UpdateEventIntegration Operation</seealso>
public virtual UpdateEventIntegrationResponse UpdateEventIntegration(UpdateEventIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateEventIntegrationResponseUnmarshaller.Instance;
return Invoke<UpdateEventIntegrationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UpdateEventIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateEventIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndUpdateEventIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateEventIntegration">REST API Reference for UpdateEventIntegration Operation</seealso>
public virtual IAsyncResult BeginUpdateEventIntegration(UpdateEventIntegrationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateEventIntegrationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UpdateEventIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateEventIntegration.</param>
///
/// <returns>Returns a UpdateEventIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateEventIntegration">REST API Reference for UpdateEventIntegration Operation</seealso>
public virtual UpdateEventIntegrationResponse EndUpdateEventIntegration(IAsyncResult asyncResult)
{
return EndInvoke<UpdateEventIntegrationResponse>(asyncResult);
}
#endregion
}
} | 1,345 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.AppIntegrationsService.Model;
namespace Amazon.AppIntegrationsService
{
/// <summary>
/// Interface for accessing AppIntegrationsService
///
/// The Amazon AppIntegrations service enables you to configure and reuse connections
/// to external applications.
///
///
/// <para>
/// For information about how you can use external applications with Amazon Connect, see
/// <a href="https://docs.aws.amazon.com/connect/latest/adminguide/crm.html">Set up pre-built
/// integrations</a> and <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-wisdom.html">Deliver
/// information to agents using Amazon Connect Wisdom</a> in the <i>Amazon Connect Administrator
/// Guide</i>.
/// </para>
/// </summary>
public partial interface IAmazonAppIntegrationsService : IAmazonService, IDisposable
{
#region CreateDataIntegration
/// <summary>
/// Creates and persists a DataIntegration resource.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <code>CreateDataIntegration</code> API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateDataIntegration service method.</param>
///
/// <returns>The response from the CreateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateDataIntegration">REST API Reference for CreateDataIntegration Operation</seealso>
CreateDataIntegrationResponse CreateDataIntegration(CreateDataIntegrationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateDataIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateDataIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndCreateDataIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateDataIntegration">REST API Reference for CreateDataIntegration Operation</seealso>
IAsyncResult BeginCreateDataIntegration(CreateDataIntegrationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateDataIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateDataIntegration.</param>
///
/// <returns>Returns a CreateDataIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateDataIntegration">REST API Reference for CreateDataIntegration Operation</seealso>
CreateDataIntegrationResponse EndCreateDataIntegration(IAsyncResult asyncResult);
#endregion
#region CreateEventIntegration
/// <summary>
/// Creates an EventIntegration, given a specified name, description, and a reference
/// to an Amazon EventBridge bus in your account and a partner event source that pushes
/// events to that bus. No objects are created in the your account, only metadata that
/// is persisted on the EventIntegration control plane.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventIntegration service method.</param>
///
/// <returns>The response from the CreateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration">REST API Reference for CreateEventIntegration Operation</seealso>
CreateEventIntegrationResponse CreateEventIntegration(CreateEventIntegrationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateEventIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateEventIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndCreateEventIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration">REST API Reference for CreateEventIntegration Operation</seealso>
IAsyncResult BeginCreateEventIntegration(CreateEventIntegrationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateEventIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateEventIntegration.</param>
///
/// <returns>Returns a CreateEventIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration">REST API Reference for CreateEventIntegration Operation</seealso>
CreateEventIntegrationResponse EndCreateEventIntegration(IAsyncResult asyncResult);
#endregion
#region DeleteDataIntegration
/// <summary>
/// Deletes the DataIntegration. Only DataIntegrations that don't have any DataIntegrationAssociations
/// can be deleted. Deleting a DataIntegration also deletes the underlying Amazon AppFlow
/// flow and service linked role.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteDataIntegration service method.</param>
///
/// <returns>The response from the DeleteDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteDataIntegration">REST API Reference for DeleteDataIntegration Operation</seealso>
DeleteDataIntegrationResponse DeleteDataIntegration(DeleteDataIntegrationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteDataIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteDataIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndDeleteDataIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteDataIntegration">REST API Reference for DeleteDataIntegration Operation</seealso>
IAsyncResult BeginDeleteDataIntegration(DeleteDataIntegrationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteDataIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteDataIntegration.</param>
///
/// <returns>Returns a DeleteDataIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteDataIntegration">REST API Reference for DeleteDataIntegration Operation</seealso>
DeleteDataIntegrationResponse EndDeleteDataIntegration(IAsyncResult asyncResult);
#endregion
#region DeleteEventIntegration
/// <summary>
/// Deletes the specified existing event integration. If the event integration is associated
/// with clients, the request is rejected.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventIntegration service method.</param>
///
/// <returns>The response from the DeleteEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteEventIntegration">REST API Reference for DeleteEventIntegration Operation</seealso>
DeleteEventIntegrationResponse DeleteEventIntegration(DeleteEventIntegrationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteEventIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteEventIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndDeleteEventIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteEventIntegration">REST API Reference for DeleteEventIntegration Operation</seealso>
IAsyncResult BeginDeleteEventIntegration(DeleteEventIntegrationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteEventIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteEventIntegration.</param>
///
/// <returns>Returns a DeleteEventIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteEventIntegration">REST API Reference for DeleteEventIntegration Operation</seealso>
DeleteEventIntegrationResponse EndDeleteEventIntegration(IAsyncResult asyncResult);
#endregion
#region GetDataIntegration
/// <summary>
/// Returns information about the DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDataIntegration service method.</param>
///
/// <returns>The response from the GetDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetDataIntegration">REST API Reference for GetDataIntegration Operation</seealso>
GetDataIntegrationResponse GetDataIntegration(GetDataIntegrationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetDataIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetDataIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndGetDataIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetDataIntegration">REST API Reference for GetDataIntegration Operation</seealso>
IAsyncResult BeginGetDataIntegration(GetDataIntegrationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetDataIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDataIntegration.</param>
///
/// <returns>Returns a GetDataIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetDataIntegration">REST API Reference for GetDataIntegration Operation</seealso>
GetDataIntegrationResponse EndGetDataIntegration(IAsyncResult asyncResult);
#endregion
#region GetEventIntegration
/// <summary>
/// Returns information about the event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetEventIntegration service method.</param>
///
/// <returns>The response from the GetEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetEventIntegration">REST API Reference for GetEventIntegration Operation</seealso>
GetEventIntegrationResponse GetEventIntegration(GetEventIntegrationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetEventIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetEventIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndGetEventIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetEventIntegration">REST API Reference for GetEventIntegration Operation</seealso>
IAsyncResult BeginGetEventIntegration(GetEventIntegrationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetEventIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetEventIntegration.</param>
///
/// <returns>Returns a GetEventIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetEventIntegration">REST API Reference for GetEventIntegration Operation</seealso>
GetEventIntegrationResponse EndGetEventIntegration(IAsyncResult asyncResult);
#endregion
#region ListDataIntegrationAssociations
/// <summary>
/// Returns a paginated list of DataIntegration associations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrationAssociations service method.</param>
///
/// <returns>The response from the ListDataIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrationAssociations">REST API Reference for ListDataIntegrationAssociations Operation</seealso>
ListDataIntegrationAssociationsResponse ListDataIntegrationAssociations(ListDataIntegrationAssociationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListDataIntegrationAssociations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrationAssociations operation on AmazonAppIntegrationsServiceClient.</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 EndListDataIntegrationAssociations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrationAssociations">REST API Reference for ListDataIntegrationAssociations Operation</seealso>
IAsyncResult BeginListDataIntegrationAssociations(ListDataIntegrationAssociationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListDataIntegrationAssociations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDataIntegrationAssociations.</param>
///
/// <returns>Returns a ListDataIntegrationAssociationsResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrationAssociations">REST API Reference for ListDataIntegrationAssociations Operation</seealso>
ListDataIntegrationAssociationsResponse EndListDataIntegrationAssociations(IAsyncResult asyncResult);
#endregion
#region ListDataIntegrations
/// <summary>
/// Returns a paginated list of DataIntegrations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrations service method.</param>
///
/// <returns>The response from the ListDataIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrations">REST API Reference for ListDataIntegrations Operation</seealso>
ListDataIntegrationsResponse ListDataIntegrations(ListDataIntegrationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListDataIntegrations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrations operation on AmazonAppIntegrationsServiceClient.</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 EndListDataIntegrations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrations">REST API Reference for ListDataIntegrations Operation</seealso>
IAsyncResult BeginListDataIntegrations(ListDataIntegrationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListDataIntegrations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDataIntegrations.</param>
///
/// <returns>Returns a ListDataIntegrationsResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrations">REST API Reference for ListDataIntegrations Operation</seealso>
ListDataIntegrationsResponse EndListDataIntegrations(IAsyncResult asyncResult);
#endregion
#region ListEventIntegrationAssociations
/// <summary>
/// Returns a paginated list of event integration associations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrationAssociations service method.</param>
///
/// <returns>The response from the ListEventIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrationAssociations">REST API Reference for ListEventIntegrationAssociations Operation</seealso>
ListEventIntegrationAssociationsResponse ListEventIntegrationAssociations(ListEventIntegrationAssociationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListEventIntegrationAssociations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrationAssociations operation on AmazonAppIntegrationsServiceClient.</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 EndListEventIntegrationAssociations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrationAssociations">REST API Reference for ListEventIntegrationAssociations Operation</seealso>
IAsyncResult BeginListEventIntegrationAssociations(ListEventIntegrationAssociationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListEventIntegrationAssociations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListEventIntegrationAssociations.</param>
///
/// <returns>Returns a ListEventIntegrationAssociationsResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrationAssociations">REST API Reference for ListEventIntegrationAssociations Operation</seealso>
ListEventIntegrationAssociationsResponse EndListEventIntegrationAssociations(IAsyncResult asyncResult);
#endregion
#region ListEventIntegrations
/// <summary>
/// Returns a paginated list of event integrations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrations service method.</param>
///
/// <returns>The response from the ListEventIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrations">REST API Reference for ListEventIntegrations Operation</seealso>
ListEventIntegrationsResponse ListEventIntegrations(ListEventIntegrationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListEventIntegrations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrations operation on AmazonAppIntegrationsServiceClient.</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 EndListEventIntegrations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrations">REST API Reference for ListEventIntegrations Operation</seealso>
IAsyncResult BeginListEventIntegrations(ListEventIntegrationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListEventIntegrations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListEventIntegrations.</param>
///
/// <returns>Returns a ListEventIntegrationsResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrations">REST API Reference for ListEventIntegrations Operation</seealso>
ListEventIntegrationsResponse EndListEventIntegrations(IAsyncResult asyncResult);
#endregion
#region ListTagsForResource
/// <summary>
/// Lists the tags for the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/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 AmazonAppIntegrationsServiceClient.</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/appintegrations-2020-07-29/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 AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult);
#endregion
#region TagResource
/// <summary>
/// Adds the specified tags to the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/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 AmazonAppIntegrationsServiceClient.</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/appintegrations-2020-07-29/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 AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/TagResource">REST API Reference for TagResource Operation</seealso>
TagResourceResponse EndTagResource(IAsyncResult asyncResult);
#endregion
#region UntagResource
/// <summary>
/// Removes the specified tags from the specified resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/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 AmazonAppIntegrationsServiceClient.</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/appintegrations-2020-07-29/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 AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UntagResource">REST API Reference for UntagResource Operation</seealso>
UntagResourceResponse EndUntagResource(IAsyncResult asyncResult);
#endregion
#region UpdateDataIntegration
/// <summary>
/// Updates the description of a DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateDataIntegration service method.</param>
///
/// <returns>The response from the UpdateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateDataIntegration">REST API Reference for UpdateDataIntegration Operation</seealso>
UpdateDataIntegrationResponse UpdateDataIntegration(UpdateDataIntegrationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateDataIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateDataIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndUpdateDataIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateDataIntegration">REST API Reference for UpdateDataIntegration Operation</seealso>
IAsyncResult BeginUpdateDataIntegration(UpdateDataIntegrationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateDataIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateDataIntegration.</param>
///
/// <returns>Returns a UpdateDataIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateDataIntegration">REST API Reference for UpdateDataIntegration Operation</seealso>
UpdateDataIntegrationResponse EndUpdateDataIntegration(IAsyncResult asyncResult);
#endregion
#region UpdateEventIntegration
/// <summary>
/// Updates the description of an event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateEventIntegration service method.</param>
///
/// <returns>The response from the UpdateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateEventIntegration">REST API Reference for UpdateEventIntegration Operation</seealso>
UpdateEventIntegrationResponse UpdateEventIntegration(UpdateEventIntegrationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateEventIntegration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateEventIntegration operation on AmazonAppIntegrationsServiceClient.</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 EndUpdateEventIntegration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateEventIntegration">REST API Reference for UpdateEventIntegration Operation</seealso>
IAsyncResult BeginUpdateEventIntegration(UpdateEventIntegrationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateEventIntegration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateEventIntegration.</param>
///
/// <returns>Returns a UpdateEventIntegrationResult from AppIntegrationsService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateEventIntegration">REST API Reference for UpdateEventIntegration Operation</seealso>
UpdateEventIntegrationResponse EndUpdateEventIntegration(IAsyncResult asyncResult);
#endregion
}
} | 927 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.AppIntegrationsService.Model;
using Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations;
using Amazon.AppIntegrationsService.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AppIntegrationsService
{
/// <summary>
/// Implementation for accessing AppIntegrationsService
///
/// The Amazon AppIntegrations service enables you to configure and reuse connections
/// to external applications.
///
///
/// <para>
/// For information about how you can use external applications with Amazon Connect, see
/// <a href="https://docs.aws.amazon.com/connect/latest/adminguide/crm.html">Set up pre-built
/// integrations</a> and <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-wisdom.html">Deliver
/// information to agents using Amazon Connect Wisdom</a> in the <i>Amazon Connect Administrator
/// Guide</i>.
/// </para>
/// </summary>
public partial class AmazonAppIntegrationsServiceClient : AmazonServiceClient, IAmazonAppIntegrationsService
{
private static IServiceMetadata serviceMetadata = new AmazonAppIntegrationsServiceMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonAppIntegrationsServiceClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppIntegrationsServiceConfig()) { }
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonAppIntegrationsServiceClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppIntegrationsServiceConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonAppIntegrationsServiceClient Configuration Object</param>
public AmazonAppIntegrationsServiceClient(AmazonAppIntegrationsServiceConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAppIntegrationsServiceClient(AWSCredentials credentials)
: this(credentials, new AmazonAppIntegrationsServiceConfig())
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAppIntegrationsServiceClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAppIntegrationsServiceConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with AWS Credentials and an
/// AmazonAppIntegrationsServiceClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAppIntegrationsServiceClient Configuration Object</param>
public AmazonAppIntegrationsServiceClient(AWSCredentials credentials, AmazonAppIntegrationsServiceConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppIntegrationsServiceConfig())
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppIntegrationsServiceConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAppIntegrationsServiceClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAppIntegrationsServiceClient Configuration Object</param>
public AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAppIntegrationsServiceConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppIntegrationsServiceConfig())
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppIntegrationsServiceConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient Configuration Object</param>
public AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAppIntegrationsServiceConfig 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 AmazonAppIntegrationsServiceEndpointResolver());
}
/// <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 CreateDataIntegration
/// <summary>
/// Creates and persists a DataIntegration resource.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <code>CreateDataIntegration</code> API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateDataIntegration service method.</param>
///
/// <returns>The response from the CreateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateDataIntegration">REST API Reference for CreateDataIntegration Operation</seealso>
public virtual CreateDataIntegrationResponse CreateDataIntegration(CreateDataIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDataIntegrationResponseUnmarshaller.Instance;
return Invoke<CreateDataIntegrationResponse>(request, options);
}
/// <summary>
/// Creates and persists a DataIntegration resource.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <code>CreateDataIntegration</code> API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateDataIntegration 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 CreateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateDataIntegration">REST API Reference for CreateDataIntegration Operation</seealso>
public virtual Task<CreateDataIntegrationResponse> CreateDataIntegrationAsync(CreateDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDataIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<CreateDataIntegrationResponse>(request, options, cancellationToken);
}
#endregion
#region CreateEventIntegration
/// <summary>
/// Creates an EventIntegration, given a specified name, description, and a reference
/// to an Amazon EventBridge bus in your account and a partner event source that pushes
/// events to that bus. No objects are created in the your account, only metadata that
/// is persisted on the EventIntegration control plane.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventIntegration service method.</param>
///
/// <returns>The response from the CreateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration">REST API Reference for CreateEventIntegration Operation</seealso>
public virtual CreateEventIntegrationResponse CreateEventIntegration(CreateEventIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEventIntegrationResponseUnmarshaller.Instance;
return Invoke<CreateEventIntegrationResponse>(request, options);
}
/// <summary>
/// Creates an EventIntegration, given a specified name, description, and a reference
/// to an Amazon EventBridge bus in your account and a partner event source that pushes
/// events to that bus. No objects are created in the your account, only metadata that
/// is persisted on the EventIntegration control plane.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventIntegration 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 CreateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration">REST API Reference for CreateEventIntegration Operation</seealso>
public virtual Task<CreateEventIntegrationResponse> CreateEventIntegrationAsync(CreateEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEventIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<CreateEventIntegrationResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteDataIntegration
/// <summary>
/// Deletes the DataIntegration. Only DataIntegrations that don't have any DataIntegrationAssociations
/// can be deleted. Deleting a DataIntegration also deletes the underlying Amazon AppFlow
/// flow and service linked role.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteDataIntegration service method.</param>
///
/// <returns>The response from the DeleteDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteDataIntegration">REST API Reference for DeleteDataIntegration Operation</seealso>
public virtual DeleteDataIntegrationResponse DeleteDataIntegration(DeleteDataIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDataIntegrationResponseUnmarshaller.Instance;
return Invoke<DeleteDataIntegrationResponse>(request, options);
}
/// <summary>
/// Deletes the DataIntegration. Only DataIntegrations that don't have any DataIntegrationAssociations
/// can be deleted. Deleting a DataIntegration also deletes the underlying Amazon AppFlow
/// flow and service linked role.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteDataIntegration 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 DeleteDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteDataIntegration">REST API Reference for DeleteDataIntegration Operation</seealso>
public virtual Task<DeleteDataIntegrationResponse> DeleteDataIntegrationAsync(DeleteDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDataIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<DeleteDataIntegrationResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteEventIntegration
/// <summary>
/// Deletes the specified existing event integration. If the event integration is associated
/// with clients, the request is rejected.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventIntegration service method.</param>
///
/// <returns>The response from the DeleteEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteEventIntegration">REST API Reference for DeleteEventIntegration Operation</seealso>
public virtual DeleteEventIntegrationResponse DeleteEventIntegration(DeleteEventIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEventIntegrationResponseUnmarshaller.Instance;
return Invoke<DeleteEventIntegrationResponse>(request, options);
}
/// <summary>
/// Deletes the specified existing event integration. If the event integration is associated
/// with clients, the request is rejected.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventIntegration 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 DeleteEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteEventIntegration">REST API Reference for DeleteEventIntegration Operation</seealso>
public virtual Task<DeleteEventIntegrationResponse> DeleteEventIntegrationAsync(DeleteEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEventIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<DeleteEventIntegrationResponse>(request, options, cancellationToken);
}
#endregion
#region GetDataIntegration
/// <summary>
/// Returns information about the DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDataIntegration service method.</param>
///
/// <returns>The response from the GetDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetDataIntegration">REST API Reference for GetDataIntegration Operation</seealso>
public virtual GetDataIntegrationResponse GetDataIntegration(GetDataIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDataIntegrationResponseUnmarshaller.Instance;
return Invoke<GetDataIntegrationResponse>(request, options);
}
/// <summary>
/// Returns information about the DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDataIntegration 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 GetDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetDataIntegration">REST API Reference for GetDataIntegration Operation</seealso>
public virtual Task<GetDataIntegrationResponse> GetDataIntegrationAsync(GetDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDataIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<GetDataIntegrationResponse>(request, options, cancellationToken);
}
#endregion
#region GetEventIntegration
/// <summary>
/// Returns information about the event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetEventIntegration service method.</param>
///
/// <returns>The response from the GetEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetEventIntegration">REST API Reference for GetEventIntegration Operation</seealso>
public virtual GetEventIntegrationResponse GetEventIntegration(GetEventIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetEventIntegrationResponseUnmarshaller.Instance;
return Invoke<GetEventIntegrationResponse>(request, options);
}
/// <summary>
/// Returns information about the event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetEventIntegration 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 GetEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetEventIntegration">REST API Reference for GetEventIntegration Operation</seealso>
public virtual Task<GetEventIntegrationResponse> GetEventIntegrationAsync(GetEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetEventIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<GetEventIntegrationResponse>(request, options, cancellationToken);
}
#endregion
#region ListDataIntegrationAssociations
/// <summary>
/// Returns a paginated list of DataIntegration associations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrationAssociations service method.</param>
///
/// <returns>The response from the ListDataIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrationAssociations">REST API Reference for ListDataIntegrationAssociations Operation</seealso>
public virtual ListDataIntegrationAssociationsResponse ListDataIntegrationAssociations(ListDataIntegrationAssociationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDataIntegrationAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDataIntegrationAssociationsResponseUnmarshaller.Instance;
return Invoke<ListDataIntegrationAssociationsResponse>(request, options);
}
/// <summary>
/// Returns a paginated list of DataIntegration associations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrationAssociations 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 ListDataIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrationAssociations">REST API Reference for ListDataIntegrationAssociations Operation</seealso>
public virtual Task<ListDataIntegrationAssociationsResponse> ListDataIntegrationAssociationsAsync(ListDataIntegrationAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDataIntegrationAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDataIntegrationAssociationsResponseUnmarshaller.Instance;
return InvokeAsync<ListDataIntegrationAssociationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListDataIntegrations
/// <summary>
/// Returns a paginated list of DataIntegrations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrations service method.</param>
///
/// <returns>The response from the ListDataIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrations">REST API Reference for ListDataIntegrations Operation</seealso>
public virtual ListDataIntegrationsResponse ListDataIntegrations(ListDataIntegrationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDataIntegrationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDataIntegrationsResponseUnmarshaller.Instance;
return Invoke<ListDataIntegrationsResponse>(request, options);
}
/// <summary>
/// Returns a paginated list of DataIntegrations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrations 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 ListDataIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrations">REST API Reference for ListDataIntegrations Operation</seealso>
public virtual Task<ListDataIntegrationsResponse> ListDataIntegrationsAsync(ListDataIntegrationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDataIntegrationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDataIntegrationsResponseUnmarshaller.Instance;
return InvokeAsync<ListDataIntegrationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListEventIntegrationAssociations
/// <summary>
/// Returns a paginated list of event integration associations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrationAssociations service method.</param>
///
/// <returns>The response from the ListEventIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrationAssociations">REST API Reference for ListEventIntegrationAssociations Operation</seealso>
public virtual ListEventIntegrationAssociationsResponse ListEventIntegrationAssociations(ListEventIntegrationAssociationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventIntegrationAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventIntegrationAssociationsResponseUnmarshaller.Instance;
return Invoke<ListEventIntegrationAssociationsResponse>(request, options);
}
/// <summary>
/// Returns a paginated list of event integration associations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrationAssociations 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 ListEventIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrationAssociations">REST API Reference for ListEventIntegrationAssociations Operation</seealso>
public virtual Task<ListEventIntegrationAssociationsResponse> ListEventIntegrationAssociationsAsync(ListEventIntegrationAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventIntegrationAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventIntegrationAssociationsResponseUnmarshaller.Instance;
return InvokeAsync<ListEventIntegrationAssociationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListEventIntegrations
/// <summary>
/// Returns a paginated list of event integrations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrations service method.</param>
///
/// <returns>The response from the ListEventIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrations">REST API Reference for ListEventIntegrations Operation</seealso>
public virtual ListEventIntegrationsResponse ListEventIntegrations(ListEventIntegrationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventIntegrationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventIntegrationsResponseUnmarshaller.Instance;
return Invoke<ListEventIntegrationsResponse>(request, options);
}
/// <summary>
/// Returns a paginated list of event integrations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrations 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 ListEventIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrations">REST API Reference for ListEventIntegrations Operation</seealso>
public virtual Task<ListEventIntegrationsResponse> ListEventIntegrationsAsync(ListEventIntegrationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventIntegrationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventIntegrationsResponseUnmarshaller.Instance;
return InvokeAsync<ListEventIntegrationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
/// <summary>
/// Lists the tags for the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/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>
/// Lists the tags for the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/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 TagResource
/// <summary>
/// Adds the specified tags to the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/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>
/// Adds the specified tags to the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync<TagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region UntagResource
/// <summary>
/// Removes the specified tags from the specified resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/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 the specified tags from the specified resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/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 UpdateDataIntegration
/// <summary>
/// Updates the description of a DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateDataIntegration service method.</param>
///
/// <returns>The response from the UpdateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateDataIntegration">REST API Reference for UpdateDataIntegration Operation</seealso>
public virtual UpdateDataIntegrationResponse UpdateDataIntegration(UpdateDataIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDataIntegrationResponseUnmarshaller.Instance;
return Invoke<UpdateDataIntegrationResponse>(request, options);
}
/// <summary>
/// Updates the description of a DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateDataIntegration 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 UpdateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateDataIntegration">REST API Reference for UpdateDataIntegration Operation</seealso>
public virtual Task<UpdateDataIntegrationResponse> UpdateDataIntegrationAsync(UpdateDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDataIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<UpdateDataIntegrationResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateEventIntegration
/// <summary>
/// Updates the description of an event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateEventIntegration service method.</param>
///
/// <returns>The response from the UpdateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateEventIntegration">REST API Reference for UpdateEventIntegration Operation</seealso>
public virtual UpdateEventIntegrationResponse UpdateEventIntegration(UpdateEventIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateEventIntegrationResponseUnmarshaller.Instance;
return Invoke<UpdateEventIntegrationResponse>(request, options);
}
/// <summary>
/// Updates the description of an event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateEventIntegration 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 UpdateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateEventIntegration">REST API Reference for UpdateEventIntegration Operation</seealso>
public virtual Task<UpdateEventIntegrationResponse> UpdateEventIntegrationAsync(UpdateEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateEventIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<UpdateEventIntegrationResponse>(request, options, cancellationToken);
}
#endregion
}
} | 1,426 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AppIntegrationsService.Model;
namespace Amazon.AppIntegrationsService
{
/// <summary>
/// Interface for accessing AppIntegrationsService
///
/// The Amazon AppIntegrations service enables you to configure and reuse connections
/// to external applications.
///
///
/// <para>
/// For information about how you can use external applications with Amazon Connect, see
/// <a href="https://docs.aws.amazon.com/connect/latest/adminguide/crm.html">Set up pre-built
/// integrations</a> and <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-wisdom.html">Deliver
/// information to agents using Amazon Connect Wisdom</a> in the <i>Amazon Connect Administrator
/// Guide</i>.
/// </para>
/// </summary>
public partial interface IAmazonAppIntegrationsService : IAmazonService, IDisposable
{
#region CreateDataIntegration
/// <summary>
/// Creates and persists a DataIntegration resource.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <code>CreateDataIntegration</code> API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateDataIntegration service method.</param>
///
/// <returns>The response from the CreateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateDataIntegration">REST API Reference for CreateDataIntegration Operation</seealso>
CreateDataIntegrationResponse CreateDataIntegration(CreateDataIntegrationRequest request);
/// <summary>
/// Creates and persists a DataIntegration resource.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <code>CreateDataIntegration</code> API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateDataIntegration 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 CreateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateDataIntegration">REST API Reference for CreateDataIntegration Operation</seealso>
Task<CreateDataIntegrationResponse> CreateDataIntegrationAsync(CreateDataIntegrationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateEventIntegration
/// <summary>
/// Creates an EventIntegration, given a specified name, description, and a reference
/// to an Amazon EventBridge bus in your account and a partner event source that pushes
/// events to that bus. No objects are created in the your account, only metadata that
/// is persisted on the EventIntegration control plane.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventIntegration service method.</param>
///
/// <returns>The response from the CreateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration">REST API Reference for CreateEventIntegration Operation</seealso>
CreateEventIntegrationResponse CreateEventIntegration(CreateEventIntegrationRequest request);
/// <summary>
/// Creates an EventIntegration, given a specified name, description, and a reference
/// to an Amazon EventBridge bus in your account and a partner event source that pushes
/// events to that bus. No objects are created in the your account, only metadata that
/// is persisted on the EventIntegration control plane.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventIntegration 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 CreateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration">REST API Reference for CreateEventIntegration Operation</seealso>
Task<CreateEventIntegrationResponse> CreateEventIntegrationAsync(CreateEventIntegrationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteDataIntegration
/// <summary>
/// Deletes the DataIntegration. Only DataIntegrations that don't have any DataIntegrationAssociations
/// can be deleted. Deleting a DataIntegration also deletes the underlying Amazon AppFlow
/// flow and service linked role.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteDataIntegration service method.</param>
///
/// <returns>The response from the DeleteDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteDataIntegration">REST API Reference for DeleteDataIntegration Operation</seealso>
DeleteDataIntegrationResponse DeleteDataIntegration(DeleteDataIntegrationRequest request);
/// <summary>
/// Deletes the DataIntegration. Only DataIntegrations that don't have any DataIntegrationAssociations
/// can be deleted. Deleting a DataIntegration also deletes the underlying Amazon AppFlow
/// flow and service linked role.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteDataIntegration 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 DeleteDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteDataIntegration">REST API Reference for DeleteDataIntegration Operation</seealso>
Task<DeleteDataIntegrationResponse> DeleteDataIntegrationAsync(DeleteDataIntegrationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteEventIntegration
/// <summary>
/// Deletes the specified existing event integration. If the event integration is associated
/// with clients, the request is rejected.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventIntegration service method.</param>
///
/// <returns>The response from the DeleteEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteEventIntegration">REST API Reference for DeleteEventIntegration Operation</seealso>
DeleteEventIntegrationResponse DeleteEventIntegration(DeleteEventIntegrationRequest request);
/// <summary>
/// Deletes the specified existing event integration. If the event integration is associated
/// with clients, the request is rejected.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventIntegration 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 DeleteEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteEventIntegration">REST API Reference for DeleteEventIntegration Operation</seealso>
Task<DeleteEventIntegrationResponse> DeleteEventIntegrationAsync(DeleteEventIntegrationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetDataIntegration
/// <summary>
/// Returns information about the DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDataIntegration service method.</param>
///
/// <returns>The response from the GetDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetDataIntegration">REST API Reference for GetDataIntegration Operation</seealso>
GetDataIntegrationResponse GetDataIntegration(GetDataIntegrationRequest request);
/// <summary>
/// Returns information about the DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDataIntegration 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 GetDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetDataIntegration">REST API Reference for GetDataIntegration Operation</seealso>
Task<GetDataIntegrationResponse> GetDataIntegrationAsync(GetDataIntegrationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetEventIntegration
/// <summary>
/// Returns information about the event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetEventIntegration service method.</param>
///
/// <returns>The response from the GetEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetEventIntegration">REST API Reference for GetEventIntegration Operation</seealso>
GetEventIntegrationResponse GetEventIntegration(GetEventIntegrationRequest request);
/// <summary>
/// Returns information about the event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetEventIntegration 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 GetEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetEventIntegration">REST API Reference for GetEventIntegration Operation</seealso>
Task<GetEventIntegrationResponse> GetEventIntegrationAsync(GetEventIntegrationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListDataIntegrationAssociations
/// <summary>
/// Returns a paginated list of DataIntegration associations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrationAssociations service method.</param>
///
/// <returns>The response from the ListDataIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrationAssociations">REST API Reference for ListDataIntegrationAssociations Operation</seealso>
ListDataIntegrationAssociationsResponse ListDataIntegrationAssociations(ListDataIntegrationAssociationsRequest request);
/// <summary>
/// Returns a paginated list of DataIntegration associations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrationAssociations 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 ListDataIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrationAssociations">REST API Reference for ListDataIntegrationAssociations Operation</seealso>
Task<ListDataIntegrationAssociationsResponse> ListDataIntegrationAssociationsAsync(ListDataIntegrationAssociationsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListDataIntegrations
/// <summary>
/// Returns a paginated list of DataIntegrations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrations service method.</param>
///
/// <returns>The response from the ListDataIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrations">REST API Reference for ListDataIntegrations Operation</seealso>
ListDataIntegrationsResponse ListDataIntegrations(ListDataIntegrationsRequest request);
/// <summary>
/// Returns a paginated list of DataIntegrations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrations 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 ListDataIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrations">REST API Reference for ListDataIntegrations Operation</seealso>
Task<ListDataIntegrationsResponse> ListDataIntegrationsAsync(ListDataIntegrationsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListEventIntegrationAssociations
/// <summary>
/// Returns a paginated list of event integration associations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrationAssociations service method.</param>
///
/// <returns>The response from the ListEventIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrationAssociations">REST API Reference for ListEventIntegrationAssociations Operation</seealso>
ListEventIntegrationAssociationsResponse ListEventIntegrationAssociations(ListEventIntegrationAssociationsRequest request);
/// <summary>
/// Returns a paginated list of event integration associations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrationAssociations 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 ListEventIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrationAssociations">REST API Reference for ListEventIntegrationAssociations Operation</seealso>
Task<ListEventIntegrationAssociationsResponse> ListEventIntegrationAssociationsAsync(ListEventIntegrationAssociationsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListEventIntegrations
/// <summary>
/// Returns a paginated list of event integrations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrations service method.</param>
///
/// <returns>The response from the ListEventIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrations">REST API Reference for ListEventIntegrations Operation</seealso>
ListEventIntegrationsResponse ListEventIntegrations(ListEventIntegrationsRequest request);
/// <summary>
/// Returns a paginated list of event integrations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrations 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 ListEventIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrations">REST API Reference for ListEventIntegrations Operation</seealso>
Task<ListEventIntegrationsResponse> ListEventIntegrationsAsync(ListEventIntegrationsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTagsForResource
/// <summary>
/// Lists the tags for the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request);
/// <summary>
/// Lists the tags for the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region TagResource
/// <summary>
/// Adds the specified tags to the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/TagResource">REST API Reference for TagResource Operation</seealso>
TagResourceResponse TagResource(TagResourceRequest request);
/// <summary>
/// Adds the specified tags to the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/TagResource">REST API Reference for TagResource Operation</seealso>
Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UntagResource
/// <summary>
/// Removes the specified tags from the specified resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UntagResource">REST API Reference for UntagResource Operation</seealso>
UntagResourceResponse UntagResource(UntagResourceRequest request);
/// <summary>
/// Removes the specified tags from the specified resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UntagResource">REST API Reference for UntagResource Operation</seealso>
Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateDataIntegration
/// <summary>
/// Updates the description of a DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateDataIntegration service method.</param>
///
/// <returns>The response from the UpdateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateDataIntegration">REST API Reference for UpdateDataIntegration Operation</seealso>
UpdateDataIntegrationResponse UpdateDataIntegration(UpdateDataIntegrationRequest request);
/// <summary>
/// Updates the description of a DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateDataIntegration 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 UpdateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateDataIntegration">REST API Reference for UpdateDataIntegration Operation</seealso>
Task<UpdateDataIntegrationResponse> UpdateDataIntegrationAsync(UpdateDataIntegrationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateEventIntegration
/// <summary>
/// Updates the description of an event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateEventIntegration service method.</param>
///
/// <returns>The response from the UpdateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateEventIntegration">REST API Reference for UpdateEventIntegration Operation</seealso>
UpdateEventIntegrationResponse UpdateEventIntegration(UpdateEventIntegrationRequest request);
/// <summary>
/// Updates the description of an event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateEventIntegration 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 UpdateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateEventIntegration">REST API Reference for UpdateEventIntegration Operation</seealso>
Task<UpdateEventIntegrationResponse> UpdateEventIntegrationAsync(UpdateEventIntegrationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 1,022 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.AppIntegrationsService.Model;
using Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations;
using Amazon.AppIntegrationsService.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AppIntegrationsService
{
/// <summary>
/// Implementation for accessing AppIntegrationsService
///
/// The Amazon AppIntegrations service enables you to configure and reuse connections
/// to external applications.
///
///
/// <para>
/// For information about how you can use external applications with Amazon Connect, see
/// <a href="https://docs.aws.amazon.com/connect/latest/adminguide/crm.html">Set up pre-built
/// integrations</a> and <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-wisdom.html">Deliver
/// information to agents using Amazon Connect Wisdom</a> in the <i>Amazon Connect Administrator
/// Guide</i>.
/// </para>
/// </summary>
public partial class AmazonAppIntegrationsServiceClient : AmazonServiceClient, IAmazonAppIntegrationsService
{
private static IServiceMetadata serviceMetadata = new AmazonAppIntegrationsServiceMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonAppIntegrationsServiceClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppIntegrationsServiceConfig()) { }
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonAppIntegrationsServiceClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppIntegrationsServiceConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonAppIntegrationsServiceClient Configuration Object</param>
public AmazonAppIntegrationsServiceClient(AmazonAppIntegrationsServiceConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAppIntegrationsServiceClient(AWSCredentials credentials)
: this(credentials, new AmazonAppIntegrationsServiceConfig())
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAppIntegrationsServiceClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAppIntegrationsServiceConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with AWS Credentials and an
/// AmazonAppIntegrationsServiceClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAppIntegrationsServiceClient Configuration Object</param>
public AmazonAppIntegrationsServiceClient(AWSCredentials credentials, AmazonAppIntegrationsServiceConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppIntegrationsServiceConfig())
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppIntegrationsServiceConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAppIntegrationsServiceClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAppIntegrationsServiceClient Configuration Object</param>
public AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAppIntegrationsServiceConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppIntegrationsServiceConfig())
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppIntegrationsServiceConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAppIntegrationsServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient Configuration Object</param>
public AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAppIntegrationsServiceConfig 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>
/// 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 AmazonAppIntegrationsServiceEndpointResolver());
}
/// <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 CreateDataIntegration
internal virtual CreateDataIntegrationResponse CreateDataIntegration(CreateDataIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDataIntegrationResponseUnmarshaller.Instance;
return Invoke<CreateDataIntegrationResponse>(request, options);
}
/// <summary>
/// Creates and persists a DataIntegration resource.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <code>CreateDataIntegration</code> API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateDataIntegration 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 CreateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateDataIntegration">REST API Reference for CreateDataIntegration Operation</seealso>
public virtual Task<CreateDataIntegrationResponse> CreateDataIntegrationAsync(CreateDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDataIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<CreateDataIntegrationResponse>(request, options, cancellationToken);
}
#endregion
#region CreateEventIntegration
internal virtual CreateEventIntegrationResponse CreateEventIntegration(CreateEventIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEventIntegrationResponseUnmarshaller.Instance;
return Invoke<CreateEventIntegrationResponse>(request, options);
}
/// <summary>
/// Creates an EventIntegration, given a specified name, description, and a reference
/// to an Amazon EventBridge bus in your account and a partner event source that pushes
/// events to that bus. No objects are created in the your account, only metadata that
/// is persisted on the EventIntegration control plane.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventIntegration 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 CreateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration">REST API Reference for CreateEventIntegration Operation</seealso>
public virtual Task<CreateEventIntegrationResponse> CreateEventIntegrationAsync(CreateEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEventIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<CreateEventIntegrationResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteDataIntegration
internal virtual DeleteDataIntegrationResponse DeleteDataIntegration(DeleteDataIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDataIntegrationResponseUnmarshaller.Instance;
return Invoke<DeleteDataIntegrationResponse>(request, options);
}
/// <summary>
/// Deletes the DataIntegration. Only DataIntegrations that don't have any DataIntegrationAssociations
/// can be deleted. Deleting a DataIntegration also deletes the underlying Amazon AppFlow
/// flow and service linked role.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteDataIntegration 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 DeleteDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteDataIntegration">REST API Reference for DeleteDataIntegration Operation</seealso>
public virtual Task<DeleteDataIntegrationResponse> DeleteDataIntegrationAsync(DeleteDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDataIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<DeleteDataIntegrationResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteEventIntegration
internal virtual DeleteEventIntegrationResponse DeleteEventIntegration(DeleteEventIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEventIntegrationResponseUnmarshaller.Instance;
return Invoke<DeleteEventIntegrationResponse>(request, options);
}
/// <summary>
/// Deletes the specified existing event integration. If the event integration is associated
/// with clients, the request is rejected.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventIntegration 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 DeleteEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteEventIntegration">REST API Reference for DeleteEventIntegration Operation</seealso>
public virtual Task<DeleteEventIntegrationResponse> DeleteEventIntegrationAsync(DeleteEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEventIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<DeleteEventIntegrationResponse>(request, options, cancellationToken);
}
#endregion
#region GetDataIntegration
internal virtual GetDataIntegrationResponse GetDataIntegration(GetDataIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDataIntegrationResponseUnmarshaller.Instance;
return Invoke<GetDataIntegrationResponse>(request, options);
}
/// <summary>
/// Returns information about the DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDataIntegration 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 GetDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetDataIntegration">REST API Reference for GetDataIntegration Operation</seealso>
public virtual Task<GetDataIntegrationResponse> GetDataIntegrationAsync(GetDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDataIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<GetDataIntegrationResponse>(request, options, cancellationToken);
}
#endregion
#region GetEventIntegration
internal virtual GetEventIntegrationResponse GetEventIntegration(GetEventIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetEventIntegrationResponseUnmarshaller.Instance;
return Invoke<GetEventIntegrationResponse>(request, options);
}
/// <summary>
/// Returns information about the event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetEventIntegration 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 GetEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetEventIntegration">REST API Reference for GetEventIntegration Operation</seealso>
public virtual Task<GetEventIntegrationResponse> GetEventIntegrationAsync(GetEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetEventIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<GetEventIntegrationResponse>(request, options, cancellationToken);
}
#endregion
#region ListDataIntegrationAssociations
internal virtual ListDataIntegrationAssociationsResponse ListDataIntegrationAssociations(ListDataIntegrationAssociationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDataIntegrationAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDataIntegrationAssociationsResponseUnmarshaller.Instance;
return Invoke<ListDataIntegrationAssociationsResponse>(request, options);
}
/// <summary>
/// Returns a paginated list of DataIntegration associations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrationAssociations 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 ListDataIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrationAssociations">REST API Reference for ListDataIntegrationAssociations Operation</seealso>
public virtual Task<ListDataIntegrationAssociationsResponse> ListDataIntegrationAssociationsAsync(ListDataIntegrationAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDataIntegrationAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDataIntegrationAssociationsResponseUnmarshaller.Instance;
return InvokeAsync<ListDataIntegrationAssociationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListDataIntegrations
internal virtual ListDataIntegrationsResponse ListDataIntegrations(ListDataIntegrationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDataIntegrationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDataIntegrationsResponseUnmarshaller.Instance;
return Invoke<ListDataIntegrationsResponse>(request, options);
}
/// <summary>
/// Returns a paginated list of DataIntegrations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrations 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 ListDataIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrations">REST API Reference for ListDataIntegrations Operation</seealso>
public virtual Task<ListDataIntegrationsResponse> ListDataIntegrationsAsync(ListDataIntegrationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDataIntegrationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDataIntegrationsResponseUnmarshaller.Instance;
return InvokeAsync<ListDataIntegrationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListEventIntegrationAssociations
internal virtual ListEventIntegrationAssociationsResponse ListEventIntegrationAssociations(ListEventIntegrationAssociationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventIntegrationAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventIntegrationAssociationsResponseUnmarshaller.Instance;
return Invoke<ListEventIntegrationAssociationsResponse>(request, options);
}
/// <summary>
/// Returns a paginated list of event integration associations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrationAssociations 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 ListEventIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrationAssociations">REST API Reference for ListEventIntegrationAssociations Operation</seealso>
public virtual Task<ListEventIntegrationAssociationsResponse> ListEventIntegrationAssociationsAsync(ListEventIntegrationAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventIntegrationAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventIntegrationAssociationsResponseUnmarshaller.Instance;
return InvokeAsync<ListEventIntegrationAssociationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListEventIntegrations
internal virtual ListEventIntegrationsResponse ListEventIntegrations(ListEventIntegrationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventIntegrationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventIntegrationsResponseUnmarshaller.Instance;
return Invoke<ListEventIntegrationsResponse>(request, options);
}
/// <summary>
/// Returns a paginated list of event integrations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrations 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 ListEventIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrations">REST API Reference for ListEventIntegrations Operation</seealso>
public virtual Task<ListEventIntegrationsResponse> ListEventIntegrationsAsync(ListEventIntegrationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventIntegrationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventIntegrationsResponseUnmarshaller.Instance;
return InvokeAsync<ListEventIntegrationsResponse>(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>
/// Lists the tags for the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/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 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>
/// Adds the specified tags to the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync<TagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region UntagResource
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 the specified tags from the specified resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/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 UpdateDataIntegration
internal virtual UpdateDataIntegrationResponse UpdateDataIntegration(UpdateDataIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDataIntegrationResponseUnmarshaller.Instance;
return Invoke<UpdateDataIntegrationResponse>(request, options);
}
/// <summary>
/// Updates the description of a DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateDataIntegration 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 UpdateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateDataIntegration">REST API Reference for UpdateDataIntegration Operation</seealso>
public virtual Task<UpdateDataIntegrationResponse> UpdateDataIntegrationAsync(UpdateDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDataIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDataIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<UpdateDataIntegrationResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateEventIntegration
internal virtual UpdateEventIntegrationResponse UpdateEventIntegration(UpdateEventIntegrationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateEventIntegrationResponseUnmarshaller.Instance;
return Invoke<UpdateEventIntegrationResponse>(request, options);
}
/// <summary>
/// Updates the description of an event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateEventIntegration 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 UpdateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateEventIntegration">REST API Reference for UpdateEventIntegration Operation</seealso>
public virtual Task<UpdateEventIntegrationResponse> UpdateEventIntegrationAsync(UpdateEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateEventIntegrationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateEventIntegrationResponseUnmarshaller.Instance;
return InvokeAsync<UpdateEventIntegrationResponse>(request, options, cancellationToken);
}
#endregion
}
} | 1,048 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AppIntegrationsService.Model;
namespace Amazon.AppIntegrationsService
{
/// <summary>
/// Interface for accessing AppIntegrationsService
///
/// The Amazon AppIntegrations service enables you to configure and reuse connections
/// to external applications.
///
///
/// <para>
/// For information about how you can use external applications with Amazon Connect, see
/// <a href="https://docs.aws.amazon.com/connect/latest/adminguide/crm.html">Set up pre-built
/// integrations</a> and <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-wisdom.html">Deliver
/// information to agents using Amazon Connect Wisdom</a> in the <i>Amazon Connect Administrator
/// Guide</i>.
/// </para>
/// </summary>
public partial interface IAmazonAppIntegrationsService : IAmazonService, IDisposable
{
#region CreateDataIntegration
/// <summary>
/// Creates and persists a DataIntegration resource.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <code>CreateDataIntegration</code> API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateDataIntegration 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 CreateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateDataIntegration">REST API Reference for CreateDataIntegration Operation</seealso>
Task<CreateDataIntegrationResponse> CreateDataIntegrationAsync(CreateDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateEventIntegration
/// <summary>
/// Creates an EventIntegration, given a specified name, description, and a reference
/// to an Amazon EventBridge bus in your account and a partner event source that pushes
/// events to that bus. No objects are created in the your account, only metadata that
/// is persisted on the EventIntegration control plane.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventIntegration 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 CreateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.DuplicateResourceException">
/// A resource with the specified name already exists.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceQuotaExceededException">
/// The allowed quota for the resource has been exceeded.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration">REST API Reference for CreateEventIntegration Operation</seealso>
Task<CreateEventIntegrationResponse> CreateEventIntegrationAsync(CreateEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteDataIntegration
/// <summary>
/// Deletes the DataIntegration. Only DataIntegrations that don't have any DataIntegrationAssociations
/// can be deleted. Deleting a DataIntegration also deletes the underlying Amazon AppFlow
/// flow and service linked role.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteDataIntegration 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 DeleteDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteDataIntegration">REST API Reference for DeleteDataIntegration Operation</seealso>
Task<DeleteDataIntegrationResponse> DeleteDataIntegrationAsync(DeleteDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteEventIntegration
/// <summary>
/// Deletes the specified existing event integration. If the event integration is associated
/// with clients, the request is rejected.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventIntegration 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 DeleteEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteEventIntegration">REST API Reference for DeleteEventIntegration Operation</seealso>
Task<DeleteEventIntegrationResponse> DeleteEventIntegrationAsync(DeleteEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetDataIntegration
/// <summary>
/// Returns information about the DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDataIntegration 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 GetDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetDataIntegration">REST API Reference for GetDataIntegration Operation</seealso>
Task<GetDataIntegrationResponse> GetDataIntegrationAsync(GetDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetEventIntegration
/// <summary>
/// Returns information about the event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetEventIntegration 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 GetEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetEventIntegration">REST API Reference for GetEventIntegration Operation</seealso>
Task<GetEventIntegrationResponse> GetEventIntegrationAsync(GetEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListDataIntegrationAssociations
/// <summary>
/// Returns a paginated list of DataIntegration associations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrationAssociations 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 ListDataIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrationAssociations">REST API Reference for ListDataIntegrationAssociations Operation</seealso>
Task<ListDataIntegrationAssociationsResponse> ListDataIntegrationAssociationsAsync(ListDataIntegrationAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListDataIntegrations
/// <summary>
/// Returns a paginated list of DataIntegrations in the account.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDataIntegrations 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 ListDataIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListDataIntegrations">REST API Reference for ListDataIntegrations Operation</seealso>
Task<ListDataIntegrationsResponse> ListDataIntegrationsAsync(ListDataIntegrationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListEventIntegrationAssociations
/// <summary>
/// Returns a paginated list of event integration associations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrationAssociations 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 ListEventIntegrationAssociations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrationAssociations">REST API Reference for ListEventIntegrationAssociations Operation</seealso>
Task<ListEventIntegrationAssociationsResponse> ListEventIntegrationAssociationsAsync(ListEventIntegrationAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListEventIntegrations
/// <summary>
/// Returns a paginated list of event integrations in the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventIntegrations 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 ListEventIntegrations service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrations">REST API Reference for ListEventIntegrations Operation</seealso>
Task<ListEventIntegrationsResponse> ListEventIntegrationsAsync(ListEventIntegrationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTagsForResource
/// <summary>
/// Lists the tags for the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region TagResource
/// <summary>
/// Adds the specified tags to the specified resource.
/// </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 AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/TagResource">REST API Reference for TagResource Operation</seealso>
Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UntagResource
/// <summary>
/// Removes the specified tags from the specified resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UntagResource">REST API Reference for UntagResource Operation</seealso>
Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateDataIntegration
/// <summary>
/// Updates the description of a DataIntegration.
///
/// <note>
/// <para>
/// You cannot create a DataIntegration association for a DataIntegration that has been
/// previously associated. Use a different DataIntegration, or recreate the DataIntegration
/// using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a>
/// API.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateDataIntegration 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 UpdateDataIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateDataIntegration">REST API Reference for UpdateDataIntegration Operation</seealso>
Task<UpdateDataIntegrationResponse> UpdateDataIntegrationAsync(UpdateDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateEventIntegration
/// <summary>
/// Updates the description of an event integration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateEventIntegration 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 UpdateEventIntegration service method, as returned by AppIntegrationsService.</returns>
/// <exception cref="Amazon.AppIntegrationsService.Model.AccessDeniedException">
/// You do not have sufficient access to perform this action.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InternalServiceErrorException">
/// Request processing failed due to an error or failure with the service.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.InvalidRequestException">
/// The request is not valid.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ResourceNotFoundException">
/// The specified resource was not found.
/// </exception>
/// <exception cref="Amazon.AppIntegrationsService.Model.ThrottlingException">
/// The throttling limit has been exceeded.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateEventIntegration">REST API Reference for UpdateEventIntegration Operation</seealso>
Task<UpdateEventIntegrationResponse> UpdateEventIntegrationAsync(UpdateEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 595 |
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.AppIntegrationsService")]
#if BCL35
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon AppIntegrations Service. The Amazon AppIntegrations service (in preview release) enables you to configure and reuse connections to external applications.")]
#elif BCL45
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Amazon AppIntegrations Service. The Amazon AppIntegrations service (in preview release) enables you to configure and reuse connections to external applications.")]
#elif NETSTANDARD20
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Amazon AppIntegrations Service. The Amazon AppIntegrations service (in preview release) enables you to configure and reuse connections to external applications.")]
#elif NETCOREAPP3_1
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Amazon AppIntegrations Service. The Amazon AppIntegrations service (in preview release) enables you to configure and reuse connections to external applications.")]
#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.101.58")]
[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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.ApplicationAutoScaling.Internal;
namespace Amazon.ApplicationAutoScaling
{
/// <summary>
/// Configuration for accessing Amazon ApplicationAutoScaling service
/// </summary>
[AWSSignerType("v4")]
public partial class AmazonApplicationAutoScalingConfig : ClientConfig
{
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("3.7.106.12");
private string _userAgent = UserAgentString;
/// <summary>
/// Default constructor
/// </summary>
public AmazonApplicationAutoScalingConfig()
: base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonApplicationAutoScalingDefaultConfiguration.GetAllConfigurations()))
{
this.AuthenticationServiceName = "application-autoscaling";
this.EndpointProvider = new AmazonApplicationAutoScalingEndpointProvider();
}
/// <summary>
/// The constant used to lookup in the region hash the endpoint.
/// </summary>
public override string RegionEndpointServiceName
{
get
{
return "application-autoscaling";
}
}
/// <summary>
/// Gets the ServiceVersion property.
/// </summary>
public override string ServiceVersion
{
get
{
return "2016-02-06";
}
}
/// <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 application-autoscaling-2016-02-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Amazon.Runtime;
namespace Amazon.ApplicationAutoScaling
{
/// <summary>
/// Configuration for accessing Amazon ApplicationAutoScaling service
/// </summary>
public static class AmazonApplicationAutoScalingDefaultConfiguration
{
/// <summary>
/// Collection of all <see cref="DefaultConfiguration"/>s supported by
/// ApplicationAutoScaling
/// </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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.