/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
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();
private IFISPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IFISPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new FISPaginatorFactory(this);
}
return this._paginators;
}
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task CreateExperimentTemplateAsync(CreateExperimentTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateExperimentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateExperimentTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Deletes the specified experiment template.
///
/// Container for the necessary parameters to execute the DeleteExperimentTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteExperimentTemplateAsync(DeleteExperimentTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteExperimentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteExperimentTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Gets information about the specified FIS action.
///
/// Container for the necessary parameters to execute the GetAction service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetActionAsync(GetActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetActionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetActionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Gets information about the specified experiment.
///
/// Container for the necessary parameters to execute the GetExperiment service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetExperimentAsync(GetExperimentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetExperimentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetExperimentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Gets information about the specified experiment template.
///
/// Container for the necessary parameters to execute the GetExperimentTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetExperimentTemplateAsync(GetExperimentTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetExperimentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetExperimentTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Gets information about the specified resource type.
///
/// Container for the necessary parameters to execute the GetTargetResourceType service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetTargetResourceTypeAsync(GetTargetResourceTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetTargetResourceTypeRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetTargetResourceTypeResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Lists the available FIS actions.
///
/// Container for the necessary parameters to execute the ListActions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListActionsAsync(ListActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListActionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListActionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Lists your experiments.
///
/// Container for the necessary parameters to execute the ListExperiments service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListExperimentsAsync(ListExperimentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListExperimentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListExperimentsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Lists your experiment templates.
///
/// Container for the necessary parameters to execute the ListExperimentTemplates service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListExperimentTemplatesAsync(ListExperimentTemplatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListExperimentTemplatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListExperimentTemplatesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Lists the tags for the specified resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForResource service method, as returned by FIS.
/// REST API Reference for ListTagsForResource Operation
public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Lists the target resource types.
///
/// Container for the necessary parameters to execute the ListTargetResourceTypes service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListTargetResourceTypesAsync(ListTargetResourceTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTargetResourceTypesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTargetResourceTypesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Starts running an experiment from the specified experiment template.
///
/// Container for the necessary parameters to execute the StartExperiment service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task StartExperimentAsync(StartExperimentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartExperimentRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartExperimentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Stops the specified experiment.
///
/// Container for the necessary parameters to execute the StopExperiment service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task StopExperimentAsync(StopExperimentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopExperimentRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopExperimentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Applies the specified tags to the specified resource.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagResource service method, as returned by FIS.
/// REST API Reference for TagResource Operation
public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Removes the specified tags from the specified resource.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagResource service method, as returned by FIS.
/// REST API Reference for UntagResource Operation
public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Updates the specified experiment template.
///
/// Container for the necessary parameters to execute the UpdateExperimentTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task UpdateExperimentTemplateAsync(UpdateExperimentTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateExperimentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateExperimentTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}