/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the dlm-2018-01-12.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.DLM.Model;
using Amazon.DLM.Model.Internal.MarshallTransformations;
using Amazon.DLM.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.DLM
{
///
/// Implementation for accessing DLM
///
/// Amazon Data Lifecycle Manager
///
/// With Amazon Data Lifecycle Manager, you can manage the lifecycle of your Amazon Web
/// Services resources. You create lifecycle policies, which are used to automate operations
/// on the specified resources.
///
///
///
/// Amazon Data Lifecycle Manager supports Amazon EBS volumes and snapshots. For information
/// about using Amazon Data Lifecycle Manager with Amazon EBS, see
/// Amazon Data Lifecycle Manager in the Amazon EC2 User Guide.
///
///
public partial class AmazonDLMClient : AmazonServiceClient, IAmazonDLM
{
private static IServiceMetadata serviceMetadata = new AmazonDLMMetadata();
#region Constructors
///
/// Constructs AmazonDLMClient 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 AmazonDLMClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonDLMConfig()) { }
///
/// Constructs AmazonDLMClient 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 AmazonDLMClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonDLMConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonDLMClient 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 AmazonDLMClient Configuration Object
public AmazonDLMClient(AmazonDLMConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonDLMClient with AWS Credentials
///
/// AWS Credentials
public AmazonDLMClient(AWSCredentials credentials)
: this(credentials, new AmazonDLMConfig())
{
}
///
/// Constructs AmazonDLMClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonDLMClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonDLMConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonDLMClient with AWS Credentials and an
/// AmazonDLMClient Configuration object.
///
/// AWS Credentials
/// The AmazonDLMClient Configuration Object
public AmazonDLMClient(AWSCredentials credentials, AmazonDLMConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonDLMClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonDLMClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonDLMConfig())
{
}
///
/// Constructs AmazonDLMClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonDLMClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonDLMConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonDLMClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonDLMClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonDLMClient Configuration Object
public AmazonDLMClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonDLMConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonDLMClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonDLMClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonDLMConfig())
{
}
///
/// Constructs AmazonDLMClient 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 AmazonDLMClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonDLMConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonDLMClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonDLMClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonDLMClient Configuration Object
public AmazonDLMClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonDLMConfig 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 AmazonDLMEndpointResolver());
}
///
/// 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 CreateLifecyclePolicy
///
/// Creates a policy to manage the lifecycle of the specified Amazon Web Services resources.
/// You can create up to 100 lifecycle policies.
///
/// Container for the necessary parameters to execute the CreateLifecyclePolicy service method.
///
/// The response from the CreateLifecyclePolicy service method, as returned by DLM.
///
/// The service failed in an unexpected way.
///
///
/// Bad request. The request is missing required parameters or has invalid parameters.
///
///
/// The request failed because a limit was exceeded.
///
/// REST API Reference for CreateLifecyclePolicy Operation
public virtual CreateLifecyclePolicyResponse CreateLifecyclePolicy(CreateLifecyclePolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLifecyclePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLifecyclePolicyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateLifecyclePolicy operation.
///
///
/// Container for the necessary parameters to execute the CreateLifecyclePolicy operation on AmazonDLMClient.
/// 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 EndCreateLifecyclePolicy
/// operation.
/// REST API Reference for CreateLifecyclePolicy Operation
public virtual IAsyncResult BeginCreateLifecyclePolicy(CreateLifecyclePolicyRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLifecyclePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLifecyclePolicyResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateLifecyclePolicy operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateLifecyclePolicy.
///
/// Returns a CreateLifecyclePolicyResult from DLM.
/// REST API Reference for CreateLifecyclePolicy Operation
public virtual CreateLifecyclePolicyResponse EndCreateLifecyclePolicy(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteLifecyclePolicy
///
/// Deletes the specified lifecycle policy and halts the automated operations that the
/// policy specified.
///
///
///
/// For more information about deleting a policy, see Delete
/// lifecycle policies.
///
///
/// Container for the necessary parameters to execute the DeleteLifecyclePolicy service method.
///
/// The response from the DeleteLifecyclePolicy service method, as returned by DLM.
///
/// The service failed in an unexpected way.
///
///
/// The request failed because a limit was exceeded.
///
///
/// A requested resource was not found.
///
/// REST API Reference for DeleteLifecyclePolicy Operation
public virtual DeleteLifecyclePolicyResponse DeleteLifecyclePolicy(DeleteLifecyclePolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLifecyclePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLifecyclePolicyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteLifecyclePolicy operation.
///
///
/// Container for the necessary parameters to execute the DeleteLifecyclePolicy operation on AmazonDLMClient.
/// 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 EndDeleteLifecyclePolicy
/// operation.
/// REST API Reference for DeleteLifecyclePolicy Operation
public virtual IAsyncResult BeginDeleteLifecyclePolicy(DeleteLifecyclePolicyRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLifecyclePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLifecyclePolicyResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteLifecyclePolicy operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteLifecyclePolicy.
///
/// Returns a DeleteLifecyclePolicyResult from DLM.
/// REST API Reference for DeleteLifecyclePolicy Operation
public virtual DeleteLifecyclePolicyResponse EndDeleteLifecyclePolicy(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetLifecyclePolicies
///
/// Gets summary information about all or the specified data lifecycle policies.
///
///
///
/// To get complete information about a policy, use GetLifecyclePolicy.
///
///
/// Container for the necessary parameters to execute the GetLifecyclePolicies service method.
///
/// The response from the GetLifecyclePolicies service method, as returned by DLM.
///
/// The service failed in an unexpected way.
///
///
/// Bad request. The request is missing required parameters or has invalid parameters.
///
///
/// The request failed because a limit was exceeded.
///
///
/// A requested resource was not found.
///
/// REST API Reference for GetLifecyclePolicies Operation
public virtual GetLifecyclePoliciesResponse GetLifecyclePolicies(GetLifecyclePoliciesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetLifecyclePoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetLifecyclePoliciesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetLifecyclePolicies operation.
///
///
/// Container for the necessary parameters to execute the GetLifecyclePolicies operation on AmazonDLMClient.
/// 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 EndGetLifecyclePolicies
/// operation.
/// REST API Reference for GetLifecyclePolicies Operation
public virtual IAsyncResult BeginGetLifecyclePolicies(GetLifecyclePoliciesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetLifecyclePoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetLifecyclePoliciesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetLifecyclePolicies operation.
///
///
/// The IAsyncResult returned by the call to BeginGetLifecyclePolicies.
///
/// Returns a GetLifecyclePoliciesResult from DLM.
/// REST API Reference for GetLifecyclePolicies Operation
public virtual GetLifecyclePoliciesResponse EndGetLifecyclePolicies(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetLifecyclePolicy
///
/// Gets detailed information about the specified lifecycle policy.
///
/// Container for the necessary parameters to execute the GetLifecyclePolicy service method.
///
/// The response from the GetLifecyclePolicy service method, as returned by DLM.
///
/// The service failed in an unexpected way.
///
///
/// The request failed because a limit was exceeded.
///
///
/// A requested resource was not found.
///
/// REST API Reference for GetLifecyclePolicy Operation
public virtual GetLifecyclePolicyResponse GetLifecyclePolicy(GetLifecyclePolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetLifecyclePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetLifecyclePolicyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetLifecyclePolicy operation.
///
///
/// Container for the necessary parameters to execute the GetLifecyclePolicy operation on AmazonDLMClient.
/// 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 EndGetLifecyclePolicy
/// operation.
/// REST API Reference for GetLifecyclePolicy Operation
public virtual IAsyncResult BeginGetLifecyclePolicy(GetLifecyclePolicyRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetLifecyclePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetLifecyclePolicyResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetLifecyclePolicy operation.
///
///
/// The IAsyncResult returned by the call to BeginGetLifecyclePolicy.
///
/// Returns a GetLifecyclePolicyResult from DLM.
/// REST API Reference for GetLifecyclePolicy Operation
public virtual GetLifecyclePolicyResponse EndGetLifecyclePolicy(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 DLM.
///
/// The service failed in an unexpected way.
///
///
/// Bad request. The request is missing required parameters or has invalid parameters.
///
///
/// A requested resource was not found.
///
/// 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 AmazonDLMClient.
/// 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 DLM.
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region TagResource
///
/// Adds 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 DLM.
///
/// The service failed in an unexpected way.
///
///
/// Bad request. The request is missing required parameters or has invalid parameters.
///
///
/// A requested resource was not found.
///
/// 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 AmazonDLMClient.
/// 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 DLM.
/// 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 DLM.
///
/// The service failed in an unexpected way.
///
///
/// Bad request. The request is missing required parameters or has invalid parameters.
///
///
/// A requested resource was not found.
///
/// 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 AmazonDLMClient.
/// 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 DLM.
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateLifecyclePolicy
///
/// Updates the specified lifecycle policy.
///
///
///
/// For more information about updating a policy, see Modify
/// lifecycle policies.
///
///
/// Container for the necessary parameters to execute the UpdateLifecyclePolicy service method.
///
/// The response from the UpdateLifecyclePolicy service method, as returned by DLM.
///
/// The service failed in an unexpected way.
///
///
/// Bad request. The request is missing required parameters or has invalid parameters.
///
///
/// The request failed because a limit was exceeded.
///
///
/// A requested resource was not found.
///
/// REST API Reference for UpdateLifecyclePolicy Operation
public virtual UpdateLifecyclePolicyResponse UpdateLifecyclePolicy(UpdateLifecyclePolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateLifecyclePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateLifecyclePolicyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateLifecyclePolicy operation.
///
///
/// Container for the necessary parameters to execute the UpdateLifecyclePolicy operation on AmazonDLMClient.
/// 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 EndUpdateLifecyclePolicy
/// operation.
/// REST API Reference for UpdateLifecyclePolicy Operation
public virtual IAsyncResult BeginUpdateLifecyclePolicy(UpdateLifecyclePolicyRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateLifecyclePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateLifecyclePolicyResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateLifecyclePolicy operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateLifecyclePolicy.
///
/// Returns a UpdateLifecyclePolicyResult from DLM.
/// REST API Reference for UpdateLifecyclePolicy Operation
public virtual UpdateLifecyclePolicyResponse EndUpdateLifecyclePolicy(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
}
}