/*
* 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 scheduler-2021-06-30.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.Scheduler.Model;
using Amazon.Scheduler.Model.Internal.MarshallTransformations;
using Amazon.Scheduler.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.Scheduler
{
///
/// Implementation for accessing Scheduler
///
/// Amazon EventBridge Scheduler is a serverless scheduler that allows you to create,
/// run, and manage tasks from one central, managed service. EventBridge Scheduler delivers
/// your tasks reliably, with built-in mechanisms that adjust your schedules based on
/// the availability of downstream targets. The following reference lists the available
/// API actions, and data types for EventBridge Scheduler.
///
public partial class AmazonSchedulerClient : AmazonServiceClient, IAmazonScheduler
{
private static IServiceMetadata serviceMetadata = new AmazonSchedulerMetadata();
private ISchedulerPaginatorFactory _paginators;
///
/// Paginators for the service
///
public ISchedulerPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new SchedulerPaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
///
/// Constructs AmazonSchedulerClient 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 AmazonSchedulerClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonSchedulerConfig()) { }
///
/// Constructs AmazonSchedulerClient 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 AmazonSchedulerClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonSchedulerConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonSchedulerClient 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 AmazonSchedulerClient Configuration Object
public AmazonSchedulerClient(AmazonSchedulerConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonSchedulerClient with AWS Credentials
///
/// AWS Credentials
public AmazonSchedulerClient(AWSCredentials credentials)
: this(credentials, new AmazonSchedulerConfig())
{
}
///
/// Constructs AmazonSchedulerClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonSchedulerClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonSchedulerConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonSchedulerClient with AWS Credentials and an
/// AmazonSchedulerClient Configuration object.
///
/// AWS Credentials
/// The AmazonSchedulerClient Configuration Object
public AmazonSchedulerClient(AWSCredentials credentials, AmazonSchedulerConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonSchedulerClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonSchedulerClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonSchedulerConfig())
{
}
///
/// Constructs AmazonSchedulerClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonSchedulerClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonSchedulerConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonSchedulerClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonSchedulerClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonSchedulerClient Configuration Object
public AmazonSchedulerClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonSchedulerConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonSchedulerClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonSchedulerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonSchedulerConfig())
{
}
///
/// Constructs AmazonSchedulerClient 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 AmazonSchedulerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonSchedulerConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonSchedulerClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonSchedulerClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonSchedulerClient Configuration Object
public AmazonSchedulerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonSchedulerConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonSchedulerEndpointResolver());
}
///
/// 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 CreateSchedule
///
/// Creates the specified schedule.
///
/// Container for the necessary parameters to execute the CreateSchedule service method.
///
/// The response from the CreateSchedule service method, as returned by Scheduler.
///
/// Updating or deleting the resource can cause an inconsistent state.
///
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request exceeds a service quota.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateSchedule Operation
public virtual CreateScheduleResponse CreateSchedule(CreateScheduleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateScheduleRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateScheduleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates the specified schedule.
///
/// Container for the necessary parameters to execute the CreateSchedule service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateSchedule service method, as returned by Scheduler.
///
/// Updating or deleting the resource can cause an inconsistent state.
///
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request exceeds a service quota.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateSchedule Operation
public virtual Task CreateScheduleAsync(CreateScheduleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateScheduleRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateScheduleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateScheduleGroup
///
/// Creates the specified schedule group.
///
/// Container for the necessary parameters to execute the CreateScheduleGroup service method.
///
/// The response from the CreateScheduleGroup service method, as returned by Scheduler.
///
/// Updating or deleting the resource can cause an inconsistent state.
///
///
/// Unexpected error encountered while processing the request.
///
///
/// The request exceeds a service quota.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateScheduleGroup Operation
public virtual CreateScheduleGroupResponse CreateScheduleGroup(CreateScheduleGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateScheduleGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateScheduleGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates the specified schedule group.
///
/// Container for the necessary parameters to execute the CreateScheduleGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateScheduleGroup service method, as returned by Scheduler.
///
/// Updating or deleting the resource can cause an inconsistent state.
///
///
/// Unexpected error encountered while processing the request.
///
///
/// The request exceeds a service quota.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateScheduleGroup Operation
public virtual Task CreateScheduleGroupAsync(CreateScheduleGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateScheduleGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateScheduleGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteSchedule
///
/// Deletes the specified schedule.
///
/// Container for the necessary parameters to execute the DeleteSchedule service method.
///
/// The response from the DeleteSchedule service method, as returned by Scheduler.
///
/// Updating or deleting the resource can cause an inconsistent state.
///
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteSchedule Operation
public virtual DeleteScheduleResponse DeleteSchedule(DeleteScheduleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScheduleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScheduleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the specified schedule.
///
/// Container for the necessary parameters to execute the DeleteSchedule service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteSchedule service method, as returned by Scheduler.
///
/// Updating or deleting the resource can cause an inconsistent state.
///
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteSchedule Operation
public virtual Task DeleteScheduleAsync(DeleteScheduleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScheduleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScheduleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteScheduleGroup
///
/// Deletes the specified schedule group. Deleting a schedule group results in EventBridge
/// Scheduler deleting all schedules associated with the group. When you delete a group,
/// it remains in a DELETING
state until all of its associated schedules
/// are deleted. Schedules associated with the group that are set to run while the schedule
/// group is in the process of being deleted might continue to invoke their targets until
/// the schedule group and its associated schedules are deleted.
///
///
///
/// This operation is eventually consistent.
///
///
///
/// Container for the necessary parameters to execute the DeleteScheduleGroup service method.
///
/// The response from the DeleteScheduleGroup service method, as returned by Scheduler.
///
/// Updating or deleting the resource can cause an inconsistent state.
///
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteScheduleGroup Operation
public virtual DeleteScheduleGroupResponse DeleteScheduleGroup(DeleteScheduleGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScheduleGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScheduleGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the specified schedule group. Deleting a schedule group results in EventBridge
/// Scheduler deleting all schedules associated with the group. When you delete a group,
/// it remains in a DELETING
state until all of its associated schedules
/// are deleted. Schedules associated with the group that are set to run while the schedule
/// group is in the process of being deleted might continue to invoke their targets until
/// the schedule group and its associated schedules are deleted.
///
///
///
/// This operation is eventually consistent.
///
///
///
/// Container for the necessary parameters to execute the DeleteScheduleGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteScheduleGroup service method, as returned by Scheduler.
///
/// Updating or deleting the resource can cause an inconsistent state.
///
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteScheduleGroup Operation
public virtual Task DeleteScheduleGroupAsync(DeleteScheduleGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteScheduleGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteScheduleGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetSchedule
///
/// Retrieves the specified schedule.
///
/// Container for the necessary parameters to execute the GetSchedule service method.
///
/// The response from the GetSchedule service method, as returned by Scheduler.
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetSchedule Operation
public virtual GetScheduleResponse GetSchedule(GetScheduleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetScheduleRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetScheduleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves the specified schedule.
///
/// Container for the necessary parameters to execute the GetSchedule service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetSchedule service method, as returned by Scheduler.
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetSchedule Operation
public virtual Task GetScheduleAsync(GetScheduleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetScheduleRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetScheduleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetScheduleGroup
///
/// Retrieves the specified schedule group.
///
/// Container for the necessary parameters to execute the GetScheduleGroup service method.
///
/// The response from the GetScheduleGroup service method, as returned by Scheduler.
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetScheduleGroup Operation
public virtual GetScheduleGroupResponse GetScheduleGroup(GetScheduleGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetScheduleGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetScheduleGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves the specified schedule group.
///
/// Container for the necessary parameters to execute the GetScheduleGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetScheduleGroup service method, as returned by Scheduler.
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetScheduleGroup Operation
public virtual Task GetScheduleGroupAsync(GetScheduleGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetScheduleGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetScheduleGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListScheduleGroups
///
/// Returns a paginated list of your schedule groups.
///
/// Container for the necessary parameters to execute the ListScheduleGroups service method.
///
/// The response from the ListScheduleGroups service method, as returned by Scheduler.
///
/// Unexpected error encountered while processing the request.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListScheduleGroups Operation
public virtual ListScheduleGroupsResponse ListScheduleGroups(ListScheduleGroupsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListScheduleGroupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListScheduleGroupsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a paginated list of your schedule groups.
///
/// Container for the necessary parameters to execute the ListScheduleGroups service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListScheduleGroups service method, as returned by Scheduler.
///
/// Unexpected error encountered while processing the request.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListScheduleGroups Operation
public virtual Task ListScheduleGroupsAsync(ListScheduleGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListScheduleGroupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListScheduleGroupsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListSchedules
///
/// Returns a paginated list of your EventBridge Scheduler schedules.
///
/// Container for the necessary parameters to execute the ListSchedules service method.
///
/// The response from the ListSchedules service method, as returned by Scheduler.
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListSchedules Operation
public virtual ListSchedulesResponse ListSchedules(ListSchedulesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSchedulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSchedulesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a paginated list of your EventBridge Scheduler schedules.
///
/// Container for the necessary parameters to execute the ListSchedules service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListSchedules service method, as returned by Scheduler.
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListSchedules Operation
public virtual Task ListSchedulesAsync(ListSchedulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSchedulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSchedulesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
///
/// Lists the tags associated with the Scheduler resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by Scheduler.
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the tags associated with the Scheduler resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForResource service method, as returned by Scheduler.
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListTagsForResource Operation
public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
///
/// Assigns one or more tags (key-value pairs) to the specified EventBridge Scheduler
/// resource. You can only assign tags to schedule groups.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by Scheduler.
///
/// Updating or deleting the resource can cause an inconsistent state.
///
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Assigns one or more tags (key-value pairs) to the specified EventBridge Scheduler
/// resource. You can only assign tags to schedule groups.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagResource service method, as returned by Scheduler.
///
/// Updating or deleting the resource can cause an inconsistent state.
///
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for TagResource Operation
public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UntagResource
///
/// Removes one or more tags from the specified EventBridge Scheduler schedule group.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by Scheduler.
///
/// Updating or deleting the resource can cause an inconsistent state.
///
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes one or more tags from the specified EventBridge Scheduler schedule group.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagResource service method, as returned by Scheduler.
///
/// Updating or deleting the resource can cause an inconsistent state.
///
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UntagResource Operation
public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateSchedule
///
/// Updates the specified schedule. When you call UpdateSchedule
, EventBridge
/// Scheduler uses all values, including empty values, specified in the request and overrides
/// the existing schedule. This is by design. This means that if you do not set an optional
/// field in your request, that field will be set to its system-default value after the
/// update.
///
///
///
/// Before calling this operation, we recommend that you call the GetSchedule
/// API operation and make a note of all optional parameters for your UpdateSchedule
/// call.
///
///
/// Container for the necessary parameters to execute the UpdateSchedule service method.
///
/// The response from the UpdateSchedule service method, as returned by Scheduler.
///
/// Updating or deleting the resource can cause an inconsistent state.
///
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UpdateSchedule Operation
public virtual UpdateScheduleResponse UpdateSchedule(UpdateScheduleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateScheduleRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateScheduleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates the specified schedule. When you call UpdateSchedule
, EventBridge
/// Scheduler uses all values, including empty values, specified in the request and overrides
/// the existing schedule. This is by design. This means that if you do not set an optional
/// field in your request, that field will be set to its system-default value after the
/// update.
///
///
///
/// Before calling this operation, we recommend that you call the GetSchedule
/// API operation and make a note of all optional parameters for your UpdateSchedule
/// call.
///
///
/// Container for the necessary parameters to execute the UpdateSchedule service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateSchedule service method, as returned by Scheduler.
///
/// Updating or deleting the resource can cause an inconsistent state.
///
///
/// Unexpected error encountered while processing the request.
///
///
/// The request references a resource which does not exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UpdateSchedule Operation
public virtual Task UpdateScheduleAsync(UpdateScheduleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateScheduleRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateScheduleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}