/*
* 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 lightsail-2016-11-28.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.Lightsail.Model;
using Amazon.Lightsail.Model.Internal.MarshallTransformations;
using Amazon.Lightsail.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.Lightsail
{
///
/// Implementation for accessing Lightsail
///
/// Amazon Lightsail is the easiest way to get started with Amazon Web Services (Amazon
/// Web Services) for developers who need to build websites or web applications. It includes
/// everything you need to launch your project quickly - instances (virtual private servers),
/// container services, storage buckets, managed databases, SSD-based block storage, static
/// IP addresses, load balancers, content delivery network (CDN) distributions, DNS management
/// of registered domains, and resource snapshots (backups) - for a low, predictable monthly
/// price.
///
///
///
/// You can manage your Lightsail resources using the Lightsail console, Lightsail API,
/// Command Line Interface (CLI), or SDKs. For more information about Lightsail concepts
/// and tasks, see the Amazon
/// Lightsail Developer Guide.
///
///
///
/// This API Reference provides detailed information about the actions, data types, parameters,
/// and errors of the Lightsail service. For more information about the supported Amazon
/// Web Services Regions, endpoints, and service quotas of the Lightsail service, see
/// Amazon Lightsail
/// Endpoints and Quotas in the Amazon Web Services General Reference.
///
///
public partial class AmazonLightsailClient : AmazonServiceClient, IAmazonLightsail
{
private static IServiceMetadata serviceMetadata = new AmazonLightsailMetadata();
#region Constructors
///
/// Constructs AmazonLightsailClient 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 AmazonLightsailClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonLightsailConfig()) { }
///
/// Constructs AmazonLightsailClient 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 AmazonLightsailClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonLightsailConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonLightsailClient 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 AmazonLightsailClient Configuration Object
public AmazonLightsailClient(AmazonLightsailConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonLightsailClient with AWS Credentials
///
/// AWS Credentials
public AmazonLightsailClient(AWSCredentials credentials)
: this(credentials, new AmazonLightsailConfig())
{
}
///
/// Constructs AmazonLightsailClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonLightsailClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonLightsailConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonLightsailClient with AWS Credentials and an
/// AmazonLightsailClient Configuration object.
///
/// AWS Credentials
/// The AmazonLightsailClient Configuration Object
public AmazonLightsailClient(AWSCredentials credentials, AmazonLightsailConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonLightsailClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonLightsailClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonLightsailConfig())
{
}
///
/// Constructs AmazonLightsailClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonLightsailClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonLightsailConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonLightsailClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonLightsailClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonLightsailClient Configuration Object
public AmazonLightsailClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonLightsailConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonLightsailClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonLightsailClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonLightsailConfig())
{
}
///
/// Constructs AmazonLightsailClient 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 AmazonLightsailClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonLightsailConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonLightsailClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonLightsailClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonLightsailClient Configuration Object
public AmazonLightsailClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonLightsailConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customizes the runtime pipeline.
///
/// Runtime pipeline for the current client.
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonLightsailEndpointResolver());
}
///
/// 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 AllocateStaticIp
internal virtual AllocateStaticIpResponse AllocateStaticIp(AllocateStaticIpRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AllocateStaticIpRequestMarshaller.Instance;
options.ResponseUnmarshaller = AllocateStaticIpResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Allocates a static IP address.
///
/// Container for the necessary parameters to execute the AllocateStaticIp service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AllocateStaticIp service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for AllocateStaticIp Operation
public virtual Task AllocateStaticIpAsync(AllocateStaticIpRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AllocateStaticIpRequestMarshaller.Instance;
options.ResponseUnmarshaller = AllocateStaticIpResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region AttachCertificateToDistribution
internal virtual AttachCertificateToDistributionResponse AttachCertificateToDistribution(AttachCertificateToDistributionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AttachCertificateToDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = AttachCertificateToDistributionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Attaches an SSL/TLS certificate to your Amazon Lightsail content delivery network
/// (CDN) distribution.
///
///
///
/// After the certificate is attached, your distribution accepts HTTPS traffic for all
/// of the domains that are associated with the certificate.
///
///
///
/// Use the CreateCertificate
action to create a certificate that you can
/// attach to your distribution.
///
///
///
/// Only certificates created in the us-east-1
Amazon Web Services Region
/// can be attached to Lightsail distributions. Lightsail distributions are global resources
/// that can reference an origin in any Amazon Web Services Region, and distribute its
/// content globally. However, all distributions are located in the us-east-1
/// Region.
///
///
///
/// Container for the necessary parameters to execute the AttachCertificateToDistribution service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AttachCertificateToDistribution service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for AttachCertificateToDistribution Operation
public virtual Task AttachCertificateToDistributionAsync(AttachCertificateToDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AttachCertificateToDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = AttachCertificateToDistributionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region AttachDisk
internal virtual AttachDiskResponse AttachDisk(AttachDiskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AttachDiskRequestMarshaller.Instance;
options.ResponseUnmarshaller = AttachDiskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Attaches a block storage disk to a running or stopped Lightsail instance and exposes
/// it to the instance with the specified disk name.
///
///
///
/// The attach disk
operation supports tag-based access control via resource
/// tags applied to the resource identified by disk name
. For more information,
/// see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the AttachDisk service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AttachDisk service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for AttachDisk Operation
public virtual Task AttachDiskAsync(AttachDiskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AttachDiskRequestMarshaller.Instance;
options.ResponseUnmarshaller = AttachDiskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region AttachInstancesToLoadBalancer
internal virtual AttachInstancesToLoadBalancerResponse AttachInstancesToLoadBalancer(AttachInstancesToLoadBalancerRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AttachInstancesToLoadBalancerRequestMarshaller.Instance;
options.ResponseUnmarshaller = AttachInstancesToLoadBalancerResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Attaches one or more Lightsail instances to a load balancer.
///
///
///
/// After some time, the instances are attached to the load balancer and the health check
/// status is available.
///
///
///
/// The attach instances to load balancer
operation supports tag-based access
/// control via resource tags applied to the resource identified by load balancer
/// name
. For more information, see the Lightsail
/// Developer Guide.
///
///
/// Container for the necessary parameters to execute the AttachInstancesToLoadBalancer service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AttachInstancesToLoadBalancer service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for AttachInstancesToLoadBalancer Operation
public virtual Task AttachInstancesToLoadBalancerAsync(AttachInstancesToLoadBalancerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AttachInstancesToLoadBalancerRequestMarshaller.Instance;
options.ResponseUnmarshaller = AttachInstancesToLoadBalancerResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region AttachLoadBalancerTlsCertificate
internal virtual AttachLoadBalancerTlsCertificateResponse AttachLoadBalancerTlsCertificate(AttachLoadBalancerTlsCertificateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AttachLoadBalancerTlsCertificateRequestMarshaller.Instance;
options.ResponseUnmarshaller = AttachLoadBalancerTlsCertificateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Attaches a Transport Layer Security (TLS) certificate to your load balancer. TLS is
/// just an updated, more secure version of Secure Socket Layer (SSL).
///
///
///
/// Once you create and validate your certificate, you can attach it to your load balancer.
/// You can also use this API to rotate the certificates on your account. Use the AttachLoadBalancerTlsCertificate
/// action with the non-attached certificate, and it will replace the existing one and
/// become the attached certificate.
///
///
///
/// The AttachLoadBalancerTlsCertificate
operation supports tag-based access
/// control via resource tags applied to the resource identified by load balancer
/// name
. For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the AttachLoadBalancerTlsCertificate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AttachLoadBalancerTlsCertificate service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for AttachLoadBalancerTlsCertificate Operation
public virtual Task AttachLoadBalancerTlsCertificateAsync(AttachLoadBalancerTlsCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AttachLoadBalancerTlsCertificateRequestMarshaller.Instance;
options.ResponseUnmarshaller = AttachLoadBalancerTlsCertificateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region AttachStaticIp
internal virtual AttachStaticIpResponse AttachStaticIp(AttachStaticIpRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AttachStaticIpRequestMarshaller.Instance;
options.ResponseUnmarshaller = AttachStaticIpResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Attaches a static IP address to a specific Amazon Lightsail instance.
///
/// Container for the necessary parameters to execute the AttachStaticIp service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AttachStaticIp service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for AttachStaticIp Operation
public virtual Task AttachStaticIpAsync(AttachStaticIpRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AttachStaticIpRequestMarshaller.Instance;
options.ResponseUnmarshaller = AttachStaticIpResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CloseInstancePublicPorts
internal virtual CloseInstancePublicPortsResponse CloseInstancePublicPorts(CloseInstancePublicPortsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CloseInstancePublicPortsRequestMarshaller.Instance;
options.ResponseUnmarshaller = CloseInstancePublicPortsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Closes ports for a specific Amazon Lightsail instance.
///
///
///
/// The CloseInstancePublicPorts
action supports tag-based access control
/// via resource tags applied to the resource identified by instanceName
.
/// For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CloseInstancePublicPorts service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CloseInstancePublicPorts service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CloseInstancePublicPorts Operation
public virtual Task CloseInstancePublicPortsAsync(CloseInstancePublicPortsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CloseInstancePublicPortsRequestMarshaller.Instance;
options.ResponseUnmarshaller = CloseInstancePublicPortsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CopySnapshot
internal virtual CopySnapshotResponse CopySnapshot(CopySnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CopySnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CopySnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Copies a manual snapshot of an instance or disk as another manual snapshot, or copies
/// an automatic snapshot of an instance or disk as a manual snapshot. This operation
/// can also be used to copy a manual or automatic snapshot of an instance or a disk from
/// one Amazon Web Services Region to another in Amazon Lightsail.
///
///
///
/// When copying a manual snapshot, be sure to define the source region
,
/// source snapshot name
, and target snapshot name
parameters.
///
///
///
/// When copying an automatic snapshot, be sure to define the source region
,
/// source resource name
, target snapshot name
, and either the
/// restore date
or the use latest restorable auto snapshot
/// parameters.
///
///
/// Container for the necessary parameters to execute the CopySnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CopySnapshot service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CopySnapshot Operation
public virtual Task CopySnapshotAsync(CopySnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CopySnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CopySnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateBucket
internal virtual CreateBucketResponse CreateBucket(CreateBucketRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateBucketRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateBucketResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an Amazon Lightsail bucket.
///
///
///
/// A bucket is a cloud storage resource available in the Lightsail object storage service.
/// Use buckets to store objects such as data and its descriptive metadata. For more information
/// about buckets, see Buckets
/// in Amazon Lightsail in the Amazon Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateBucket service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateBucket service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateBucket Operation
public virtual Task CreateBucketAsync(CreateBucketRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateBucketRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateBucketResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateBucketAccessKey
internal virtual CreateBucketAccessKeyResponse CreateBucketAccessKey(CreateBucketAccessKeyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateBucketAccessKeyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateBucketAccessKeyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new access key for the specified Amazon Lightsail bucket. Access keys consist
/// of an access key ID and corresponding secret access key.
///
///
///
/// Access keys grant full programmatic access to the specified bucket and its objects.
/// You can have a maximum of two access keys per bucket. Use the GetBucketAccessKeys
/// action to get a list of current access keys for a specific bucket. For more information
/// about access keys, see Creating
/// access keys for a bucket in Amazon Lightsail in the Amazon Lightsail Developer
/// Guide.
///
///
///
/// The secretAccessKey
value is returned only in response to the CreateBucketAccessKey
/// action. You can get a secret access key only when you first create an access key;
/// you cannot get the secret access key later. If you lose the secret access key, you
/// must create a new access key.
///
///
///
/// Container for the necessary parameters to execute the CreateBucketAccessKey service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateBucketAccessKey service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateBucketAccessKey Operation
public virtual Task CreateBucketAccessKeyAsync(CreateBucketAccessKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateBucketAccessKeyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateBucketAccessKeyResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateCertificate
internal virtual CreateCertificateResponse CreateCertificate(CreateCertificateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCertificateRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCertificateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an SSL/TLS certificate for an Amazon Lightsail content delivery network (CDN)
/// distribution and a container service.
///
///
///
/// After the certificate is valid, use the AttachCertificateToDistribution
/// action to use the certificate and its domains with your distribution. Or use the UpdateContainerService
/// action to use the certificate and its domains with your container service.
///
///
///
/// Only certificates created in the us-east-1
Amazon Web Services Region
/// can be attached to Lightsail distributions. Lightsail distributions are global resources
/// that can reference an origin in any Amazon Web Services Region, and distribute its
/// content globally. However, all distributions are located in the us-east-1
/// Region.
///
///
///
/// Container for the necessary parameters to execute the CreateCertificate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateCertificate service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateCertificate Operation
public virtual Task CreateCertificateAsync(CreateCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCertificateRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCertificateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateCloudFormationStack
internal virtual CreateCloudFormationStackResponse CreateCloudFormationStack(CreateCloudFormationStackRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCloudFormationStackRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCloudFormationStackResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an AWS CloudFormation stack, which creates a new Amazon EC2 instance from
/// an exported Amazon Lightsail snapshot. This operation results in a CloudFormation
/// stack record that can be used to track the AWS CloudFormation stack created. Use the
/// get cloud formation stack records
operation to get a list of the CloudFormation
/// stacks created.
///
///
///
/// Wait until after your new Amazon EC2 instance is created before running the create
/// cloud formation stack
operation again with the same export snapshot record.
///
///
///
/// Container for the necessary parameters to execute the CreateCloudFormationStack service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateCloudFormationStack service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateCloudFormationStack Operation
public virtual Task CreateCloudFormationStackAsync(CreateCloudFormationStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCloudFormationStackRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCloudFormationStackResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateContactMethod
internal virtual CreateContactMethodResponse CreateContactMethod(CreateContactMethodRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateContactMethodRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateContactMethodResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an email or SMS text message contact method.
///
///
///
/// A contact method is used to send you notifications about your Amazon Lightsail resources.
/// You can add one email address and one mobile phone number contact method in each Amazon
/// Web Services Region. However, SMS text messaging is not supported in some Amazon Web
/// Services Regions, and SMS text messages cannot be sent to some countries/regions.
/// For more information, see Notifications
/// in Amazon Lightsail.
///
///
/// Container for the necessary parameters to execute the CreateContactMethod service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateContactMethod service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateContactMethod Operation
public virtual Task CreateContactMethodAsync(CreateContactMethodRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateContactMethodRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateContactMethodResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateContainerService
internal virtual CreateContainerServiceResponse CreateContainerService(CreateContainerServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateContainerServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateContainerServiceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an Amazon Lightsail container service.
///
///
///
/// A Lightsail container service is a compute resource to which you can deploy containers.
/// For more information, see Container
/// services in Amazon Lightsail in the Lightsail Dev Guide.
///
///
/// Container for the necessary parameters to execute the CreateContainerService service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateContainerService service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateContainerService Operation
public virtual Task CreateContainerServiceAsync(CreateContainerServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateContainerServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateContainerServiceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateContainerServiceDeployment
internal virtual CreateContainerServiceDeploymentResponse CreateContainerServiceDeployment(CreateContainerServiceDeploymentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateContainerServiceDeploymentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateContainerServiceDeploymentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a deployment for your Amazon Lightsail container service.
///
///
///
/// A deployment specifies the containers that will be launched on the container service
/// and their settings, such as the ports to open, the environment variables to apply,
/// and the launch command to run. It also specifies the container that will serve as
/// the public endpoint of the deployment and its settings, such as the HTTP or HTTPS
/// port to use, and the health check configuration.
///
///
///
/// You can deploy containers to your container service using container images from a
/// public registry such as Amazon ECR Public, or from your local machine. For more information,
/// see Creating
/// container images for your Amazon Lightsail container services in the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateContainerServiceDeployment service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateContainerServiceDeployment service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateContainerServiceDeployment Operation
public virtual Task CreateContainerServiceDeploymentAsync(CreateContainerServiceDeploymentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateContainerServiceDeploymentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateContainerServiceDeploymentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateContainerServiceRegistryLogin
internal virtual CreateContainerServiceRegistryLoginResponse CreateContainerServiceRegistryLogin(CreateContainerServiceRegistryLoginRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateContainerServiceRegistryLoginRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateContainerServiceRegistryLoginResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a temporary set of log in credentials that you can use to log in to the Docker
/// process on your local machine. After you're logged in, you can use the native Docker
/// commands to push your local container images to the container image registry of your
/// Amazon Lightsail account so that you can use them with your Lightsail container service.
/// The log in credentials expire 12 hours after they are created, at which point you
/// will need to create a new set of log in credentials.
///
///
///
/// You can only push container images to the container service registry of your Lightsail
/// account. You cannot pull container images or perform any other container image management
/// actions on the container service registry.
///
///
///
/// After you push your container images to the container image registry of your Lightsail
/// account, use the RegisterContainerImage
action to register the pushed
/// images to a specific Lightsail container service.
///
///
///
/// This action is not required if you install and use the Lightsail Control (lightsailctl)
/// plugin to push container images to your Lightsail container service. For more information,
/// see Pushing
/// and managing container images on your Amazon Lightsail container services in the
/// Amazon Lightsail Developer Guide.
///
///
///
/// Container for the necessary parameters to execute the CreateContainerServiceRegistryLogin service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateContainerServiceRegistryLogin service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateContainerServiceRegistryLogin Operation
public virtual Task CreateContainerServiceRegistryLoginAsync(CreateContainerServiceRegistryLoginRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateContainerServiceRegistryLoginRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateContainerServiceRegistryLoginResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateDisk
internal virtual CreateDiskResponse CreateDisk(CreateDiskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDiskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDiskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a block storage disk that can be attached to an Amazon Lightsail instance
/// in the same Availability Zone (e.g., us-east-2a
).
///
///
///
/// The create disk
operation supports tag-based access control via request
/// tags. For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateDisk service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateDisk service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateDisk Operation
public virtual Task CreateDiskAsync(CreateDiskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDiskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDiskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateDiskFromSnapshot
internal virtual CreateDiskFromSnapshotResponse CreateDiskFromSnapshot(CreateDiskFromSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDiskFromSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDiskFromSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a block storage disk from a manual or automatic snapshot of a disk. The resulting
/// disk can be attached to an Amazon Lightsail instance in the same Availability Zone
/// (e.g., us-east-2a
).
///
///
///
/// The create disk from snapshot
operation supports tag-based access control
/// via request tags and resource tags applied to the resource identified by disk
/// snapshot name
. For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateDiskFromSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateDiskFromSnapshot service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateDiskFromSnapshot Operation
public virtual Task CreateDiskFromSnapshotAsync(CreateDiskFromSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDiskFromSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDiskFromSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateDiskSnapshot
internal virtual CreateDiskSnapshotResponse CreateDiskSnapshot(CreateDiskSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDiskSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDiskSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a snapshot of a block storage disk. You can use snapshots for backups, to
/// make copies of disks, and to save data before shutting down a Lightsail instance.
///
///
///
/// You can take a snapshot of an attached disk that is in use; however, snapshots only
/// capture data that has been written to your disk at the time the snapshot command is
/// issued. This may exclude any data that has been cached by any applications or the
/// operating system. If you can pause any file systems on the disk long enough to take
/// a snapshot, your snapshot should be complete. Nevertheless, if you cannot pause all
/// file writes to the disk, you should unmount the disk from within the Lightsail instance,
/// issue the create disk snapshot command, and then remount the disk to ensure a consistent
/// and complete snapshot. You may remount and use your disk while the snapshot status
/// is pending.
///
///
///
/// You can also use this operation to create a snapshot of an instance's system volume.
/// You might want to do this, for example, to recover data from the system volume of
/// a botched instance or to create a backup of the system volume like you would for a
/// block storage disk. To create a snapshot of a system volume, just define the instance
/// name
parameter when issuing the snapshot command, and a snapshot of the defined
/// instance's system volume will be created. After the snapshot is available, you can
/// create a block storage disk from the snapshot and attach it to a running instance
/// to access the data on the disk.
///
///
///
/// The create disk snapshot
operation supports tag-based access control
/// via request tags. For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateDiskSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateDiskSnapshot service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateDiskSnapshot Operation
public virtual Task CreateDiskSnapshotAsync(CreateDiskSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDiskSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDiskSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateDistribution
internal virtual CreateDistributionResponse CreateDistribution(CreateDistributionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDistributionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an Amazon Lightsail content delivery network (CDN) distribution.
///
///
///
/// A distribution is a globally distributed network of caching servers that improve the
/// performance of your website or web application hosted on a Lightsail instance. For
/// more information, see Content
/// delivery networks in Amazon Lightsail.
///
///
/// Container for the necessary parameters to execute the CreateDistribution service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateDistribution service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateDistribution Operation
public virtual Task CreateDistributionAsync(CreateDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDistributionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateDomain
internal virtual CreateDomainResponse CreateDomain(CreateDomainRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDomainResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a domain resource for the specified domain (e.g., example.com).
///
///
///
/// The create domain
operation supports tag-based access control via request
/// tags. For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateDomain service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateDomain service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateDomain Operation
public virtual Task CreateDomainAsync(CreateDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDomainResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateDomainEntry
internal virtual CreateDomainEntryResponse CreateDomainEntry(CreateDomainEntryRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDomainEntryRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDomainEntryResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates one of the following domain name system (DNS) records in a domain DNS zone:
/// Address (A), canonical name (CNAME), mail exchanger (MX), name server (NS), start
/// of authority (SOA), service locator (SRV), or text (TXT).
///
///
///
/// The create domain entry
operation supports tag-based access control via
/// resource tags applied to the resource identified by domain name
. For
/// more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateDomainEntry service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateDomainEntry service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateDomainEntry Operation
public virtual Task CreateDomainEntryAsync(CreateDomainEntryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDomainEntryRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDomainEntryResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateGUISessionAccessDetails
internal virtual CreateGUISessionAccessDetailsResponse CreateGUISessionAccessDetails(CreateGUISessionAccessDetailsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateGUISessionAccessDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateGUISessionAccessDetailsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates two URLs that are used to access a virtual computer’s graphical user interface
/// (GUI) session. The primary URL initiates a web-based NICE DCV session to the virtual
/// computer's application. The secondary URL initiates a web-based NICE DCV session to
/// the virtual computer's operating session.
///
///
///
/// Use StartGUISession
to open the session.
///
///
/// Container for the necessary parameters to execute the CreateGUISessionAccessDetails service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateGUISessionAccessDetails service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateGUISessionAccessDetails Operation
public virtual Task CreateGUISessionAccessDetailsAsync(CreateGUISessionAccessDetailsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateGUISessionAccessDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateGUISessionAccessDetailsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateInstances
internal virtual CreateInstancesResponse CreateInstances(CreateInstancesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateInstancesRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateInstancesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates one or more Amazon Lightsail instances.
///
///
///
/// The create instances
operation supports tag-based access control via
/// request tags. For more information, see the Lightsail
/// Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateInstances service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateInstances service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateInstances Operation
public virtual Task CreateInstancesAsync(CreateInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateInstancesRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateInstancesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateInstancesFromSnapshot
internal virtual CreateInstancesFromSnapshotResponse CreateInstancesFromSnapshot(CreateInstancesFromSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateInstancesFromSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateInstancesFromSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates one or more new instances from a manual or automatic snapshot of an instance.
///
///
///
/// The create instances from snapshot
operation supports tag-based access
/// control via request tags and resource tags applied to the resource identified by instance
/// snapshot name
. For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateInstancesFromSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateInstancesFromSnapshot service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateInstancesFromSnapshot Operation
public virtual Task CreateInstancesFromSnapshotAsync(CreateInstancesFromSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateInstancesFromSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateInstancesFromSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateInstanceSnapshot
internal virtual CreateInstanceSnapshotResponse CreateInstanceSnapshot(CreateInstanceSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateInstanceSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateInstanceSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a snapshot of a specific virtual private server, or instance. You can
/// use a snapshot to create a new instance that is based on that snapshot.
///
///
///
/// The create instance snapshot
operation supports tag-based access control
/// via request tags. For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateInstanceSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateInstanceSnapshot service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateInstanceSnapshot Operation
public virtual Task CreateInstanceSnapshotAsync(CreateInstanceSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateInstanceSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateInstanceSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateKeyPair
internal virtual CreateKeyPairResponse CreateKeyPair(CreateKeyPairRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateKeyPairRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateKeyPairResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a custom SSH key pair that you can use with an Amazon Lightsail instance.
///
///
///
/// Use the DownloadDefaultKeyPair
/// action to create a Lightsail default key pair in an Amazon Web Services Region where
/// a default key pair does not currently exist.
///
///
///
/// The create key pair
operation supports tag-based access control via request
/// tags. For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateKeyPair service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateKeyPair service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateKeyPair Operation
public virtual Task CreateKeyPairAsync(CreateKeyPairRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateKeyPairRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateKeyPairResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateLoadBalancer
internal virtual CreateLoadBalancerResponse CreateLoadBalancer(CreateLoadBalancerRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLoadBalancerRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLoadBalancerResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a Lightsail load balancer. To learn more about deciding whether to load balance
/// your application, see Configure
/// your Lightsail instances for load balancing. You can create up to 5 load balancers
/// per AWS Region in your account.
///
///
///
/// When you create a load balancer, you can specify a unique name and port settings.
/// To change additional load balancer settings, use the UpdateLoadBalancerAttribute
/// operation.
///
///
///
/// The create load balancer
operation supports tag-based access control
/// via request tags. For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateLoadBalancer service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateLoadBalancer service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateLoadBalancer Operation
public virtual Task CreateLoadBalancerAsync(CreateLoadBalancerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLoadBalancerRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLoadBalancerResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateLoadBalancerTlsCertificate
internal virtual CreateLoadBalancerTlsCertificateResponse CreateLoadBalancerTlsCertificate(CreateLoadBalancerTlsCertificateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLoadBalancerTlsCertificateRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLoadBalancerTlsCertificateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an SSL/TLS certificate for an Amazon Lightsail load balancer.
///
///
///
/// TLS is just an updated, more secure version of Secure Socket Layer (SSL).
///
///
///
/// The CreateLoadBalancerTlsCertificate
operation supports tag-based access
/// control via resource tags applied to the resource identified by load balancer
/// name
. For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateLoadBalancerTlsCertificate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateLoadBalancerTlsCertificate service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateLoadBalancerTlsCertificate Operation
public virtual Task CreateLoadBalancerTlsCertificateAsync(CreateLoadBalancerTlsCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLoadBalancerTlsCertificateRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLoadBalancerTlsCertificateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateRelationalDatabase
internal virtual CreateRelationalDatabaseResponse CreateRelationalDatabase(CreateRelationalDatabaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateRelationalDatabaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateRelationalDatabaseResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new database in Amazon Lightsail.
///
///
///
/// The create relational database
operation supports tag-based access control
/// via request tags. For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateRelationalDatabase service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateRelationalDatabase service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateRelationalDatabase Operation
public virtual Task CreateRelationalDatabaseAsync(CreateRelationalDatabaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateRelationalDatabaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateRelationalDatabaseResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateRelationalDatabaseFromSnapshot
internal virtual CreateRelationalDatabaseFromSnapshotResponse CreateRelationalDatabaseFromSnapshot(CreateRelationalDatabaseFromSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateRelationalDatabaseFromSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateRelationalDatabaseFromSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new database from an existing database snapshot in Amazon Lightsail.
///
///
///
/// You can create a new database from a snapshot in if something goes wrong with your
/// original database, or to change it to a different plan, such as a high availability
/// or standard plan.
///
///
///
/// The create relational database from snapshot
operation supports tag-based
/// access control via request tags and resource tags applied to the resource identified
/// by relationalDatabaseSnapshotName. For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateRelationalDatabaseFromSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateRelationalDatabaseFromSnapshot service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateRelationalDatabaseFromSnapshot Operation
public virtual Task CreateRelationalDatabaseFromSnapshotAsync(CreateRelationalDatabaseFromSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateRelationalDatabaseFromSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateRelationalDatabaseFromSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateRelationalDatabaseSnapshot
internal virtual CreateRelationalDatabaseSnapshotResponse CreateRelationalDatabaseSnapshot(CreateRelationalDatabaseSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateRelationalDatabaseSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateRelationalDatabaseSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a snapshot of your database in Amazon Lightsail. You can use snapshots for
/// backups, to make copies of a database, and to save data before deleting a database.
///
///
///
/// The create relational database snapshot
operation supports tag-based
/// access control via request tags. For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the CreateRelationalDatabaseSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateRelationalDatabaseSnapshot service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for CreateRelationalDatabaseSnapshot Operation
public virtual Task CreateRelationalDatabaseSnapshotAsync(CreateRelationalDatabaseSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateRelationalDatabaseSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateRelationalDatabaseSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteAlarm
internal virtual DeleteAlarmResponse DeleteAlarm(DeleteAlarmRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAlarmResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an alarm.
///
///
///
/// An alarm is used to monitor a single metric for one of your resources. When a metric
/// condition is met, the alarm can notify you by email, SMS text message, and a banner
/// displayed on the Amazon Lightsail console. For more information, see Alarms
/// in Amazon Lightsail.
///
///
/// Container for the necessary parameters to execute the DeleteAlarm service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteAlarm service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteAlarm Operation
public virtual Task DeleteAlarmAsync(DeleteAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAlarmRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAlarmResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteAutoSnapshot
internal virtual DeleteAutoSnapshotResponse DeleteAutoSnapshot(DeleteAutoSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAutoSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAutoSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an automatic snapshot of an instance or disk. For more information, see the
/// Amazon
/// Lightsail Developer Guide.
///
/// Container for the necessary parameters to execute the DeleteAutoSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteAutoSnapshot service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteAutoSnapshot Operation
public virtual Task DeleteAutoSnapshotAsync(DeleteAutoSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAutoSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAutoSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteBucket
internal virtual DeleteBucketResponse DeleteBucket(DeleteBucketRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteBucketRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteBucketResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a Amazon Lightsail bucket.
///
///
///
/// When you delete your bucket, the bucket name is released and can be reused for a new
/// bucket in your account or another Amazon Web Services account.
///
///
///
/// Container for the necessary parameters to execute the DeleteBucket service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteBucket service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteBucket Operation
public virtual Task DeleteBucketAsync(DeleteBucketRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteBucketRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteBucketResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteBucketAccessKey
internal virtual DeleteBucketAccessKeyResponse DeleteBucketAccessKey(DeleteBucketAccessKeyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteBucketAccessKeyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteBucketAccessKeyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an access key for the specified Amazon Lightsail bucket.
///
///
///
/// We recommend that you delete an access key if the secret access key is compromised.
///
///
///
/// For more information about access keys, see Creating
/// access keys for a bucket in Amazon Lightsail in the Amazon Lightsail Developer
/// Guide.
///
///
/// Container for the necessary parameters to execute the DeleteBucketAccessKey service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteBucketAccessKey service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteBucketAccessKey Operation
public virtual Task DeleteBucketAccessKeyAsync(DeleteBucketAccessKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteBucketAccessKeyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteBucketAccessKeyResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteCertificate
internal virtual DeleteCertificateResponse DeleteCertificate(DeleteCertificateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteCertificateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteCertificateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an SSL/TLS certificate for your Amazon Lightsail content delivery network
/// (CDN) distribution.
///
///
///
/// Certificates that are currently attached to a distribution cannot be deleted. Use
/// the DetachCertificateFromDistribution
action to detach a certificate
/// from a distribution.
///
///
/// Container for the necessary parameters to execute the DeleteCertificate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteCertificate service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteCertificate Operation
public virtual Task DeleteCertificateAsync(DeleteCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteCertificateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteCertificateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteContactMethod
internal virtual DeleteContactMethodResponse DeleteContactMethod(DeleteContactMethodRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteContactMethodRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteContactMethodResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a contact method.
///
///
///
/// A contact method is used to send you notifications about your Amazon Lightsail resources.
/// You can add one email address and one mobile phone number contact method in each Amazon
/// Web Services Region. However, SMS text messaging is not supported in some Amazon Web
/// Services Regions, and SMS text messages cannot be sent to some countries/regions.
/// For more information, see Notifications
/// in Amazon Lightsail.
///
///
/// Container for the necessary parameters to execute the DeleteContactMethod service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteContactMethod service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteContactMethod Operation
public virtual Task DeleteContactMethodAsync(DeleteContactMethodRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteContactMethodRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteContactMethodResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteContainerImage
internal virtual DeleteContainerImageResponse DeleteContainerImage(DeleteContainerImageRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteContainerImageRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteContainerImageResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a container image that is registered to your Amazon Lightsail container service.
///
/// Container for the necessary parameters to execute the DeleteContainerImage service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteContainerImage service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteContainerImage Operation
public virtual Task DeleteContainerImageAsync(DeleteContainerImageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteContainerImageRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteContainerImageResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteContainerService
internal virtual DeleteContainerServiceResponse DeleteContainerService(DeleteContainerServiceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteContainerServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteContainerServiceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes your Amazon Lightsail container service.
///
/// Container for the necessary parameters to execute the DeleteContainerService service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteContainerService service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteContainerService Operation
public virtual Task DeleteContainerServiceAsync(DeleteContainerServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteContainerServiceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteContainerServiceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteDisk
internal virtual DeleteDiskResponse DeleteDisk(DeleteDiskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDiskRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDiskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the specified block storage disk. The disk must be in the available
/// state (not attached to a Lightsail instance).
///
///
///
/// The disk may remain in the deleting
state for several minutes.
///
///
///
/// The delete disk
operation supports tag-based access control via resource
/// tags applied to the resource identified by disk name
. For more information,
/// see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the DeleteDisk service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteDisk service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteDisk Operation
public virtual Task DeleteDiskAsync(DeleteDiskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDiskRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDiskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteDiskSnapshot
internal virtual DeleteDiskSnapshotResponse DeleteDiskSnapshot(DeleteDiskSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDiskSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDiskSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the specified disk snapshot.
///
///
///
/// When you make periodic snapshots of a disk, the snapshots are incremental, and only
/// the blocks on the device that have changed since your last snapshot are saved in the
/// new snapshot. When you delete a snapshot, only the data not needed for any other snapshot
/// is removed. So regardless of which prior snapshots have been deleted, all active snapshots
/// will have access to all the information needed to restore the disk.
///
///
///
/// The delete disk snapshot
operation supports tag-based access control
/// via resource tags applied to the resource identified by disk snapshot name
.
/// For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the DeleteDiskSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteDiskSnapshot service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteDiskSnapshot Operation
public virtual Task DeleteDiskSnapshotAsync(DeleteDiskSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDiskSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDiskSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteDistribution
internal virtual DeleteDistributionResponse DeleteDistribution(DeleteDistributionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDistributionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes your Amazon Lightsail content delivery network (CDN) distribution.
///
/// Container for the necessary parameters to execute the DeleteDistribution service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteDistribution service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteDistribution Operation
public virtual Task DeleteDistributionAsync(DeleteDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDistributionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteDomain
internal virtual DeleteDomainResponse DeleteDomain(DeleteDomainRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDomainResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the specified domain recordset and all of its domain records.
///
///
///
/// The delete domain
operation supports tag-based access control via resource
/// tags applied to the resource identified by domain name
. For more information,
/// see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the DeleteDomain service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteDomain service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteDomain Operation
public virtual Task DeleteDomainAsync(DeleteDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDomainResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteDomainEntry
internal virtual DeleteDomainEntryResponse DeleteDomainEntry(DeleteDomainEntryRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDomainEntryRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDomainEntryResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a specific domain entry.
///
///
///
/// The delete domain entry
operation supports tag-based access control via
/// resource tags applied to the resource identified by domain name
. For
/// more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the DeleteDomainEntry service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteDomainEntry service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteDomainEntry Operation
public virtual Task DeleteDomainEntryAsync(DeleteDomainEntryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDomainEntryRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDomainEntryResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteInstance
internal virtual DeleteInstanceResponse DeleteInstance(DeleteInstanceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteInstanceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteInstanceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an Amazon Lightsail instance.
///
///
///
/// The delete instance
operation supports tag-based access control via resource
/// tags applied to the resource identified by instance name
. For more information,
/// see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the DeleteInstance service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteInstance service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteInstance Operation
public virtual Task DeleteInstanceAsync(DeleteInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteInstanceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteInstanceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteInstanceSnapshot
internal virtual DeleteInstanceSnapshotResponse DeleteInstanceSnapshot(DeleteInstanceSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteInstanceSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteInstanceSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a specific snapshot of a virtual private server (or instance).
///
///
///
/// The delete instance snapshot
operation supports tag-based access control
/// via resource tags applied to the resource identified by instance snapshot name
.
/// For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the DeleteInstanceSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteInstanceSnapshot service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteInstanceSnapshot Operation
public virtual Task DeleteInstanceSnapshotAsync(DeleteInstanceSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteInstanceSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteInstanceSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteKeyPair
internal virtual DeleteKeyPairResponse DeleteKeyPair(DeleteKeyPairRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteKeyPairRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteKeyPairResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the specified key pair by removing the public key from Amazon Lightsail.
///
///
///
/// You can delete key pairs that were created using the ImportKeyPair
/// and CreateKeyPair
/// actions, as well as the Lightsail default key pair. A new default key pair will not
/// be created unless you launch an instance without specifying a custom key pair, or
/// you call the DownloadDefaultKeyPair
/// API.
///
///
///
/// The delete key pair
operation supports tag-based access control via resource
/// tags applied to the resource identified by key pair name
. For more information,
/// see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the DeleteKeyPair service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteKeyPair service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteKeyPair Operation
public virtual Task DeleteKeyPairAsync(DeleteKeyPairRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteKeyPairRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteKeyPairResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteKnownHostKeys
internal virtual DeleteKnownHostKeysResponse DeleteKnownHostKeys(DeleteKnownHostKeysRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteKnownHostKeysRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteKnownHostKeysResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the known host key or certificate used by the Amazon Lightsail browser-based
/// SSH or RDP clients to authenticate an instance. This operation enables the Lightsail
/// browser-based SSH or RDP clients to connect to the instance after a host key mismatch.
///
///
///
/// Perform this operation only if you were expecting the host key or certificate mismatch
/// or if you are familiar with the new host key or certificate on the instance. For more
/// information, see Troubleshooting
/// connection issues when using the Amazon Lightsail browser-based SSH or RDP client.
///
///
///
/// Container for the necessary parameters to execute the DeleteKnownHostKeys service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteKnownHostKeys service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteKnownHostKeys Operation
public virtual Task DeleteKnownHostKeysAsync(DeleteKnownHostKeysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteKnownHostKeysRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteKnownHostKeysResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteLoadBalancer
internal virtual DeleteLoadBalancerResponse DeleteLoadBalancer(DeleteLoadBalancerRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLoadBalancerRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLoadBalancerResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a Lightsail load balancer and all its associated SSL/TLS certificates. Once
/// the load balancer is deleted, you will need to create a new load balancer, create
/// a new certificate, and verify domain ownership again.
///
///
///
/// The delete load balancer
operation supports tag-based access control
/// via resource tags applied to the resource identified by load balancer name
.
/// For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the DeleteLoadBalancer service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteLoadBalancer service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteLoadBalancer Operation
public virtual Task DeleteLoadBalancerAsync(DeleteLoadBalancerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLoadBalancerRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLoadBalancerResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteLoadBalancerTlsCertificate
internal virtual DeleteLoadBalancerTlsCertificateResponse DeleteLoadBalancerTlsCertificate(DeleteLoadBalancerTlsCertificateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLoadBalancerTlsCertificateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLoadBalancerTlsCertificateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an SSL/TLS certificate associated with a Lightsail load balancer.
///
///
///
/// The DeleteLoadBalancerTlsCertificate
operation supports tag-based access
/// control via resource tags applied to the resource identified by load balancer
/// name
. For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the DeleteLoadBalancerTlsCertificate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteLoadBalancerTlsCertificate service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteLoadBalancerTlsCertificate Operation
public virtual Task DeleteLoadBalancerTlsCertificateAsync(DeleteLoadBalancerTlsCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLoadBalancerTlsCertificateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLoadBalancerTlsCertificateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteRelationalDatabase
internal virtual DeleteRelationalDatabaseResponse DeleteRelationalDatabase(DeleteRelationalDatabaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRelationalDatabaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRelationalDatabaseResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a database in Amazon Lightsail.
///
///
///
/// The delete relational database
operation supports tag-based access control
/// via resource tags applied to the resource identified by relationalDatabaseName. For
/// more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the DeleteRelationalDatabase service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteRelationalDatabase service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteRelationalDatabase Operation
public virtual Task DeleteRelationalDatabaseAsync(DeleteRelationalDatabaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRelationalDatabaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRelationalDatabaseResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteRelationalDatabaseSnapshot
internal virtual DeleteRelationalDatabaseSnapshotResponse DeleteRelationalDatabaseSnapshot(DeleteRelationalDatabaseSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRelationalDatabaseSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRelationalDatabaseSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a database snapshot in Amazon Lightsail.
///
///
///
/// The delete relational database snapshot
operation supports tag-based
/// access control via resource tags applied to the resource identified by relationalDatabaseName.
/// For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the DeleteRelationalDatabaseSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteRelationalDatabaseSnapshot service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DeleteRelationalDatabaseSnapshot Operation
public virtual Task DeleteRelationalDatabaseSnapshotAsync(DeleteRelationalDatabaseSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRelationalDatabaseSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRelationalDatabaseSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DetachCertificateFromDistribution
internal virtual DetachCertificateFromDistributionResponse DetachCertificateFromDistribution(DetachCertificateFromDistributionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DetachCertificateFromDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DetachCertificateFromDistributionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Detaches an SSL/TLS certificate from your Amazon Lightsail content delivery network
/// (CDN) distribution.
///
///
///
/// After the certificate is detached, your distribution stops accepting traffic for all
/// of the domains that are associated with the certificate.
///
///
/// Container for the necessary parameters to execute the DetachCertificateFromDistribution service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DetachCertificateFromDistribution service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DetachCertificateFromDistribution Operation
public virtual Task DetachCertificateFromDistributionAsync(DetachCertificateFromDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DetachCertificateFromDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DetachCertificateFromDistributionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DetachDisk
internal virtual DetachDiskResponse DetachDisk(DetachDiskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DetachDiskRequestMarshaller.Instance;
options.ResponseUnmarshaller = DetachDiskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Detaches a stopped block storage disk from a Lightsail instance. Make sure to unmount
/// any file systems on the device within your operating system before stopping the instance
/// and detaching the disk.
///
///
///
/// The detach disk
operation supports tag-based access control via resource
/// tags applied to the resource identified by disk name
. For more information,
/// see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the DetachDisk service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DetachDisk service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DetachDisk Operation
public virtual Task DetachDiskAsync(DetachDiskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DetachDiskRequestMarshaller.Instance;
options.ResponseUnmarshaller = DetachDiskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DetachInstancesFromLoadBalancer
internal virtual DetachInstancesFromLoadBalancerResponse DetachInstancesFromLoadBalancer(DetachInstancesFromLoadBalancerRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DetachInstancesFromLoadBalancerRequestMarshaller.Instance;
options.ResponseUnmarshaller = DetachInstancesFromLoadBalancerResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Detaches the specified instances from a Lightsail load balancer.
///
///
///
/// This operation waits until the instances are no longer needed before they are detached
/// from the load balancer.
///
///
///
/// The detach instances from load balancer
operation supports tag-based
/// access control via resource tags applied to the resource identified by load
/// balancer name
. For more information, see the Amazon
/// Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the DetachInstancesFromLoadBalancer service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DetachInstancesFromLoadBalancer service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DetachInstancesFromLoadBalancer Operation
public virtual Task DetachInstancesFromLoadBalancerAsync(DetachInstancesFromLoadBalancerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DetachInstancesFromLoadBalancerRequestMarshaller.Instance;
options.ResponseUnmarshaller = DetachInstancesFromLoadBalancerResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DetachStaticIp
internal virtual DetachStaticIpResponse DetachStaticIp(DetachStaticIpRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DetachStaticIpRequestMarshaller.Instance;
options.ResponseUnmarshaller = DetachStaticIpResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Detaches a static IP from the Amazon Lightsail instance to which it is attached.
///
/// Container for the necessary parameters to execute the DetachStaticIp service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DetachStaticIp service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DetachStaticIp Operation
public virtual Task DetachStaticIpAsync(DetachStaticIpRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DetachStaticIpRequestMarshaller.Instance;
options.ResponseUnmarshaller = DetachStaticIpResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisableAddOn
internal virtual DisableAddOnResponse DisableAddOn(DisableAddOnRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableAddOnRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableAddOnResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Disables an add-on for an Amazon Lightsail resource. For more information, see the
/// Amazon
/// Lightsail Developer Guide.
///
/// Container for the necessary parameters to execute the DisableAddOn service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisableAddOn service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DisableAddOn Operation
public virtual Task DisableAddOnAsync(DisableAddOnRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableAddOnRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableAddOnResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DownloadDefaultKeyPair
internal virtual DownloadDefaultKeyPairResponse DownloadDefaultKeyPair(DownloadDefaultKeyPairRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DownloadDefaultKeyPairRequestMarshaller.Instance;
options.ResponseUnmarshaller = DownloadDefaultKeyPairResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Downloads the regional Amazon Lightsail default key pair.
///
///
///
/// This action also creates a Lightsail default key pair if a default key pair does not
/// currently exist in the Amazon Web Services Region.
///
///
/// Container for the necessary parameters to execute the DownloadDefaultKeyPair service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DownloadDefaultKeyPair service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for DownloadDefaultKeyPair Operation
public virtual Task DownloadDefaultKeyPairAsync(DownloadDefaultKeyPairRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DownloadDefaultKeyPairRequestMarshaller.Instance;
options.ResponseUnmarshaller = DownloadDefaultKeyPairResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region EnableAddOn
internal virtual EnableAddOnResponse EnableAddOn(EnableAddOnRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableAddOnRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableAddOnResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Enables or modifies an add-on for an Amazon Lightsail resource. For more information,
/// see the Amazon
/// Lightsail Developer Guide.
///
/// Container for the necessary parameters to execute the EnableAddOn service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the EnableAddOn service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for EnableAddOn Operation
public virtual Task EnableAddOnAsync(EnableAddOnRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableAddOnRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableAddOnResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ExportSnapshot
internal virtual ExportSnapshotResponse ExportSnapshot(ExportSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Exports an Amazon Lightsail instance or block storage disk snapshot to Amazon Elastic
/// Compute Cloud (Amazon EC2). This operation results in an export snapshot record that
/// can be used with the create cloud formation stack
operation to create
/// new Amazon EC2 instances.
///
///
///
/// Exported instance snapshots appear in Amazon EC2 as Amazon Machine Images (AMIs),
/// and the instance system disk appears as an Amazon Elastic Block Store (Amazon EBS)
/// volume. Exported disk snapshots appear in Amazon EC2 as Amazon EBS volumes. Snapshots
/// are exported to the same Amazon Web Services Region in Amazon EC2 as the source Lightsail
/// snapshot.
///
///
///
/// The export snapshot
operation supports tag-based access control via resource
/// tags applied to the resource identified by source snapshot name
. For
/// more information, see the Amazon
/// Lightsail Developer Guide.
///
///
///
/// Use the get instance snapshots
or get disk snapshots
operations
/// to get a list of snapshots that you can export to Amazon EC2.
///
///
///
/// Container for the necessary parameters to execute the ExportSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ExportSnapshot service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for ExportSnapshot Operation
public virtual Task ExportSnapshotAsync(ExportSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetActiveNames
internal virtual GetActiveNamesResponse GetActiveNames(GetActiveNamesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetActiveNamesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetActiveNamesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the names of all active (not deleted) resources.
///
/// Container for the necessary parameters to execute the GetActiveNames service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetActiveNames service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetActiveNames Operation
public virtual Task GetActiveNamesAsync(GetActiveNamesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetActiveNamesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetActiveNamesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetAlarms
internal virtual GetAlarmsResponse GetAlarms(GetAlarmsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAlarmsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAlarmsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about the configured alarms. Specify an alarm name in your request
/// to return information about a specific alarm, or specify a monitored resource name
/// to return information about all alarms for a specific resource.
///
///
///
/// An alarm is used to monitor a single metric for one of your resources. When a metric
/// condition is met, the alarm can notify you by email, SMS text message, and a banner
/// displayed on the Amazon Lightsail console. For more information, see Alarms
/// in Amazon Lightsail.
///
///
/// Container for the necessary parameters to execute the GetAlarms service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetAlarms service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetAlarms Operation
public virtual Task GetAlarmsAsync(GetAlarmsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAlarmsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAlarmsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetAutoSnapshots
internal virtual GetAutoSnapshotsResponse GetAutoSnapshots(GetAutoSnapshotsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAutoSnapshotsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAutoSnapshotsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the available automatic snapshots for an instance or disk. For more information,
/// see the Amazon
/// Lightsail Developer Guide.
///
/// Container for the necessary parameters to execute the GetAutoSnapshots service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetAutoSnapshots service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetAutoSnapshots Operation
public virtual Task GetAutoSnapshotsAsync(GetAutoSnapshotsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAutoSnapshotsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAutoSnapshotsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetBlueprints
internal virtual GetBlueprintsResponse GetBlueprints(GetBlueprintsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetBlueprintsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetBlueprintsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the list of available instance images, or blueprints. You can use a
/// blueprint to create a new instance already running a specific operating system, as
/// well as a preinstalled app or development stack. The software each instance is running
/// depends on the blueprint image you choose.
///
///
///
/// Use active blueprints when creating new instances. Inactive blueprints are listed
/// to support customers with existing instances and are not necessarily available to
/// create new instances. Blueprints are marked inactive when they become outdated due
/// to operating system updates or new application releases.
///
///
///
/// Container for the necessary parameters to execute the GetBlueprints service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetBlueprints service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetBlueprints Operation
public virtual Task GetBlueprintsAsync(GetBlueprintsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetBlueprintsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetBlueprintsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetBucketAccessKeys
internal virtual GetBucketAccessKeysResponse GetBucketAccessKeys(GetBucketAccessKeysRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetBucketAccessKeysRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetBucketAccessKeysResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the existing access key IDs for the specified Amazon Lightsail bucket.
///
///
///
/// This action does not return the secret access key value of an access key. You can
/// get a secret access key only when you create it from the response of the CreateBucketAccessKey
/// action. If you lose the secret access key, you must create a new access key.
///
///
///
/// Container for the necessary parameters to execute the GetBucketAccessKeys service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetBucketAccessKeys service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetBucketAccessKeys Operation
public virtual Task GetBucketAccessKeysAsync(GetBucketAccessKeysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetBucketAccessKeysRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetBucketAccessKeysResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetBucketBundles
internal virtual GetBucketBundlesResponse GetBucketBundles(GetBucketBundlesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetBucketBundlesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetBucketBundlesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the bundles that you can apply to a Amazon Lightsail bucket.
///
///
///
/// The bucket bundle specifies the monthly cost, storage quota, and data transfer quota
/// for a bucket.
///
///
///
/// Use the UpdateBucketBundle
/// action to update the bundle for a bucket.
///
///
/// Container for the necessary parameters to execute the GetBucketBundles service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetBucketBundles service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetBucketBundles Operation
public virtual Task GetBucketBundlesAsync(GetBucketBundlesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetBucketBundlesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetBucketBundlesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetBucketMetricData
internal virtual GetBucketMetricDataResponse GetBucketMetricData(GetBucketMetricDataRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetBucketMetricDataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetBucketMetricDataResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the data points of a specific metric for an Amazon Lightsail bucket.
///
///
///
/// Metrics report the utilization of a bucket. View and collect metric data regularly
/// to monitor the number of objects stored in a bucket (including object versions) and
/// the storage space used by those objects.
///
///
/// Container for the necessary parameters to execute the GetBucketMetricData service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetBucketMetricData service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetBucketMetricData Operation
public virtual Task GetBucketMetricDataAsync(GetBucketMetricDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetBucketMetricDataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetBucketMetricDataResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetBuckets
internal virtual GetBucketsResponse GetBuckets(GetBucketsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetBucketsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetBucketsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about one or more Amazon Lightsail buckets. The information returned
/// includes the synchronization status of the Amazon Simple Storage Service (Amazon S3)
/// account-level block public access feature for your Lightsail buckets.
///
///
///
/// For more information about buckets, see Buckets
/// in Amazon Lightsail in the Amazon Lightsail Developer Guide.
///
///
/// Container for the necessary parameters to execute the GetBuckets service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetBuckets service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetBuckets Operation
public virtual Task GetBucketsAsync(GetBucketsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetBucketsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetBucketsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetBundles
internal virtual GetBundlesResponse GetBundles(GetBundlesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetBundlesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetBundlesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the bundles that you can apply to an Amazon Lightsail instance when you create
/// it.
///
///
///
/// A bundle describes the specifications of an instance, such as the monthly cost, amount
/// of memory, the number of vCPUs, amount of storage space, and monthly network data
/// transfer quota.
///
///
///
/// Bundles are referred to as instance plans in the Lightsail console.
///
///
///
/// Container for the necessary parameters to execute the GetBundles service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetBundles service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetBundles Operation
public virtual Task GetBundlesAsync(GetBundlesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetBundlesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetBundlesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetCertificates
internal virtual GetCertificatesResponse GetCertificates(GetCertificatesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCertificatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCertificatesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about one or more Amazon Lightsail SSL/TLS certificates.
///
///
///
/// To get a summary of a certificate, omit includeCertificateDetails
from
/// your request. The response will include only the certificate Amazon Resource Name
/// (ARN), certificate name, domain name, and tags.
///
///
///
/// Container for the necessary parameters to execute the GetCertificates service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetCertificates service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetCertificates Operation
public virtual Task GetCertificatesAsync(GetCertificatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCertificatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCertificatesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetCloudFormationStackRecords
internal virtual GetCloudFormationStackRecordsResponse GetCloudFormationStackRecords(GetCloudFormationStackRecordsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCloudFormationStackRecordsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCloudFormationStackRecordsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the CloudFormation stack record created as a result of the create cloud
/// formation stack
operation.
///
///
///
/// An AWS CloudFormation stack is used to create a new Amazon EC2 instance from an exported
/// Lightsail snapshot.
///
///
/// Container for the necessary parameters to execute the GetCloudFormationStackRecords service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetCloudFormationStackRecords service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetCloudFormationStackRecords Operation
public virtual Task GetCloudFormationStackRecordsAsync(GetCloudFormationStackRecordsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCloudFormationStackRecordsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCloudFormationStackRecordsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetContactMethods
internal virtual GetContactMethodsResponse GetContactMethods(GetContactMethodsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContactMethodsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContactMethodsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about the configured contact methods. Specify a protocol in your
/// request to return information about a specific contact method.
///
///
///
/// A contact method is used to send you notifications about your Amazon Lightsail resources.
/// You can add one email address and one mobile phone number contact method in each Amazon
/// Web Services Region. However, SMS text messaging is not supported in some Amazon Web
/// Services Regions, and SMS text messages cannot be sent to some countries/regions.
/// For more information, see Notifications
/// in Amazon Lightsail.
///
///
/// Container for the necessary parameters to execute the GetContactMethods service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetContactMethods service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetContactMethods Operation
public virtual Task GetContactMethodsAsync(GetContactMethodsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContactMethodsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContactMethodsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetContainerAPIMetadata
internal virtual GetContainerAPIMetadataResponse GetContainerAPIMetadata(GetContainerAPIMetadataRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContainerAPIMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContainerAPIMetadataResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about Amazon Lightsail containers, such as the current version
/// of the Lightsail Control (lightsailctl) plugin.
///
/// Container for the necessary parameters to execute the GetContainerAPIMetadata service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetContainerAPIMetadata service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetContainerAPIMetadata Operation
public virtual Task GetContainerAPIMetadataAsync(GetContainerAPIMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContainerAPIMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContainerAPIMetadataResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetContainerImages
internal virtual GetContainerImagesResponse GetContainerImages(GetContainerImagesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContainerImagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContainerImagesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the container images that are registered to your Amazon Lightsail container
/// service.
///
///
///
/// If you created a deployment on your Lightsail container service that uses container
/// images from a public registry like Docker Hub, those images are not returned as part
/// of this action. Those images are not registered to your Lightsail container service.
///
///
///
/// Container for the necessary parameters to execute the GetContainerImages service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetContainerImages service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetContainerImages Operation
public virtual Task GetContainerImagesAsync(GetContainerImagesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContainerImagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContainerImagesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetContainerLog
internal virtual GetContainerLogResponse GetContainerLog(GetContainerLogRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContainerLogRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContainerLogResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the log events of a container of your Amazon Lightsail container service.
///
///
///
/// If your container service has more than one node (i.e., a scale greater than 1), then
/// the log events that are returned for the specified container are merged from all nodes
/// on your container service.
///
///
///
/// Container logs are retained for a certain amount of time. For more information, see
/// Amazon Lightsail
/// endpoints and quotas in the Amazon Web Services General Reference.
///
///
///
/// Container for the necessary parameters to execute the GetContainerLog service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetContainerLog service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetContainerLog Operation
public virtual Task GetContainerLogAsync(GetContainerLogRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContainerLogRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContainerLogResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetContainerServiceDeployments
internal virtual GetContainerServiceDeploymentsResponse GetContainerServiceDeployments(GetContainerServiceDeploymentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContainerServiceDeploymentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContainerServiceDeploymentsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the deployments for your Amazon Lightsail container service
///
///
///
/// A deployment specifies the settings, such as the ports and launch command, of containers
/// that are deployed to your container service.
///
///
///
/// The deployments are ordered by version in ascending order. The newest version is listed
/// at the top of the response.
///
///
///
/// A set number of deployments are kept before the oldest one is replaced with the newest
/// one. For more information, see Amazon
/// Lightsail endpoints and quotas in the Amazon Web Services General Reference.
///
///
///
/// Container for the necessary parameters to execute the GetContainerServiceDeployments service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetContainerServiceDeployments service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetContainerServiceDeployments Operation
public virtual Task GetContainerServiceDeploymentsAsync(GetContainerServiceDeploymentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContainerServiceDeploymentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContainerServiceDeploymentsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetContainerServiceMetricData
internal virtual GetContainerServiceMetricDataResponse GetContainerServiceMetricData(GetContainerServiceMetricDataRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContainerServiceMetricDataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContainerServiceMetricDataResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the data points of a specific metric of your Amazon Lightsail container service.
///
///
///
/// Metrics report the utilization of your resources. Monitor and collect metric data
/// regularly to maintain the reliability, availability, and performance of your resources.
///
///
/// Container for the necessary parameters to execute the GetContainerServiceMetricData service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetContainerServiceMetricData service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetContainerServiceMetricData Operation
public virtual Task GetContainerServiceMetricDataAsync(GetContainerServiceMetricDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContainerServiceMetricDataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContainerServiceMetricDataResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetContainerServicePowers
internal virtual GetContainerServicePowersResponse GetContainerServicePowers(GetContainerServicePowersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContainerServicePowersRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContainerServicePowersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the list of powers that can be specified for your Amazon Lightsail container
/// services.
///
///
///
/// The power specifies the amount of memory, the number of vCPUs, and the base price
/// of the container service.
///
///
/// Container for the necessary parameters to execute the GetContainerServicePowers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetContainerServicePowers service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetContainerServicePowers Operation
public virtual Task GetContainerServicePowersAsync(GetContainerServicePowersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContainerServicePowersRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContainerServicePowersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetContainerServices
internal virtual GetContainerServicesResponse GetContainerServices(GetContainerServicesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContainerServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContainerServicesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about one or more of your Amazon Lightsail container services.
///
/// Container for the necessary parameters to execute the GetContainerServices service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetContainerServices service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetContainerServices Operation
public virtual Task GetContainerServicesAsync(GetContainerServicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContainerServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContainerServicesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetCostEstimate
internal virtual GetCostEstimateResponse GetCostEstimate(GetCostEstimateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCostEstimateRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCostEstimateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves information about the cost estimate for a specified resource. A cost estimate
/// will not generate for a resource that has been deleted.
///
/// Container for the necessary parameters to execute the GetCostEstimate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetCostEstimate service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetCostEstimate Operation
public virtual Task GetCostEstimateAsync(GetCostEstimateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCostEstimateRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCostEstimateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetDisk
internal virtual GetDiskResponse GetDisk(GetDiskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDiskRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDiskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about a specific block storage disk.
///
/// Container for the necessary parameters to execute the GetDisk service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetDisk service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetDisk Operation
public virtual Task GetDiskAsync(GetDiskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDiskRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDiskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetDisks
internal virtual GetDisksResponse GetDisks(GetDisksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDisksRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDisksResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about all block storage disks in your AWS account and region.
///
/// Container for the necessary parameters to execute the GetDisks service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetDisks service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///
/// Domain and distribution APIs are only available in the N. Virginia (us-east-1
)
/// Amazon Web Services Region. Please set your Amazon Web Services Region configuration
/// to us-east-1
to create, view, or edit these resources.
///
///
///
///
/// Lightsail throws this exception when it cannot find a resource.
///
///
/// Lightsail throws this exception when an operation fails to execute.
///
///
/// A general service exception.
///
///
/// Lightsail throws this exception when the user has not been authenticated.
///
/// REST API Reference for GetDisks Operation
public virtual Task GetDisksAsync(GetDisksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDisksRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDisksResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetDiskSnapshot
internal virtual GetDiskSnapshotResponse GetDiskSnapshot(GetDiskSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDiskSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDiskSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about a specific block storage disk snapshot.
///
/// Container for the necessary parameters to execute the GetDiskSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetDiskSnapshot service method, as returned by Lightsail.
///
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid
/// credentials to access a resource.
///
///
/// Lightsail throws this exception when an account is still in the setup in progress
/// state.
///
///
/// Lightsail throws this exception when user input does not conform to the validation
/// rules of an input field.
///
///
///