/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the fis-2020-12-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.FIS.Model;
using Amazon.FIS.Model.Internal.MarshallTransformations;
using Amazon.FIS.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.FIS
{
///
/// Implementation for accessing FIS
///
/// Fault Injection Simulator is a managed service that enables you to perform fault injection
/// experiments on your Amazon Web Services workloads. For more information, see the Fault Injection Simulator
/// User Guide.
///
public partial class AmazonFISClient : AmazonServiceClient, IAmazonFIS
{
private static IServiceMetadata serviceMetadata = new AmazonFISMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IFISPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IFISPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new FISPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
///
/// Constructs AmazonFISClient 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.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonFISClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonFISConfig()) { }
///
/// Constructs AmazonFISClient 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.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonFISClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonFISConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonFISClient 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.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonFISClient Configuration Object
public AmazonFISClient(AmazonFISConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonFISClient with AWS Credentials
///
/// AWS Credentials
public AmazonFISClient(AWSCredentials credentials)
: this(credentials, new AmazonFISConfig())
{
}
///
/// Constructs AmazonFISClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonFISClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonFISConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonFISClient with AWS Credentials and an
/// AmazonFISClient Configuration object.
///
/// AWS Credentials
/// The AmazonFISClient Configuration Object
public AmazonFISClient(AWSCredentials credentials, AmazonFISConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonFISClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonFISClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonFISConfig())
{
}
///
/// Constructs AmazonFISClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonFISClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonFISConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonFISClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonFISClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonFISClient Configuration Object
public AmazonFISClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonFISConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonFISClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonFISClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonFISConfig())
{
}
///
/// Constructs AmazonFISClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonFISClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonFISConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonFISClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonFISClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonFISClient Configuration Object
public AmazonFISClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonFISConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonFISEndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region CreateExperimentTemplate
///
/// Creates an experiment template.
///
///
///
/// An experiment template includes the following components:
///
/// -
///
/// Targets: A target can be a specific resource in your Amazon Web Services environment,
/// or one or more resources that match criteria that you specify, for example, resources
/// that have specific tags.
///
///
-
///
/// Actions: The actions to carry out on the target. You can specify multiple
/// actions, the duration of each action, and when to start each action during an experiment.
///
///
-
///
/// Stop conditions: If a stop condition is triggered while an experiment is running,
/// the experiment is automatically stopped. You can define a stop condition as a CloudWatch
/// alarm.
///
///
///
/// For more information, see Experiment
/// templates in the Fault Injection Simulator User Guide.
///
///
/// Container for the necessary parameters to execute the CreateExperimentTemplate service method.
///
/// The response from the CreateExperimentTemplate service method, as returned by FIS.
///
/// The request could not be processed because of a conflict.
///
///
/// The specified resource cannot be found.
///
///
/// You have exceeded your service quota.
///
///
/// The specified input is not valid, or fails to satisfy the constraints for the request.
///
/// REST API Reference for CreateExperimentTemplate Operation
public virtual CreateExperimentTemplateResponse CreateExperimentTemplate(CreateExperimentTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateExperimentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateExperimentTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateExperimentTemplate operation.
///
///
/// Container for the necessary parameters to execute the CreateExperimentTemplate operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateExperimentTemplate
/// operation.
/// REST API Reference for CreateExperimentTemplate Operation
public virtual IAsyncResult BeginCreateExperimentTemplate(CreateExperimentTemplateRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateExperimentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateExperimentTemplateResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateExperimentTemplate operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateExperimentTemplate.
///
/// Returns a CreateExperimentTemplateResult from FIS.
/// REST API Reference for CreateExperimentTemplate Operation
public virtual CreateExperimentTemplateResponse EndCreateExperimentTemplate(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteExperimentTemplate
///
/// Deletes the specified experiment template.
///
/// Container for the necessary parameters to execute the DeleteExperimentTemplate service method.
///
/// The response from the DeleteExperimentTemplate service method, as returned by FIS.
///
/// The specified resource cannot be found.
///
///
/// The specified input is not valid, or fails to satisfy the constraints for the request.
///
/// REST API Reference for DeleteExperimentTemplate Operation
public virtual DeleteExperimentTemplateResponse DeleteExperimentTemplate(DeleteExperimentTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteExperimentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteExperimentTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteExperimentTemplate operation.
///
///
/// Container for the necessary parameters to execute the DeleteExperimentTemplate operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteExperimentTemplate
/// operation.
/// REST API Reference for DeleteExperimentTemplate Operation
public virtual IAsyncResult BeginDeleteExperimentTemplate(DeleteExperimentTemplateRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteExperimentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteExperimentTemplateResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteExperimentTemplate operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteExperimentTemplate.
///
/// Returns a DeleteExperimentTemplateResult from FIS.
/// REST API Reference for DeleteExperimentTemplate Operation
public virtual DeleteExperimentTemplateResponse EndDeleteExperimentTemplate(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetAction
///
/// Gets information about the specified FIS action.
///
/// Container for the necessary parameters to execute the GetAction service method.
///
/// The response from the GetAction service method, as returned by FIS.
///
/// The specified resource cannot be found.
///
///
/// The specified input is not valid, or fails to satisfy the constraints for the request.
///
/// REST API Reference for GetAction Operation
public virtual GetActionResponse GetAction(GetActionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetActionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetAction operation.
///
///
/// Container for the necessary parameters to execute the GetAction operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAction
/// operation.
/// REST API Reference for GetAction Operation
public virtual IAsyncResult BeginGetAction(GetActionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetActionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetAction operation.
///
///
/// The IAsyncResult returned by the call to BeginGetAction.
///
/// Returns a GetActionResult from FIS.
/// REST API Reference for GetAction Operation
public virtual GetActionResponse EndGetAction(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetExperiment
///
/// Gets information about the specified experiment.
///
/// Container for the necessary parameters to execute the GetExperiment service method.
///
/// The response from the GetExperiment service method, as returned by FIS.
///
/// The specified resource cannot be found.
///
///
/// The specified input is not valid, or fails to satisfy the constraints for the request.
///
/// REST API Reference for GetExperiment Operation
public virtual GetExperimentResponse GetExperiment(GetExperimentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetExperimentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetExperimentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetExperiment operation.
///
///
/// Container for the necessary parameters to execute the GetExperiment operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetExperiment
/// operation.
/// REST API Reference for GetExperiment Operation
public virtual IAsyncResult BeginGetExperiment(GetExperimentRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetExperimentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetExperimentResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetExperiment operation.
///
///
/// The IAsyncResult returned by the call to BeginGetExperiment.
///
/// Returns a GetExperimentResult from FIS.
/// REST API Reference for GetExperiment Operation
public virtual GetExperimentResponse EndGetExperiment(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetExperimentTemplate
///
/// Gets information about the specified experiment template.
///
/// Container for the necessary parameters to execute the GetExperimentTemplate service method.
///
/// The response from the GetExperimentTemplate service method, as returned by FIS.
///
/// The specified resource cannot be found.
///
///
/// The specified input is not valid, or fails to satisfy the constraints for the request.
///
/// REST API Reference for GetExperimentTemplate Operation
public virtual GetExperimentTemplateResponse GetExperimentTemplate(GetExperimentTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetExperimentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetExperimentTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetExperimentTemplate operation.
///
///
/// Container for the necessary parameters to execute the GetExperimentTemplate operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetExperimentTemplate
/// operation.
/// REST API Reference for GetExperimentTemplate Operation
public virtual IAsyncResult BeginGetExperimentTemplate(GetExperimentTemplateRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetExperimentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetExperimentTemplateResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetExperimentTemplate operation.
///
///
/// The IAsyncResult returned by the call to BeginGetExperimentTemplate.
///
/// Returns a GetExperimentTemplateResult from FIS.
/// REST API Reference for GetExperimentTemplate Operation
public virtual GetExperimentTemplateResponse EndGetExperimentTemplate(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetTargetResourceType
///
/// Gets information about the specified resource type.
///
/// Container for the necessary parameters to execute the GetTargetResourceType service method.
///
/// The response from the GetTargetResourceType service method, as returned by FIS.
///
/// The specified resource cannot be found.
///
///
/// The specified input is not valid, or fails to satisfy the constraints for the request.
///
/// REST API Reference for GetTargetResourceType Operation
public virtual GetTargetResourceTypeResponse GetTargetResourceType(GetTargetResourceTypeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetTargetResourceTypeRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetTargetResourceTypeResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetTargetResourceType operation.
///
///
/// Container for the necessary parameters to execute the GetTargetResourceType operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetTargetResourceType
/// operation.
/// REST API Reference for GetTargetResourceType Operation
public virtual IAsyncResult BeginGetTargetResourceType(GetTargetResourceTypeRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetTargetResourceTypeRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetTargetResourceTypeResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetTargetResourceType operation.
///
///
/// The IAsyncResult returned by the call to BeginGetTargetResourceType.
///
/// Returns a GetTargetResourceTypeResult from FIS.
/// REST API Reference for GetTargetResourceType Operation
public virtual GetTargetResourceTypeResponse EndGetTargetResourceType(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListActions
///
/// Lists the available FIS actions.
///
/// Container for the necessary parameters to execute the ListActions service method.
///
/// The response from the ListActions service method, as returned by FIS.
///
/// The specified input is not valid, or fails to satisfy the constraints for the request.
///
/// REST API Reference for ListActions Operation
public virtual ListActionsResponse ListActions(ListActionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListActionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListActionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListActions operation.
///
///
/// Container for the necessary parameters to execute the ListActions operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListActions
/// operation.
/// REST API Reference for ListActions Operation
public virtual IAsyncResult BeginListActions(ListActionsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListActionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListActionsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListActions operation.
///
///
/// The IAsyncResult returned by the call to BeginListActions.
///
/// Returns a ListActionsResult from FIS.
/// REST API Reference for ListActions Operation
public virtual ListActionsResponse EndListActions(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListExperiments
///
/// Lists your experiments.
///
/// Container for the necessary parameters to execute the ListExperiments service method.
///
/// The response from the ListExperiments service method, as returned by FIS.
///
/// The specified input is not valid, or fails to satisfy the constraints for the request.
///
/// REST API Reference for ListExperiments Operation
public virtual ListExperimentsResponse ListExperiments(ListExperimentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListExperimentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListExperimentsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListExperiments operation.
///
///
/// Container for the necessary parameters to execute the ListExperiments operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListExperiments
/// operation.
/// REST API Reference for ListExperiments Operation
public virtual IAsyncResult BeginListExperiments(ListExperimentsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListExperimentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListExperimentsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListExperiments operation.
///
///
/// The IAsyncResult returned by the call to BeginListExperiments.
///
/// Returns a ListExperimentsResult from FIS.
/// REST API Reference for ListExperiments Operation
public virtual ListExperimentsResponse EndListExperiments(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListExperimentTemplates
///
/// Lists your experiment templates.
///
/// Container for the necessary parameters to execute the ListExperimentTemplates service method.
///
/// The response from the ListExperimentTemplates service method, as returned by FIS.
///
/// The specified input is not valid, or fails to satisfy the constraints for the request.
///
/// REST API Reference for ListExperimentTemplates Operation
public virtual ListExperimentTemplatesResponse ListExperimentTemplates(ListExperimentTemplatesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListExperimentTemplatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListExperimentTemplatesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListExperimentTemplates operation.
///
///
/// Container for the necessary parameters to execute the ListExperimentTemplates operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListExperimentTemplates
/// operation.
/// REST API Reference for ListExperimentTemplates Operation
public virtual IAsyncResult BeginListExperimentTemplates(ListExperimentTemplatesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListExperimentTemplatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListExperimentTemplatesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListExperimentTemplates operation.
///
///
/// The IAsyncResult returned by the call to BeginListExperimentTemplates.
///
/// Returns a ListExperimentTemplatesResult from FIS.
/// REST API Reference for ListExperimentTemplates Operation
public virtual ListExperimentTemplatesResponse EndListExperimentTemplates(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListTagsForResource
///
/// Lists the tags for the specified resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by FIS.
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListTagsForResource operation.
///
///
/// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource
/// operation.
/// REST API Reference for ListTagsForResource Operation
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);
}
///
/// Finishes the asynchronous execution of the ListTagsForResource operation.
///
///
/// The IAsyncResult returned by the call to BeginListTagsForResource.
///
/// Returns a ListTagsForResourceResult from FIS.
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListTargetResourceTypes
///
/// Lists the target resource types.
///
/// Container for the necessary parameters to execute the ListTargetResourceTypes service method.
///
/// The response from the ListTargetResourceTypes service method, as returned by FIS.
///
/// The specified input is not valid, or fails to satisfy the constraints for the request.
///
/// REST API Reference for ListTargetResourceTypes Operation
public virtual ListTargetResourceTypesResponse ListTargetResourceTypes(ListTargetResourceTypesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTargetResourceTypesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTargetResourceTypesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListTargetResourceTypes operation.
///
///
/// Container for the necessary parameters to execute the ListTargetResourceTypes operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTargetResourceTypes
/// operation.
/// REST API Reference for ListTargetResourceTypes Operation
public virtual IAsyncResult BeginListTargetResourceTypes(ListTargetResourceTypesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTargetResourceTypesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTargetResourceTypesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListTargetResourceTypes operation.
///
///
/// The IAsyncResult returned by the call to BeginListTargetResourceTypes.
///
/// Returns a ListTargetResourceTypesResult from FIS.
/// REST API Reference for ListTargetResourceTypes Operation
public virtual ListTargetResourceTypesResponse EndListTargetResourceTypes(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region StartExperiment
///
/// Starts running an experiment from the specified experiment template.
///
/// Container for the necessary parameters to execute the StartExperiment service method.
///
/// The response from the StartExperiment service method, as returned by FIS.
///
/// The request could not be processed because of a conflict.
///
///
/// The specified resource cannot be found.
///
///
/// You have exceeded your service quota.
///
///
/// The specified input is not valid, or fails to satisfy the constraints for the request.
///
/// REST API Reference for StartExperiment Operation
public virtual StartExperimentResponse StartExperiment(StartExperimentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartExperimentRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartExperimentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the StartExperiment operation.
///
///
/// Container for the necessary parameters to execute the StartExperiment operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartExperiment
/// operation.
/// REST API Reference for StartExperiment Operation
public virtual IAsyncResult BeginStartExperiment(StartExperimentRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartExperimentRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartExperimentResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the StartExperiment operation.
///
///
/// The IAsyncResult returned by the call to BeginStartExperiment.
///
/// Returns a StartExperimentResult from FIS.
/// REST API Reference for StartExperiment Operation
public virtual StartExperimentResponse EndStartExperiment(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region StopExperiment
///
/// Stops the specified experiment.
///
/// Container for the necessary parameters to execute the StopExperiment service method.
///
/// The response from the StopExperiment service method, as returned by FIS.
///
/// The specified resource cannot be found.
///
///
/// The specified input is not valid, or fails to satisfy the constraints for the request.
///
/// REST API Reference for StopExperiment Operation
public virtual StopExperimentResponse StopExperiment(StopExperimentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopExperimentRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopExperimentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the StopExperiment operation.
///
///
/// Container for the necessary parameters to execute the StopExperiment operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopExperiment
/// operation.
/// REST API Reference for StopExperiment Operation
public virtual IAsyncResult BeginStopExperiment(StopExperimentRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopExperimentRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopExperimentResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the StopExperiment operation.
///
///
/// The IAsyncResult returned by the call to BeginStopExperiment.
///
/// Returns a StopExperimentResult from FIS.
/// REST API Reference for StopExperiment Operation
public virtual StopExperimentResponse EndStopExperiment(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region TagResource
///
/// Applies the specified tags to the specified resource.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by FIS.
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the TagResource operation.
///
///
/// Container for the necessary parameters to execute the TagResource operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource
/// operation.
/// REST API Reference for TagResource Operation
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);
}
///
/// Finishes the asynchronous execution of the TagResource operation.
///
///
/// The IAsyncResult returned by the call to BeginTagResource.
///
/// Returns a TagResourceResult from FIS.
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UntagResource
///
/// Removes the specified tags from the specified resource.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by FIS.
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UntagResource operation.
///
///
/// Container for the necessary parameters to execute the UntagResource operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource
/// operation.
/// REST API Reference for UntagResource Operation
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);
}
///
/// Finishes the asynchronous execution of the UntagResource operation.
///
///
/// The IAsyncResult returned by the call to BeginUntagResource.
///
/// Returns a UntagResourceResult from FIS.
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateExperimentTemplate
///
/// Updates the specified experiment template.
///
/// Container for the necessary parameters to execute the UpdateExperimentTemplate service method.
///
/// The response from the UpdateExperimentTemplate service method, as returned by FIS.
///
/// The specified resource cannot be found.
///
///
/// You have exceeded your service quota.
///
///
/// The specified input is not valid, or fails to satisfy the constraints for the request.
///
/// REST API Reference for UpdateExperimentTemplate Operation
public virtual UpdateExperimentTemplateResponse UpdateExperimentTemplate(UpdateExperimentTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateExperimentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateExperimentTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateExperimentTemplate operation.
///
///
/// Container for the necessary parameters to execute the UpdateExperimentTemplate operation on AmazonFISClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateExperimentTemplate
/// operation.
/// REST API Reference for UpdateExperimentTemplate Operation
public virtual IAsyncResult BeginUpdateExperimentTemplate(UpdateExperimentTemplateRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateExperimentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateExperimentTemplateResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateExperimentTemplate operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateExperimentTemplate.
///
/// Returns a UpdateExperimentTemplateResult from FIS.
/// REST API Reference for UpdateExperimentTemplate Operation
public virtual UpdateExperimentTemplateResponse EndUpdateExperimentTemplate(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
}
}