repo_name stringlengths 1 52 | repo_creator stringclasses 6
values | programming_language stringclasses 4
values | code stringlengths 0 9.68M | num_lines int64 1 234k |
|---|---|---|---|---|
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// StartReplay Request Marshaller
/// </summary>
public class StartReplayRequestMarshaller : IMarshaller<IRequest, StartReplayRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((StartReplayRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(StartReplayRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvents");
string target = "AWSEvents.StartReplay";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-10-07";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetDescription())
{
context.Writer.WritePropertyName("Description");
context.Writer.Write(publicRequest.Description);
}
if(publicRequest.IsSetDestination())
{
context.Writer.WritePropertyName("Destination");
context.Writer.WriteObjectStart();
var marshaller = ReplayDestinationMarshaller.Instance;
marshaller.Marshall(publicRequest.Destination, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetEventEndTime())
{
context.Writer.WritePropertyName("EventEndTime");
context.Writer.Write(publicRequest.EventEndTime);
}
if(publicRequest.IsSetEventSourceArn())
{
context.Writer.WritePropertyName("EventSourceArn");
context.Writer.Write(publicRequest.EventSourceArn);
}
if(publicRequest.IsSetEventStartTime())
{
context.Writer.WritePropertyName("EventStartTime");
context.Writer.Write(publicRequest.EventStartTime);
}
if(publicRequest.IsSetReplayName())
{
context.Writer.WritePropertyName("ReplayName");
context.Writer.Write(publicRequest.ReplayName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static StartReplayRequestMarshaller _instance = new StartReplayRequestMarshaller();
internal static StartReplayRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartReplayRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 138 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for StartReplay operation
/// </summary>
public class StartReplayResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
StartReplayResponse response = new StartReplayResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ReplayArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ReplayArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ReplayStartTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.ReplayStartTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("State", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.State = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StateReason", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.StateReason = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalException"))
{
return InternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidEventPatternException"))
{
return InvalidEventPatternExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceAlreadyExistsException"))
{
return ResourceAlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudWatchEventsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static StartReplayResponseUnmarshaller _instance = new StartReplayResponseUnmarshaller();
internal static StartReplayResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartReplayResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 144 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// Tag Marshaller
/// </summary>
public class TagMarshaller : IRequestMarshaller<Tag, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(Tag requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetKey())
{
context.Writer.WritePropertyName("Key");
context.Writer.Write(requestObject.Key);
}
if(requestObject.IsSetValue())
{
context.Writer.WritePropertyName("Value");
context.Writer.Write(requestObject.Value);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static TagMarshaller Instance = new TagMarshaller();
}
} | 68 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// TagResource Request Marshaller
/// </summary>
public class TagResourceRequestMarshaller : IMarshaller<IRequest, TagResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((TagResourceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(TagResourceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvents");
string target = "AWSEvents.TagResource";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-10-07";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetResourceARN())
{
context.Writer.WritePropertyName("ResourceARN");
context.Writer.Write(publicRequest.ResourceARN);
}
if(publicRequest.IsSetTags())
{
context.Writer.WritePropertyName("Tags");
context.Writer.WriteArrayStart();
foreach(var publicRequestTagsListValue in publicRequest.Tags)
{
context.Writer.WriteObjectStart();
var marshaller = TagMarshaller.Instance;
marshaller.Marshall(publicRequestTagsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static TagResourceRequestMarshaller _instance = new TagResourceRequestMarshaller();
internal static TagResourceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static TagResourceRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 119 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for TagResource operation
/// </summary>
public class TagResourceResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
TagResourceResponse response = new TagResourceResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException"))
{
return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalException"))
{
return InternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ManagedRuleException"))
{
return ManagedRuleExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudWatchEventsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static TagResourceResponseUnmarshaller _instance = new TagResourceResponseUnmarshaller();
internal static TagResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static TagResourceResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 111 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Tag Object
/// </summary>
public class TagUnmarshaller : IUnmarshaller<Tag, XmlUnmarshallerContext>, IUnmarshaller<Tag, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Tag IUnmarshaller<Tag, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public Tag Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Tag unmarshalledObject = new Tag();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Key", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Key = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Value", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Value = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TagUnmarshaller _instance = new TagUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TagUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 98 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// Target Marshaller
/// </summary>
public class TargetMarshaller : IRequestMarshaller<Target, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(Target requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetArn())
{
context.Writer.WritePropertyName("Arn");
context.Writer.Write(requestObject.Arn);
}
if(requestObject.IsSetBatchParameters())
{
context.Writer.WritePropertyName("BatchParameters");
context.Writer.WriteObjectStart();
var marshaller = BatchParametersMarshaller.Instance;
marshaller.Marshall(requestObject.BatchParameters, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetDeadLetterConfig())
{
context.Writer.WritePropertyName("DeadLetterConfig");
context.Writer.WriteObjectStart();
var marshaller = DeadLetterConfigMarshaller.Instance;
marshaller.Marshall(requestObject.DeadLetterConfig, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetEcsParameters())
{
context.Writer.WritePropertyName("EcsParameters");
context.Writer.WriteObjectStart();
var marshaller = EcsParametersMarshaller.Instance;
marshaller.Marshall(requestObject.EcsParameters, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetHttpParameters())
{
context.Writer.WritePropertyName("HttpParameters");
context.Writer.WriteObjectStart();
var marshaller = HttpParametersMarshaller.Instance;
marshaller.Marshall(requestObject.HttpParameters, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetId())
{
context.Writer.WritePropertyName("Id");
context.Writer.Write(requestObject.Id);
}
if(requestObject.IsSetInput())
{
context.Writer.WritePropertyName("Input");
context.Writer.Write(requestObject.Input);
}
if(requestObject.IsSetInputPath())
{
context.Writer.WritePropertyName("InputPath");
context.Writer.Write(requestObject.InputPath);
}
if(requestObject.IsSetInputTransformer())
{
context.Writer.WritePropertyName("InputTransformer");
context.Writer.WriteObjectStart();
var marshaller = InputTransformerMarshaller.Instance;
marshaller.Marshall(requestObject.InputTransformer, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetKinesisParameters())
{
context.Writer.WritePropertyName("KinesisParameters");
context.Writer.WriteObjectStart();
var marshaller = KinesisParametersMarshaller.Instance;
marshaller.Marshall(requestObject.KinesisParameters, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetRedshiftDataParameters())
{
context.Writer.WritePropertyName("RedshiftDataParameters");
context.Writer.WriteObjectStart();
var marshaller = RedshiftDataParametersMarshaller.Instance;
marshaller.Marshall(requestObject.RedshiftDataParameters, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetRetryPolicy())
{
context.Writer.WritePropertyName("RetryPolicy");
context.Writer.WriteObjectStart();
var marshaller = RetryPolicyMarshaller.Instance;
marshaller.Marshall(requestObject.RetryPolicy, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetRoleArn())
{
context.Writer.WritePropertyName("RoleArn");
context.Writer.Write(requestObject.RoleArn);
}
if(requestObject.IsSetRunCommandParameters())
{
context.Writer.WritePropertyName("RunCommandParameters");
context.Writer.WriteObjectStart();
var marshaller = RunCommandParametersMarshaller.Instance;
marshaller.Marshall(requestObject.RunCommandParameters, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetSageMakerPipelineParameters())
{
context.Writer.WritePropertyName("SageMakerPipelineParameters");
context.Writer.WriteObjectStart();
var marshaller = SageMakerPipelineParametersMarshaller.Instance;
marshaller.Marshall(requestObject.SageMakerPipelineParameters, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetSqsParameters())
{
context.Writer.WritePropertyName("SqsParameters");
context.Writer.WriteObjectStart();
var marshaller = SqsParametersMarshaller.Instance;
marshaller.Marshall(requestObject.SqsParameters, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static TargetMarshaller Instance = new TargetMarshaller();
}
} | 207 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Target Object
/// </summary>
public class TargetUnmarshaller : IUnmarshaller<Target, XmlUnmarshallerContext>, IUnmarshaller<Target, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Target IUnmarshaller<Target, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public Target Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Target unmarshalledObject = new Target();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Arn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Arn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BatchParameters", targetDepth))
{
var unmarshaller = BatchParametersUnmarshaller.Instance;
unmarshalledObject.BatchParameters = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DeadLetterConfig", targetDepth))
{
var unmarshaller = DeadLetterConfigUnmarshaller.Instance;
unmarshalledObject.DeadLetterConfig = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EcsParameters", targetDepth))
{
var unmarshaller = EcsParametersUnmarshaller.Instance;
unmarshalledObject.EcsParameters = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HttpParameters", targetDepth))
{
var unmarshaller = HttpParametersUnmarshaller.Instance;
unmarshalledObject.HttpParameters = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Id", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Id = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Input", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Input = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("InputPath", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.InputPath = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("InputTransformer", targetDepth))
{
var unmarshaller = InputTransformerUnmarshaller.Instance;
unmarshalledObject.InputTransformer = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("KinesisParameters", targetDepth))
{
var unmarshaller = KinesisParametersUnmarshaller.Instance;
unmarshalledObject.KinesisParameters = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RedshiftDataParameters", targetDepth))
{
var unmarshaller = RedshiftDataParametersUnmarshaller.Instance;
unmarshalledObject.RedshiftDataParameters = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RetryPolicy", targetDepth))
{
var unmarshaller = RetryPolicyUnmarshaller.Instance;
unmarshalledObject.RetryPolicy = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RoleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.RoleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RunCommandParameters", targetDepth))
{
var unmarshaller = RunCommandParametersUnmarshaller.Instance;
unmarshalledObject.RunCommandParameters = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SageMakerPipelineParameters", targetDepth))
{
var unmarshaller = SageMakerPipelineParametersUnmarshaller.Instance;
unmarshalledObject.SageMakerPipelineParameters = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SqsParameters", targetDepth))
{
var unmarshaller = SqsParametersUnmarshaller.Instance;
unmarshalledObject.SqsParameters = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TargetUnmarshaller _instance = new TargetUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TargetUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 182 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// TestEventPattern Request Marshaller
/// </summary>
public class TestEventPatternRequestMarshaller : IMarshaller<IRequest, TestEventPatternRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((TestEventPatternRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(TestEventPatternRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvents");
string target = "AWSEvents.TestEventPattern";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-10-07";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetEvent())
{
context.Writer.WritePropertyName("Event");
context.Writer.Write(publicRequest.Event);
}
if(publicRequest.IsSetEventPattern())
{
context.Writer.WritePropertyName("EventPattern");
context.Writer.Write(publicRequest.EventPattern);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static TestEventPatternRequestMarshaller _instance = new TestEventPatternRequestMarshaller();
internal static TestEventPatternRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static TestEventPatternRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 109 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for TestEventPattern operation
/// </summary>
public class TestEventPatternResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
TestEventPatternResponse response = new TestEventPatternResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Result", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
response.Result = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalException"))
{
return InternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidEventPatternException"))
{
return InvalidEventPatternExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudWatchEventsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static TestEventPatternResponseUnmarshaller _instance = new TestEventPatternResponseUnmarshaller();
internal static TestEventPatternResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static TestEventPatternResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 114 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// UntagResource Request Marshaller
/// </summary>
public class UntagResourceRequestMarshaller : IMarshaller<IRequest, UntagResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((UntagResourceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UntagResourceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvents");
string target = "AWSEvents.UntagResource";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-10-07";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetResourceARN())
{
context.Writer.WritePropertyName("ResourceARN");
context.Writer.Write(publicRequest.ResourceARN);
}
if(publicRequest.IsSetTagKeys())
{
context.Writer.WritePropertyName("TagKeys");
context.Writer.WriteArrayStart();
foreach(var publicRequestTagKeysListValue in publicRequest.TagKeys)
{
context.Writer.Write(publicRequestTagKeysListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static UntagResourceRequestMarshaller _instance = new UntagResourceRequestMarshaller();
internal static UntagResourceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UntagResourceRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 114 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UntagResource operation
/// </summary>
public class UntagResourceResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
UntagResourceResponse response = new UntagResourceResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException"))
{
return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalException"))
{
return InternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ManagedRuleException"))
{
return ManagedRuleExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudWatchEventsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UntagResourceResponseUnmarshaller _instance = new UntagResourceResponseUnmarshaller();
internal static UntagResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UntagResourceResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 111 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateApiDestination Request Marshaller
/// </summary>
public class UpdateApiDestinationRequestMarshaller : IMarshaller<IRequest, UpdateApiDestinationRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((UpdateApiDestinationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UpdateApiDestinationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvents");
string target = "AWSEvents.UpdateApiDestination";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-10-07";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetConnectionArn())
{
context.Writer.WritePropertyName("ConnectionArn");
context.Writer.Write(publicRequest.ConnectionArn);
}
if(publicRequest.IsSetDescription())
{
context.Writer.WritePropertyName("Description");
context.Writer.Write(publicRequest.Description);
}
if(publicRequest.IsSetHttpMethod())
{
context.Writer.WritePropertyName("HttpMethod");
context.Writer.Write(publicRequest.HttpMethod);
}
if(publicRequest.IsSetInvocationEndpoint())
{
context.Writer.WritePropertyName("InvocationEndpoint");
context.Writer.Write(publicRequest.InvocationEndpoint);
}
if(publicRequest.IsSetInvocationRateLimitPerSecond())
{
context.Writer.WritePropertyName("InvocationRateLimitPerSecond");
context.Writer.Write(publicRequest.InvocationRateLimitPerSecond);
}
if(publicRequest.IsSetName())
{
context.Writer.WritePropertyName("Name");
context.Writer.Write(publicRequest.Name);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static UpdateApiDestinationRequestMarshaller _instance = new UpdateApiDestinationRequestMarshaller();
internal static UpdateApiDestinationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateApiDestinationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 133 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UpdateApiDestination operation
/// </summary>
public class UpdateApiDestinationResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
UpdateApiDestinationResponse response = new UpdateApiDestinationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ApiDestinationArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ApiDestinationArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ApiDestinationState", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ApiDestinationState = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreationTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.CreationTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LastModifiedTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.LastModifiedTime = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException"))
{
return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalException"))
{
return InternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudWatchEventsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UpdateApiDestinationResponseUnmarshaller _instance = new UpdateApiDestinationResponseUnmarshaller();
internal static UpdateApiDestinationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateApiDestinationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 140 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateArchive Request Marshaller
/// </summary>
public class UpdateArchiveRequestMarshaller : IMarshaller<IRequest, UpdateArchiveRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((UpdateArchiveRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UpdateArchiveRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvents");
string target = "AWSEvents.UpdateArchive";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-10-07";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetArchiveName())
{
context.Writer.WritePropertyName("ArchiveName");
context.Writer.Write(publicRequest.ArchiveName);
}
if(publicRequest.IsSetDescription())
{
context.Writer.WritePropertyName("Description");
context.Writer.Write(publicRequest.Description);
}
if(publicRequest.IsSetEventPattern())
{
context.Writer.WritePropertyName("EventPattern");
context.Writer.Write(publicRequest.EventPattern);
}
if(publicRequest.IsSetRetentionDays())
{
context.Writer.WritePropertyName("RetentionDays");
context.Writer.Write(publicRequest.RetentionDays);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static UpdateArchiveRequestMarshaller _instance = new UpdateArchiveRequestMarshaller();
internal static UpdateArchiveRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateArchiveRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 121 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UpdateArchive operation
/// </summary>
public class UpdateArchiveResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
UpdateArchiveResponse response = new UpdateArchiveResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ArchiveArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ArchiveArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreationTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.CreationTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("State", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.State = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StateReason", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.StateReason = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException"))
{
return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalException"))
{
return InternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidEventPatternException"))
{
return InvalidEventPatternExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudWatchEventsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UpdateArchiveResponseUnmarshaller _instance = new UpdateArchiveResponseUnmarshaller();
internal static UpdateArchiveResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateArchiveResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 144 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateConnectionApiKeyAuthRequestParameters Marshaller
/// </summary>
public class UpdateConnectionApiKeyAuthRequestParametersMarshaller : IRequestMarshaller<UpdateConnectionApiKeyAuthRequestParameters, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(UpdateConnectionApiKeyAuthRequestParameters requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetApiKeyName())
{
context.Writer.WritePropertyName("ApiKeyName");
context.Writer.Write(requestObject.ApiKeyName);
}
if(requestObject.IsSetApiKeyValue())
{
context.Writer.WritePropertyName("ApiKeyValue");
context.Writer.Write(requestObject.ApiKeyValue);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static UpdateConnectionApiKeyAuthRequestParametersMarshaller Instance = new UpdateConnectionApiKeyAuthRequestParametersMarshaller();
}
} | 68 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateConnectionAuthRequestParameters Marshaller
/// </summary>
public class UpdateConnectionAuthRequestParametersMarshaller : IRequestMarshaller<UpdateConnectionAuthRequestParameters, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(UpdateConnectionAuthRequestParameters requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetApiKeyAuthParameters())
{
context.Writer.WritePropertyName("ApiKeyAuthParameters");
context.Writer.WriteObjectStart();
var marshaller = UpdateConnectionApiKeyAuthRequestParametersMarshaller.Instance;
marshaller.Marshall(requestObject.ApiKeyAuthParameters, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetBasicAuthParameters())
{
context.Writer.WritePropertyName("BasicAuthParameters");
context.Writer.WriteObjectStart();
var marshaller = UpdateConnectionBasicAuthRequestParametersMarshaller.Instance;
marshaller.Marshall(requestObject.BasicAuthParameters, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetInvocationHttpParameters())
{
context.Writer.WritePropertyName("InvocationHttpParameters");
context.Writer.WriteObjectStart();
var marshaller = ConnectionHttpParametersMarshaller.Instance;
marshaller.Marshall(requestObject.InvocationHttpParameters, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetOAuthParameters())
{
context.Writer.WritePropertyName("OAuthParameters");
context.Writer.WriteObjectStart();
var marshaller = UpdateConnectionOAuthRequestParametersMarshaller.Instance;
marshaller.Marshall(requestObject.OAuthParameters, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static UpdateConnectionAuthRequestParametersMarshaller Instance = new UpdateConnectionAuthRequestParametersMarshaller();
}
} | 100 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateConnectionBasicAuthRequestParameters Marshaller
/// </summary>
public class UpdateConnectionBasicAuthRequestParametersMarshaller : IRequestMarshaller<UpdateConnectionBasicAuthRequestParameters, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(UpdateConnectionBasicAuthRequestParameters requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetPassword())
{
context.Writer.WritePropertyName("Password");
context.Writer.Write(requestObject.Password);
}
if(requestObject.IsSetUsername())
{
context.Writer.WritePropertyName("Username");
context.Writer.Write(requestObject.Username);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static UpdateConnectionBasicAuthRequestParametersMarshaller Instance = new UpdateConnectionBasicAuthRequestParametersMarshaller();
}
} | 68 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateConnectionOAuthClientRequestParameters Marshaller
/// </summary>
public class UpdateConnectionOAuthClientRequestParametersMarshaller : IRequestMarshaller<UpdateConnectionOAuthClientRequestParameters, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(UpdateConnectionOAuthClientRequestParameters requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetClientID())
{
context.Writer.WritePropertyName("ClientID");
context.Writer.Write(requestObject.ClientID);
}
if(requestObject.IsSetClientSecret())
{
context.Writer.WritePropertyName("ClientSecret");
context.Writer.Write(requestObject.ClientSecret);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static UpdateConnectionOAuthClientRequestParametersMarshaller Instance = new UpdateConnectionOAuthClientRequestParametersMarshaller();
}
} | 68 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateConnectionOAuthRequestParameters Marshaller
/// </summary>
public class UpdateConnectionOAuthRequestParametersMarshaller : IRequestMarshaller<UpdateConnectionOAuthRequestParameters, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(UpdateConnectionOAuthRequestParameters requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAuthorizationEndpoint())
{
context.Writer.WritePropertyName("AuthorizationEndpoint");
context.Writer.Write(requestObject.AuthorizationEndpoint);
}
if(requestObject.IsSetClientParameters())
{
context.Writer.WritePropertyName("ClientParameters");
context.Writer.WriteObjectStart();
var marshaller = UpdateConnectionOAuthClientRequestParametersMarshaller.Instance;
marshaller.Marshall(requestObject.ClientParameters, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetHttpMethod())
{
context.Writer.WritePropertyName("HttpMethod");
context.Writer.Write(requestObject.HttpMethod);
}
if(requestObject.IsSetOAuthHttpParameters())
{
context.Writer.WritePropertyName("OAuthHttpParameters");
context.Writer.WriteObjectStart();
var marshaller = ConnectionHttpParametersMarshaller.Instance;
marshaller.Marshall(requestObject.OAuthHttpParameters, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static UpdateConnectionOAuthRequestParametersMarshaller Instance = new UpdateConnectionOAuthRequestParametersMarshaller();
}
} | 90 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateConnection Request Marshaller
/// </summary>
public class UpdateConnectionRequestMarshaller : IMarshaller<IRequest, UpdateConnectionRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((UpdateConnectionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UpdateConnectionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvents");
string target = "AWSEvents.UpdateConnection";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-10-07";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAuthorizationType())
{
context.Writer.WritePropertyName("AuthorizationType");
context.Writer.Write(publicRequest.AuthorizationType);
}
if(publicRequest.IsSetAuthParameters())
{
context.Writer.WritePropertyName("AuthParameters");
context.Writer.WriteObjectStart();
var marshaller = UpdateConnectionAuthRequestParametersMarshaller.Instance;
marshaller.Marshall(publicRequest.AuthParameters, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetDescription())
{
context.Writer.WritePropertyName("Description");
context.Writer.Write(publicRequest.Description);
}
if(publicRequest.IsSetName())
{
context.Writer.WritePropertyName("Name");
context.Writer.Write(publicRequest.Name);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static UpdateConnectionRequestMarshaller _instance = new UpdateConnectionRequestMarshaller();
internal static UpdateConnectionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateConnectionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 126 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudWatchEvents.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UpdateConnection operation
/// </summary>
public class UpdateConnectionResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
UpdateConnectionResponse response = new UpdateConnectionResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ConnectionArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ConnectionArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ConnectionState", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ConnectionState = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreationTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.CreationTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LastAuthorizedTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.LastAuthorizedTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LastModifiedTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.LastModifiedTime = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException"))
{
return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalException"))
{
return InternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudWatchEventsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UpdateConnectionResponseUnmarshaller _instance = new UpdateConnectionResponseUnmarshaller();
internal static UpdateConnectionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateConnectionResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 146 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.CloudWatchEvents.Model;
using Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations;
using Amazon.CloudWatchEvents.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.CloudWatchEvents
{
/// <summary>
/// Implementation for accessing CloudWatchEvents
///
/// Amazon EventBridge helps you to respond to state changes in your Amazon Web Services
/// resources. When your resources change state, they automatically send events to an
/// event stream. You can create rules that match selected events in the stream and route
/// them to targets to take action. You can also use rules to take action on a predetermined
/// schedule. For example, you can configure rules to:
///
/// <ul> <li>
/// <para>
/// Automatically invoke an Lambda function to update DNS entries when an event notifies
/// you that Amazon EC2 instance enters the running state.
/// </para>
/// </li> <li>
/// <para>
/// Direct specific API records from CloudTrail to an Amazon Kinesis data stream for detailed
/// analysis of potential security or availability risks.
/// </para>
/// </li> <li>
/// <para>
/// Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume.
/// </para>
/// </li> </ul>
/// <para>
/// For more information about the features of Amazon EventBridge, see the <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide">Amazon
/// EventBridge User Guide</a>.
/// </para>
/// </summary>
public partial class AmazonCloudWatchEventsClient : AmazonServiceClient, IAmazonCloudWatchEvents
{
private static IServiceMetadata serviceMetadata = new AmazonCloudWatchEventsMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonCloudWatchEventsClient 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.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonCloudWatchEventsClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudWatchEventsConfig()) { }
/// <summary>
/// Constructs AmazonCloudWatchEventsClient 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.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonCloudWatchEventsClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudWatchEventsConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonCloudWatchEventsClient 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.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonCloudWatchEventsClient Configuration Object</param>
public AmazonCloudWatchEventsClient(AmazonCloudWatchEventsConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonCloudWatchEventsClient(AWSCredentials credentials)
: this(credentials, new AmazonCloudWatchEventsConfig())
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonCloudWatchEventsClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonCloudWatchEventsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Credentials and an
/// AmazonCloudWatchEventsClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonCloudWatchEventsClient Configuration Object</param>
public AmazonCloudWatchEventsClient(AWSCredentials credentials, AmazonCloudWatchEventsConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudWatchEventsConfig())
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudWatchEventsConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonCloudWatchEventsClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonCloudWatchEventsClient Configuration Object</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudWatchEventsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudWatchEventsConfig())
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudWatchEventsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonCloudWatchEventsClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonCloudWatchEventsClient Configuration Object</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudWatchEventsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customize the pipeline
/// </summary>
/// <param name="pipeline"></param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudWatchEventsEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region ActivateEventSource
/// <summary>
/// Activates a partner event source that has been deactivated. Once activated, your matching
/// event bus will start receiving events from the event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ActivateEventSource service method.</param>
///
/// <returns>The response from the ActivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ActivateEventSource">REST API Reference for ActivateEventSource Operation</seealso>
public virtual ActivateEventSourceResponse ActivateEventSource(ActivateEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ActivateEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ActivateEventSourceResponseUnmarshaller.Instance;
return Invoke<ActivateEventSourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ActivateEventSource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ActivateEventSource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndActivateEventSource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ActivateEventSource">REST API Reference for ActivateEventSource Operation</seealso>
public virtual IAsyncResult BeginActivateEventSource(ActivateEventSourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ActivateEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ActivateEventSourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ActivateEventSource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginActivateEventSource.</param>
///
/// <returns>Returns a ActivateEventSourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ActivateEventSource">REST API Reference for ActivateEventSource Operation</seealso>
public virtual ActivateEventSourceResponse EndActivateEventSource(IAsyncResult asyncResult)
{
return EndInvoke<ActivateEventSourceResponse>(asyncResult);
}
#endregion
#region CancelReplay
/// <summary>
/// Cancels the specified replay.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CancelReplay service method.</param>
///
/// <returns>The response from the CancelReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.IllegalStatusException">
/// An error occurred because a replay can be canceled only when the state is Running
/// or Starting.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplay">REST API Reference for CancelReplay Operation</seealso>
public virtual CancelReplayResponse CancelReplay(CancelReplayRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelReplayResponseUnmarshaller.Instance;
return Invoke<CancelReplayResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CancelReplay operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CancelReplay operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelReplay
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplay">REST API Reference for CancelReplay Operation</seealso>
public virtual IAsyncResult BeginCancelReplay(CancelReplayRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelReplayResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CancelReplay operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelReplay.</param>
///
/// <returns>Returns a CancelReplayResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplay">REST API Reference for CancelReplay Operation</seealso>
public virtual CancelReplayResponse EndCancelReplay(IAsyncResult asyncResult)
{
return EndInvoke<CancelReplayResponse>(asyncResult);
}
#endregion
#region CreateApiDestination
/// <summary>
/// Creates an API destination, which is an HTTP invocation endpoint configured as a target
/// for events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApiDestination service method.</param>
///
/// <returns>The response from the CreateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateApiDestination">REST API Reference for CreateApiDestination Operation</seealso>
public virtual CreateApiDestinationResponse CreateApiDestination(CreateApiDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateApiDestinationResponseUnmarshaller.Instance;
return Invoke<CreateApiDestinationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateApiDestination operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateApiDestination operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateApiDestination
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateApiDestination">REST API Reference for CreateApiDestination Operation</seealso>
public virtual IAsyncResult BeginCreateApiDestination(CreateApiDestinationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateApiDestinationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateApiDestination operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateApiDestination.</param>
///
/// <returns>Returns a CreateApiDestinationResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateApiDestination">REST API Reference for CreateApiDestination Operation</seealso>
public virtual CreateApiDestinationResponse EndCreateApiDestination(IAsyncResult asyncResult)
{
return EndInvoke<CreateApiDestinationResponse>(asyncResult);
}
#endregion
#region CreateArchive
/// <summary>
/// Creates an archive of events with the specified settings. When you create an archive,
/// incoming events might not immediately start being sent to the archive. Allow a short
/// period of time for changes to take effect. If you do not specify a pattern to filter
/// events sent to the archive, all events are sent to the archive except replayed events.
/// Replayed events are not sent to an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateArchive service method.</param>
///
/// <returns>The response from the CreateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchive">REST API Reference for CreateArchive Operation</seealso>
public virtual CreateArchiveResponse CreateArchive(CreateArchiveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateArchiveResponseUnmarshaller.Instance;
return Invoke<CreateArchiveResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateArchive operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateArchive operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateArchive
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchive">REST API Reference for CreateArchive Operation</seealso>
public virtual IAsyncResult BeginCreateArchive(CreateArchiveRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateArchiveResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateArchive operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateArchive.</param>
///
/// <returns>Returns a CreateArchiveResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchive">REST API Reference for CreateArchive Operation</seealso>
public virtual CreateArchiveResponse EndCreateArchive(IAsyncResult asyncResult)
{
return EndInvoke<CreateArchiveResponse>(asyncResult);
}
#endregion
#region CreateConnection
/// <summary>
/// Creates a connection. A connection defines the authorization type and credentials
/// to use for authorization with an API destination HTTP endpoint.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateConnection service method.</param>
///
/// <returns>The response from the CreateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
public virtual CreateConnectionResponse CreateConnection(CreateConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateConnectionResponseUnmarshaller.Instance;
return Invoke<CreateConnectionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateConnection operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
public virtual IAsyncResult BeginCreateConnection(CreateConnectionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateConnectionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateConnection.</param>
///
/// <returns>Returns a CreateConnectionResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
public virtual CreateConnectionResponse EndCreateConnection(IAsyncResult asyncResult)
{
return EndInvoke<CreateConnectionResponse>(asyncResult);
}
#endregion
#region CreateEventBus
/// <summary>
/// Creates a new event bus within your account. This can be a custom event bus which
/// you can use to receive events from your custom applications and services, or it can
/// be a partner event bus which can be matched to a partner event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventBus service method.</param>
///
/// <returns>The response from the CreateEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBus">REST API Reference for CreateEventBus Operation</seealso>
public virtual CreateEventBusResponse CreateEventBus(CreateEventBusRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEventBusResponseUnmarshaller.Instance;
return Invoke<CreateEventBusResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateEventBus operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateEventBus operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateEventBus
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBus">REST API Reference for CreateEventBus Operation</seealso>
public virtual IAsyncResult BeginCreateEventBus(CreateEventBusRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEventBusResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateEventBus operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateEventBus.</param>
///
/// <returns>Returns a CreateEventBusResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBus">REST API Reference for CreateEventBus Operation</seealso>
public virtual CreateEventBusResponse EndCreateEventBus(IAsyncResult asyncResult)
{
return EndInvoke<CreateEventBusResponse>(asyncResult);
}
#endregion
#region CreatePartnerEventSource
/// <summary>
/// Called by an SaaS partner to create a partner event source. This operation is not
/// used by Amazon Web Services customers.
///
///
/// <para>
/// Each partner event source can be used by one Amazon Web Services account to create
/// a matching partner event bus in that Amazon Web Services account. A SaaS partner must
/// create one partner event source for each Amazon Web Services account that wants to
/// receive those event types.
/// </para>
///
/// <para>
/// A partner event source creates events based on resources within the SaaS partner's
/// service or application.
/// </para>
///
/// <para>
/// An Amazon Web Services account that creates a partner event bus that matches the partner
/// event source can use that event bus to receive events from the partner, and then process
/// them using Amazon Web Services Events rules and targets.
/// </para>
///
/// <para>
/// Partner event source names follow this format:
/// </para>
///
/// <para>
/// <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i> </code>
/// </para>
///
/// <para>
/// <i>partner_name</i> is determined during partner registration and identifies the
/// partner to Amazon Web Services customers. <i>event_namespace</i> is determined by
/// the partner and is a way for the partner to categorize their events. <i>event_name</i>
/// is determined by the partner, and should uniquely identify an event-generating resource
/// within the partner system. The combination of <i>event_namespace</i> and <i>event_name</i>
/// should help Amazon Web Services customers decide whether to create an event bus to
/// receive these events.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreatePartnerEventSource service method.</param>
///
/// <returns>The response from the CreatePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSource">REST API Reference for CreatePartnerEventSource Operation</seealso>
public virtual CreatePartnerEventSourceResponse CreatePartnerEventSource(CreatePartnerEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePartnerEventSourceResponseUnmarshaller.Instance;
return Invoke<CreatePartnerEventSourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreatePartnerEventSource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreatePartnerEventSource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePartnerEventSource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSource">REST API Reference for CreatePartnerEventSource Operation</seealso>
public virtual IAsyncResult BeginCreatePartnerEventSource(CreatePartnerEventSourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePartnerEventSourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreatePartnerEventSource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreatePartnerEventSource.</param>
///
/// <returns>Returns a CreatePartnerEventSourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSource">REST API Reference for CreatePartnerEventSource Operation</seealso>
public virtual CreatePartnerEventSourceResponse EndCreatePartnerEventSource(IAsyncResult asyncResult)
{
return EndInvoke<CreatePartnerEventSourceResponse>(asyncResult);
}
#endregion
#region DeactivateEventSource
/// <summary>
/// You can use this operation to temporarily stop receiving events from the specified
/// partner event source. The matching event bus is not deleted.
///
///
/// <para>
/// When you deactivate a partner event source, the source goes into PENDING state. If
/// it remains in PENDING state for more than two weeks, it is deleted.
/// </para>
///
/// <para>
/// To activate a deactivated partner event source, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ActivateEventSource.html">ActivateEventSource</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeactivateEventSource service method.</param>
///
/// <returns>The response from the DeactivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeactivateEventSource">REST API Reference for DeactivateEventSource Operation</seealso>
public virtual DeactivateEventSourceResponse DeactivateEventSource(DeactivateEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeactivateEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeactivateEventSourceResponseUnmarshaller.Instance;
return Invoke<DeactivateEventSourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeactivateEventSource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeactivateEventSource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeactivateEventSource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeactivateEventSource">REST API Reference for DeactivateEventSource Operation</seealso>
public virtual IAsyncResult BeginDeactivateEventSource(DeactivateEventSourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeactivateEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeactivateEventSourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeactivateEventSource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeactivateEventSource.</param>
///
/// <returns>Returns a DeactivateEventSourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeactivateEventSource">REST API Reference for DeactivateEventSource Operation</seealso>
public virtual DeactivateEventSourceResponse EndDeactivateEventSource(IAsyncResult asyncResult)
{
return EndInvoke<DeactivateEventSourceResponse>(asyncResult);
}
#endregion
#region DeauthorizeConnection
/// <summary>
/// Removes all authorization parameters from the connection. This lets you remove the
/// secret from the connection so you can reuse it without having to create a new connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeauthorizeConnection service method.</param>
///
/// <returns>The response from the DeauthorizeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeauthorizeConnection">REST API Reference for DeauthorizeConnection Operation</seealso>
public virtual DeauthorizeConnectionResponse DeauthorizeConnection(DeauthorizeConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeauthorizeConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeauthorizeConnectionResponseUnmarshaller.Instance;
return Invoke<DeauthorizeConnectionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeauthorizeConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeauthorizeConnection operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeauthorizeConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeauthorizeConnection">REST API Reference for DeauthorizeConnection Operation</seealso>
public virtual IAsyncResult BeginDeauthorizeConnection(DeauthorizeConnectionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeauthorizeConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeauthorizeConnectionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeauthorizeConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeauthorizeConnection.</param>
///
/// <returns>Returns a DeauthorizeConnectionResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeauthorizeConnection">REST API Reference for DeauthorizeConnection Operation</seealso>
public virtual DeauthorizeConnectionResponse EndDeauthorizeConnection(IAsyncResult asyncResult)
{
return EndInvoke<DeauthorizeConnectionResponse>(asyncResult);
}
#endregion
#region DeleteApiDestination
/// <summary>
/// Deletes the specified API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApiDestination service method.</param>
///
/// <returns>The response from the DeleteApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteApiDestination">REST API Reference for DeleteApiDestination Operation</seealso>
public virtual DeleteApiDestinationResponse DeleteApiDestination(DeleteApiDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApiDestinationResponseUnmarshaller.Instance;
return Invoke<DeleteApiDestinationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteApiDestination operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteApiDestination operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteApiDestination
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteApiDestination">REST API Reference for DeleteApiDestination Operation</seealso>
public virtual IAsyncResult BeginDeleteApiDestination(DeleteApiDestinationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApiDestinationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteApiDestination operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteApiDestination.</param>
///
/// <returns>Returns a DeleteApiDestinationResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteApiDestination">REST API Reference for DeleteApiDestination Operation</seealso>
public virtual DeleteApiDestinationResponse EndDeleteApiDestination(IAsyncResult asyncResult)
{
return EndInvoke<DeleteApiDestinationResponse>(asyncResult);
}
#endregion
#region DeleteArchive
/// <summary>
/// Deletes the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteArchive service method.</param>
///
/// <returns>The response from the DeleteArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchive">REST API Reference for DeleteArchive Operation</seealso>
public virtual DeleteArchiveResponse DeleteArchive(DeleteArchiveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteArchiveResponseUnmarshaller.Instance;
return Invoke<DeleteArchiveResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteArchive operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteArchive operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteArchive
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchive">REST API Reference for DeleteArchive Operation</seealso>
public virtual IAsyncResult BeginDeleteArchive(DeleteArchiveRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteArchiveResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteArchive operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteArchive.</param>
///
/// <returns>Returns a DeleteArchiveResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchive">REST API Reference for DeleteArchive Operation</seealso>
public virtual DeleteArchiveResponse EndDeleteArchive(IAsyncResult asyncResult)
{
return EndInvoke<DeleteArchiveResponse>(asyncResult);
}
#endregion
#region DeleteConnection
/// <summary>
/// Deletes a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection service method.</param>
///
/// <returns>The response from the DeleteConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
public virtual DeleteConnectionResponse DeleteConnection(DeleteConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteConnectionResponseUnmarshaller.Instance;
return Invoke<DeleteConnectionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
public virtual IAsyncResult BeginDeleteConnection(DeleteConnectionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteConnectionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteConnection.</param>
///
/// <returns>Returns a DeleteConnectionResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
public virtual DeleteConnectionResponse EndDeleteConnection(IAsyncResult asyncResult)
{
return EndInvoke<DeleteConnectionResponse>(asyncResult);
}
#endregion
#region DeleteEventBus
/// <summary>
/// Deletes the specified custom event bus or partner event bus. All rules associated
/// with this event bus need to be deleted. You can't delete your account's default event
/// bus.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventBus service method.</param>
///
/// <returns>The response from the DeleteEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteEventBus">REST API Reference for DeleteEventBus Operation</seealso>
public virtual DeleteEventBusResponse DeleteEventBus(DeleteEventBusRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEventBusResponseUnmarshaller.Instance;
return Invoke<DeleteEventBusResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteEventBus operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteEventBus operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteEventBus
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteEventBus">REST API Reference for DeleteEventBus Operation</seealso>
public virtual IAsyncResult BeginDeleteEventBus(DeleteEventBusRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEventBusResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteEventBus operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteEventBus.</param>
///
/// <returns>Returns a DeleteEventBusResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteEventBus">REST API Reference for DeleteEventBus Operation</seealso>
public virtual DeleteEventBusResponse EndDeleteEventBus(IAsyncResult asyncResult)
{
return EndInvoke<DeleteEventBusResponse>(asyncResult);
}
#endregion
#region DeletePartnerEventSource
/// <summary>
/// This operation is used by SaaS partners to delete a partner event source. This operation
/// is not used by Amazon Web Services customers.
///
///
/// <para>
/// When you delete an event source, the status of the corresponding partner event bus
/// in the Amazon Web Services customer account becomes DELETED.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeletePartnerEventSource service method.</param>
///
/// <returns>The response from the DeletePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeletePartnerEventSource">REST API Reference for DeletePartnerEventSource Operation</seealso>
public virtual DeletePartnerEventSourceResponse DeletePartnerEventSource(DeletePartnerEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePartnerEventSourceResponseUnmarshaller.Instance;
return Invoke<DeletePartnerEventSourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeletePartnerEventSource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeletePartnerEventSource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeletePartnerEventSource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeletePartnerEventSource">REST API Reference for DeletePartnerEventSource Operation</seealso>
public virtual IAsyncResult BeginDeletePartnerEventSource(DeletePartnerEventSourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePartnerEventSourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeletePartnerEventSource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeletePartnerEventSource.</param>
///
/// <returns>Returns a DeletePartnerEventSourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeletePartnerEventSource">REST API Reference for DeletePartnerEventSource Operation</seealso>
public virtual DeletePartnerEventSourceResponse EndDeletePartnerEventSource(IAsyncResult asyncResult)
{
return EndInvoke<DeletePartnerEventSourceResponse>(asyncResult);
}
#endregion
#region DeleteRule
/// <summary>
/// Deletes the specified rule.
///
///
/// <para>
/// Before you can delete the rule, you must remove all targets, using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemoveTargets.html">RemoveTargets</a>.
/// </para>
///
/// <para>
/// When you delete a rule, incoming events might continue to match to the deleted rule.
/// Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// If you call delete rule multiple times for the same rule, all calls will succeed.
/// When you call delete rule for a non-existent custom eventbus, <code>ResourceNotFoundException</code>
/// is returned.
/// </para>
///
/// <para>
/// Managed rules are rules created and managed by another Amazon Web Services service
/// on your behalf. These rules are created by those other Amazon Web Services services
/// to support functionality in those services. You can delete these rules using the <code>Force</code>
/// option, but you should do so only if you are sure the other service is not still using
/// that rule.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteRule service method.</param>
///
/// <returns>The response from the DeleteRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule">REST API Reference for DeleteRule Operation</seealso>
public virtual DeleteRuleResponse DeleteRule(DeleteRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRuleResponseUnmarshaller.Instance;
return Invoke<DeleteRuleResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteRule operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteRule operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteRule
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule">REST API Reference for DeleteRule Operation</seealso>
public virtual IAsyncResult BeginDeleteRule(DeleteRuleRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRuleResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteRule operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteRule.</param>
///
/// <returns>Returns a DeleteRuleResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule">REST API Reference for DeleteRule Operation</seealso>
public virtual DeleteRuleResponse EndDeleteRule(IAsyncResult asyncResult)
{
return EndInvoke<DeleteRuleResponse>(asyncResult);
}
#endregion
#region DescribeApiDestination
/// <summary>
/// Retrieves details about an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApiDestination service method.</param>
///
/// <returns>The response from the DescribeApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeApiDestination">REST API Reference for DescribeApiDestination Operation</seealso>
public virtual DescribeApiDestinationResponse DescribeApiDestination(DescribeApiDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeApiDestinationResponseUnmarshaller.Instance;
return Invoke<DescribeApiDestinationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeApiDestination operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeApiDestination operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeApiDestination
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeApiDestination">REST API Reference for DescribeApiDestination Operation</seealso>
public virtual IAsyncResult BeginDescribeApiDestination(DescribeApiDestinationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeApiDestinationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeApiDestination operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeApiDestination.</param>
///
/// <returns>Returns a DescribeApiDestinationResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeApiDestination">REST API Reference for DescribeApiDestination Operation</seealso>
public virtual DescribeApiDestinationResponse EndDescribeApiDestination(IAsyncResult asyncResult)
{
return EndInvoke<DescribeApiDestinationResponse>(asyncResult);
}
#endregion
#region DescribeArchive
/// <summary>
/// Retrieves details about an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeArchive service method.</param>
///
/// <returns>The response from the DescribeArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchive">REST API Reference for DescribeArchive Operation</seealso>
public virtual DescribeArchiveResponse DescribeArchive(DescribeArchiveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeArchiveResponseUnmarshaller.Instance;
return Invoke<DescribeArchiveResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeArchive operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeArchive operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeArchive
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchive">REST API Reference for DescribeArchive Operation</seealso>
public virtual IAsyncResult BeginDescribeArchive(DescribeArchiveRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeArchiveResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeArchive operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeArchive.</param>
///
/// <returns>Returns a DescribeArchiveResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchive">REST API Reference for DescribeArchive Operation</seealso>
public virtual DescribeArchiveResponse EndDescribeArchive(IAsyncResult asyncResult)
{
return EndInvoke<DescribeArchiveResponse>(asyncResult);
}
#endregion
#region DescribeConnection
/// <summary>
/// Retrieves details about a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConnection service method.</param>
///
/// <returns>The response from the DescribeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeConnection">REST API Reference for DescribeConnection Operation</seealso>
public virtual DescribeConnectionResponse DescribeConnection(DescribeConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeConnectionResponseUnmarshaller.Instance;
return Invoke<DescribeConnectionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeConnection operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeConnection">REST API Reference for DescribeConnection Operation</seealso>
public virtual IAsyncResult BeginDescribeConnection(DescribeConnectionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeConnectionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeConnection.</param>
///
/// <returns>Returns a DescribeConnectionResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeConnection">REST API Reference for DescribeConnection Operation</seealso>
public virtual DescribeConnectionResponse EndDescribeConnection(IAsyncResult asyncResult)
{
return EndInvoke<DescribeConnectionResponse>(asyncResult);
}
#endregion
#region DescribeEventBus
/// <summary>
/// Displays details about an event bus in your account. This can include the external
/// Amazon Web Services accounts that are permitted to write events to your default event
/// bus, and the associated policy. For custom event buses and partner event buses, it
/// displays the name, ARN, policy, state, and creation time.
///
///
/// <para>
/// To enable your account to receive events from other accounts on its default event
/// bus, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// For more information about partner event buses, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventBus service method.</param>
///
/// <returns>The response from the DescribeEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus">REST API Reference for DescribeEventBus Operation</seealso>
public virtual DescribeEventBusResponse DescribeEventBus(DescribeEventBusRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventBusResponseUnmarshaller.Instance;
return Invoke<DescribeEventBusResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeEventBus operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEventBus operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeEventBus
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus">REST API Reference for DescribeEventBus Operation</seealso>
public virtual IAsyncResult BeginDescribeEventBus(DescribeEventBusRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventBusResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeEventBus operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEventBus.</param>
///
/// <returns>Returns a DescribeEventBusResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus">REST API Reference for DescribeEventBus Operation</seealso>
public virtual DescribeEventBusResponse EndDescribeEventBus(IAsyncResult asyncResult)
{
return EndInvoke<DescribeEventBusResponse>(asyncResult);
}
#endregion
#region DescribeEventSource
/// <summary>
/// This operation lists details about a partner event source that is shared with your
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventSource service method.</param>
///
/// <returns>The response from the DescribeEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSource">REST API Reference for DescribeEventSource Operation</seealso>
public virtual DescribeEventSourceResponse DescribeEventSource(DescribeEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventSourceResponseUnmarshaller.Instance;
return Invoke<DescribeEventSourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeEventSource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEventSource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeEventSource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSource">REST API Reference for DescribeEventSource Operation</seealso>
public virtual IAsyncResult BeginDescribeEventSource(DescribeEventSourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventSourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeEventSource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEventSource.</param>
///
/// <returns>Returns a DescribeEventSourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSource">REST API Reference for DescribeEventSource Operation</seealso>
public virtual DescribeEventSourceResponse EndDescribeEventSource(IAsyncResult asyncResult)
{
return EndInvoke<DescribeEventSourceResponse>(asyncResult);
}
#endregion
#region DescribePartnerEventSource
/// <summary>
/// An SaaS partner can use this operation to list details about a partner event source
/// that they have created. Amazon Web Services customers do not use this operation. Instead,
/// Amazon Web Services customers can use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventSource.html">DescribeEventSource</a>
/// to see details about a partner event source that is shared with them.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribePartnerEventSource service method.</param>
///
/// <returns>The response from the DescribePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribePartnerEventSource">REST API Reference for DescribePartnerEventSource Operation</seealso>
public virtual DescribePartnerEventSourceResponse DescribePartnerEventSource(DescribePartnerEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePartnerEventSourceResponseUnmarshaller.Instance;
return Invoke<DescribePartnerEventSourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribePartnerEventSource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribePartnerEventSource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribePartnerEventSource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribePartnerEventSource">REST API Reference for DescribePartnerEventSource Operation</seealso>
public virtual IAsyncResult BeginDescribePartnerEventSource(DescribePartnerEventSourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePartnerEventSourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribePartnerEventSource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribePartnerEventSource.</param>
///
/// <returns>Returns a DescribePartnerEventSourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribePartnerEventSource">REST API Reference for DescribePartnerEventSource Operation</seealso>
public virtual DescribePartnerEventSourceResponse EndDescribePartnerEventSource(IAsyncResult asyncResult)
{
return EndInvoke<DescribePartnerEventSourceResponse>(asyncResult);
}
#endregion
#region DescribeReplay
/// <summary>
/// Retrieves details about a replay. Use <code>DescribeReplay</code> to determine the
/// progress of a running replay. A replay processes events to replay based on the time
/// in the event, and replays them using 1 minute intervals. If you use <code>StartReplay</code>
/// and specify an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers
/// a 20 minute time range, the events are replayed from the first minute of that 20 minute
/// range first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeReplay service method.</param>
///
/// <returns>The response from the DescribeReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplay">REST API Reference for DescribeReplay Operation</seealso>
public virtual DescribeReplayResponse DescribeReplay(DescribeReplayRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeReplayResponseUnmarshaller.Instance;
return Invoke<DescribeReplayResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeReplay operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeReplay operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeReplay
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplay">REST API Reference for DescribeReplay Operation</seealso>
public virtual IAsyncResult BeginDescribeReplay(DescribeReplayRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeReplayResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeReplay operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeReplay.</param>
///
/// <returns>Returns a DescribeReplayResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplay">REST API Reference for DescribeReplay Operation</seealso>
public virtual DescribeReplayResponse EndDescribeReplay(IAsyncResult asyncResult)
{
return EndInvoke<DescribeReplayResponse>(asyncResult);
}
#endregion
#region DescribeRule
/// <summary>
/// Describes the specified rule.
///
///
/// <para>
/// DescribeRule does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeRule service method.</param>
///
/// <returns>The response from the DescribeRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule">REST API Reference for DescribeRule Operation</seealso>
public virtual DescribeRuleResponse DescribeRule(DescribeRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeRuleResponseUnmarshaller.Instance;
return Invoke<DescribeRuleResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeRule operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeRule operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeRule
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule">REST API Reference for DescribeRule Operation</seealso>
public virtual IAsyncResult BeginDescribeRule(DescribeRuleRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeRuleResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeRule operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeRule.</param>
///
/// <returns>Returns a DescribeRuleResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule">REST API Reference for DescribeRule Operation</seealso>
public virtual DescribeRuleResponse EndDescribeRule(IAsyncResult asyncResult)
{
return EndInvoke<DescribeRuleResponse>(asyncResult);
}
#endregion
#region DisableRule
/// <summary>
/// Disables the specified rule. A disabled rule won't match any events, and won't self-trigger
/// if it has a schedule expression.
///
///
/// <para>
/// When you disable a rule, incoming events might continue to match to the disabled rule.
/// Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRule service method.</param>
///
/// <returns>The response from the DisableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule">REST API Reference for DisableRule Operation</seealso>
public virtual DisableRuleResponse DisableRule(DisableRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableRuleResponseUnmarshaller.Instance;
return Invoke<DisableRuleResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DisableRule operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DisableRule operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableRule
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule">REST API Reference for DisableRule Operation</seealso>
public virtual IAsyncResult BeginDisableRule(DisableRuleRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableRuleResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DisableRule operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisableRule.</param>
///
/// <returns>Returns a DisableRuleResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule">REST API Reference for DisableRule Operation</seealso>
public virtual DisableRuleResponse EndDisableRule(IAsyncResult asyncResult)
{
return EndInvoke<DisableRuleResponse>(asyncResult);
}
#endregion
#region EnableRule
/// <summary>
/// Enables the specified rule. If the rule does not exist, the operation fails.
///
///
/// <para>
/// When you enable a rule, incoming events might not immediately start matching to a
/// newly enabled rule. Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRule service method.</param>
///
/// <returns>The response from the EnableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule">REST API Reference for EnableRule Operation</seealso>
public virtual EnableRuleResponse EnableRule(EnableRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableRuleResponseUnmarshaller.Instance;
return Invoke<EnableRuleResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the EnableRule operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the EnableRule operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableRule
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule">REST API Reference for EnableRule Operation</seealso>
public virtual IAsyncResult BeginEnableRule(EnableRuleRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableRuleResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the EnableRule operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnableRule.</param>
///
/// <returns>Returns a EnableRuleResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule">REST API Reference for EnableRule Operation</seealso>
public virtual EnableRuleResponse EndEnableRule(IAsyncResult asyncResult)
{
return EndInvoke<EnableRuleResponse>(asyncResult);
}
#endregion
#region ListApiDestinations
/// <summary>
/// Retrieves a list of API destination in the account in the current Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApiDestinations service method.</param>
///
/// <returns>The response from the ListApiDestinations service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListApiDestinations">REST API Reference for ListApiDestinations Operation</seealso>
public virtual ListApiDestinationsResponse ListApiDestinations(ListApiDestinationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApiDestinationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApiDestinationsResponseUnmarshaller.Instance;
return Invoke<ListApiDestinationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListApiDestinations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListApiDestinations operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListApiDestinations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListApiDestinations">REST API Reference for ListApiDestinations Operation</seealso>
public virtual IAsyncResult BeginListApiDestinations(ListApiDestinationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApiDestinationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApiDestinationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListApiDestinations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListApiDestinations.</param>
///
/// <returns>Returns a ListApiDestinationsResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListApiDestinations">REST API Reference for ListApiDestinations Operation</seealso>
public virtual ListApiDestinationsResponse EndListApiDestinations(IAsyncResult asyncResult)
{
return EndInvoke<ListApiDestinationsResponse>(asyncResult);
}
#endregion
#region ListArchives
/// <summary>
/// Lists your archives. You can either list all the archives or you can provide a prefix
/// to match to the archive names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListArchives service method.</param>
///
/// <returns>The response from the ListArchives service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchives">REST API Reference for ListArchives Operation</seealso>
public virtual ListArchivesResponse ListArchives(ListArchivesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListArchivesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListArchivesResponseUnmarshaller.Instance;
return Invoke<ListArchivesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListArchives operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListArchives operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListArchives
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchives">REST API Reference for ListArchives Operation</seealso>
public virtual IAsyncResult BeginListArchives(ListArchivesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListArchivesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListArchivesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListArchives operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListArchives.</param>
///
/// <returns>Returns a ListArchivesResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchives">REST API Reference for ListArchives Operation</seealso>
public virtual ListArchivesResponse EndListArchives(IAsyncResult asyncResult)
{
return EndInvoke<ListArchivesResponse>(asyncResult);
}
#endregion
#region ListConnections
/// <summary>
/// Retrieves a list of connections from the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConnections service method.</param>
///
/// <returns>The response from the ListConnections service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListConnections">REST API Reference for ListConnections Operation</seealso>
public virtual ListConnectionsResponse ListConnections(ListConnectionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConnectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConnectionsResponseUnmarshaller.Instance;
return Invoke<ListConnectionsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListConnections operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListConnections operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListConnections
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListConnections">REST API Reference for ListConnections Operation</seealso>
public virtual IAsyncResult BeginListConnections(ListConnectionsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConnectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConnectionsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListConnections operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListConnections.</param>
///
/// <returns>Returns a ListConnectionsResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListConnections">REST API Reference for ListConnections Operation</seealso>
public virtual ListConnectionsResponse EndListConnections(IAsyncResult asyncResult)
{
return EndInvoke<ListConnectionsResponse>(asyncResult);
}
#endregion
#region ListEventBuses
/// <summary>
/// Lists all the event buses in your account, including the default event bus, custom
/// event buses, and partner event buses.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventBuses service method.</param>
///
/// <returns>The response from the ListEventBuses service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventBuses">REST API Reference for ListEventBuses Operation</seealso>
public virtual ListEventBusesResponse ListEventBuses(ListEventBusesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventBusesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventBusesResponseUnmarshaller.Instance;
return Invoke<ListEventBusesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListEventBuses operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListEventBuses operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEventBuses
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventBuses">REST API Reference for ListEventBuses Operation</seealso>
public virtual IAsyncResult BeginListEventBuses(ListEventBusesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventBusesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventBusesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListEventBuses operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListEventBuses.</param>
///
/// <returns>Returns a ListEventBusesResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventBuses">REST API Reference for ListEventBuses Operation</seealso>
public virtual ListEventBusesResponse EndListEventBuses(IAsyncResult asyncResult)
{
return EndInvoke<ListEventBusesResponse>(asyncResult);
}
#endregion
#region ListEventSources
/// <summary>
/// You can use this to see all the partner event sources that have been shared with your
/// Amazon Web Services account. For more information about partner event sources, see
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventSources service method.</param>
///
/// <returns>The response from the ListEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventSources">REST API Reference for ListEventSources Operation</seealso>
public virtual ListEventSourcesResponse ListEventSources(ListEventSourcesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventSourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventSourcesResponseUnmarshaller.Instance;
return Invoke<ListEventSourcesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListEventSources operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListEventSources operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEventSources
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventSources">REST API Reference for ListEventSources Operation</seealso>
public virtual IAsyncResult BeginListEventSources(ListEventSourcesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventSourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventSourcesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListEventSources operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListEventSources.</param>
///
/// <returns>Returns a ListEventSourcesResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventSources">REST API Reference for ListEventSources Operation</seealso>
public virtual ListEventSourcesResponse EndListEventSources(IAsyncResult asyncResult)
{
return EndInvoke<ListEventSourcesResponse>(asyncResult);
}
#endregion
#region ListPartnerEventSourceAccounts
/// <summary>
/// An SaaS partner can use this operation to display the Amazon Web Services account
/// ID that a particular partner event source name is associated with. This operation
/// is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSourceAccounts service method.</param>
///
/// <returns>The response from the ListPartnerEventSourceAccounts service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSourceAccounts">REST API Reference for ListPartnerEventSourceAccounts Operation</seealso>
public virtual ListPartnerEventSourceAccountsResponse ListPartnerEventSourceAccounts(ListPartnerEventSourceAccountsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPartnerEventSourceAccountsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPartnerEventSourceAccountsResponseUnmarshaller.Instance;
return Invoke<ListPartnerEventSourceAccountsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListPartnerEventSourceAccounts operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSourceAccounts operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPartnerEventSourceAccounts
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSourceAccounts">REST API Reference for ListPartnerEventSourceAccounts Operation</seealso>
public virtual IAsyncResult BeginListPartnerEventSourceAccounts(ListPartnerEventSourceAccountsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPartnerEventSourceAccountsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPartnerEventSourceAccountsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListPartnerEventSourceAccounts operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPartnerEventSourceAccounts.</param>
///
/// <returns>Returns a ListPartnerEventSourceAccountsResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSourceAccounts">REST API Reference for ListPartnerEventSourceAccounts Operation</seealso>
public virtual ListPartnerEventSourceAccountsResponse EndListPartnerEventSourceAccounts(IAsyncResult asyncResult)
{
return EndInvoke<ListPartnerEventSourceAccountsResponse>(asyncResult);
}
#endregion
#region ListPartnerEventSources
/// <summary>
/// An SaaS partner can use this operation to list all the partner event source names
/// that they have created. This operation is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSources service method.</param>
///
/// <returns>The response from the ListPartnerEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSources">REST API Reference for ListPartnerEventSources Operation</seealso>
public virtual ListPartnerEventSourcesResponse ListPartnerEventSources(ListPartnerEventSourcesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPartnerEventSourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPartnerEventSourcesResponseUnmarshaller.Instance;
return Invoke<ListPartnerEventSourcesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListPartnerEventSources operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSources operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPartnerEventSources
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSources">REST API Reference for ListPartnerEventSources Operation</seealso>
public virtual IAsyncResult BeginListPartnerEventSources(ListPartnerEventSourcesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPartnerEventSourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPartnerEventSourcesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListPartnerEventSources operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPartnerEventSources.</param>
///
/// <returns>Returns a ListPartnerEventSourcesResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSources">REST API Reference for ListPartnerEventSources Operation</seealso>
public virtual ListPartnerEventSourcesResponse EndListPartnerEventSources(IAsyncResult asyncResult)
{
return EndInvoke<ListPartnerEventSourcesResponse>(asyncResult);
}
#endregion
#region ListReplays
/// <summary>
/// Lists your replays. You can either list all the replays or you can provide a prefix
/// to match to the replay names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListReplays service method.</param>
///
/// <returns>The response from the ListReplays service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplays">REST API Reference for ListReplays Operation</seealso>
public virtual ListReplaysResponse ListReplays(ListReplaysRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListReplaysRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListReplaysResponseUnmarshaller.Instance;
return Invoke<ListReplaysResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListReplays operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListReplays operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListReplays
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplays">REST API Reference for ListReplays Operation</seealso>
public virtual IAsyncResult BeginListReplays(ListReplaysRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListReplaysRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListReplaysResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListReplays operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListReplays.</param>
///
/// <returns>Returns a ListReplaysResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplays">REST API Reference for ListReplays Operation</seealso>
public virtual ListReplaysResponse EndListReplays(IAsyncResult asyncResult)
{
return EndInvoke<ListReplaysResponse>(asyncResult);
}
#endregion
#region ListRuleNamesByTarget
/// <summary>
/// Lists the rules for the specified target. You can see which of the rules in Amazon
/// EventBridge can invoke a specific target in your account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRuleNamesByTarget service method.</param>
///
/// <returns>The response from the ListRuleNamesByTarget service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget">REST API Reference for ListRuleNamesByTarget Operation</seealso>
public virtual ListRuleNamesByTargetResponse ListRuleNamesByTarget(ListRuleNamesByTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRuleNamesByTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRuleNamesByTargetResponseUnmarshaller.Instance;
return Invoke<ListRuleNamesByTargetResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListRuleNamesByTarget operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListRuleNamesByTarget operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListRuleNamesByTarget
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget">REST API Reference for ListRuleNamesByTarget Operation</seealso>
public virtual IAsyncResult BeginListRuleNamesByTarget(ListRuleNamesByTargetRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRuleNamesByTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRuleNamesByTargetResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListRuleNamesByTarget operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListRuleNamesByTarget.</param>
///
/// <returns>Returns a ListRuleNamesByTargetResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget">REST API Reference for ListRuleNamesByTarget Operation</seealso>
public virtual ListRuleNamesByTargetResponse EndListRuleNamesByTarget(IAsyncResult asyncResult)
{
return EndInvoke<ListRuleNamesByTargetResponse>(asyncResult);
}
#endregion
#region ListRules
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
public virtual ListRulesResponse ListRules()
{
return ListRules(new ListRulesRequest());
}
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRules service method.</param>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
public virtual ListRulesResponse ListRules(ListRulesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRulesResponseUnmarshaller.Instance;
return Invoke<ListRulesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListRules operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListRules operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListRules
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
public virtual IAsyncResult BeginListRules(ListRulesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRulesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListRules operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListRules.</param>
///
/// <returns>Returns a ListRulesResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
public virtual ListRulesResponse EndListRules(IAsyncResult asyncResult)
{
return EndInvoke<ListRulesResponse>(asyncResult);
}
#endregion
#region ListTagsForResource
/// <summary>
/// Displays the tags associated with an EventBridge resource. In EventBridge, rules and
/// event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke<ListTagsForResourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param>
///
/// <returns>Returns a ListTagsForResourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult)
{
return EndInvoke<ListTagsForResourceResponse>(asyncResult);
}
#endregion
#region ListTargetsByRule
/// <summary>
/// Lists the targets assigned to the specified rule.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTargetsByRule service method.</param>
///
/// <returns>The response from the ListTargetsByRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule">REST API Reference for ListTargetsByRule Operation</seealso>
public virtual ListTargetsByRuleResponse ListTargetsByRule(ListTargetsByRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTargetsByRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTargetsByRuleResponseUnmarshaller.Instance;
return Invoke<ListTargetsByRuleResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListTargetsByRule operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListTargetsByRule operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTargetsByRule
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule">REST API Reference for ListTargetsByRule Operation</seealso>
public virtual IAsyncResult BeginListTargetsByRule(ListTargetsByRuleRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTargetsByRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTargetsByRuleResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListTargetsByRule operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTargetsByRule.</param>
///
/// <returns>Returns a ListTargetsByRuleResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule">REST API Reference for ListTargetsByRule Operation</seealso>
public virtual ListTargetsByRuleResponse EndListTargetsByRule(IAsyncResult asyncResult)
{
return EndInvoke<ListTargetsByRuleResponse>(asyncResult);
}
#endregion
#region PutEvents
/// <summary>
/// Sends custom events to Amazon EventBridge so that they can be matched to rules.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutEvents service method.</param>
///
/// <returns>The response from the PutEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents">REST API Reference for PutEvents Operation</seealso>
public virtual PutEventsResponse PutEvents(PutEventsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutEventsResponseUnmarshaller.Instance;
return Invoke<PutEventsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the PutEvents operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutEvents operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutEvents
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents">REST API Reference for PutEvents Operation</seealso>
public virtual IAsyncResult BeginPutEvents(PutEventsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutEventsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the PutEvents operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutEvents.</param>
///
/// <returns>Returns a PutEventsResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents">REST API Reference for PutEvents Operation</seealso>
public virtual PutEventsResponse EndPutEvents(IAsyncResult asyncResult)
{
return EndInvoke<PutEventsResponse>(asyncResult);
}
#endregion
#region PutPartnerEvents
/// <summary>
/// This is used by SaaS partners to write events to a customer's partner event bus. Amazon
/// Web Services customers do not use this operation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPartnerEvents service method.</param>
///
/// <returns>The response from the PutPartnerEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEvents">REST API Reference for PutPartnerEvents Operation</seealso>
public virtual PutPartnerEventsResponse PutPartnerEvents(PutPartnerEventsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutPartnerEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutPartnerEventsResponseUnmarshaller.Instance;
return Invoke<PutPartnerEventsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the PutPartnerEvents operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutPartnerEvents operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutPartnerEvents
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEvents">REST API Reference for PutPartnerEvents Operation</seealso>
public virtual IAsyncResult BeginPutPartnerEvents(PutPartnerEventsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutPartnerEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutPartnerEventsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the PutPartnerEvents operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutPartnerEvents.</param>
///
/// <returns>Returns a PutPartnerEventsResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEvents">REST API Reference for PutPartnerEvents Operation</seealso>
public virtual PutPartnerEventsResponse EndPutPartnerEvents(IAsyncResult asyncResult)
{
return EndInvoke<PutPartnerEventsResponse>(asyncResult);
}
#endregion
#region PutPermission
/// <summary>
/// Running <code>PutPermission</code> permits the specified Amazon Web Services account
/// or Amazon Web Services organization to put events to the specified <i>event bus</i>.
/// Amazon EventBridge (CloudWatch Events) rules in your account are triggered by these
/// events arriving to an event bus in your account.
///
///
/// <para>
/// For another account to send events to your account, that external account must have
/// an EventBridge rule with your account's event bus as a target.
/// </para>
///
/// <para>
/// To enable multiple Amazon Web Services accounts to put events to your event bus, run
/// <code>PutPermission</code> once for each of these accounts. Or, if all the accounts
/// are members of the same Amazon Web Services organization, you can run <code>PutPermission</code>
/// once specifying <code>Principal</code> as "*" and specifying the Amazon Web Services
/// organization ID in <code>Condition</code>, to grant permissions to all accounts in
/// that organization.
/// </para>
///
/// <para>
/// If you grant permissions using an organization, then accounts in that organization
/// must specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code>
/// to add your account's event bus as a target. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// The permission policy on the event bus cannot exceed 10 KB in size.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPermission service method.</param>
///
/// <returns>The response from the PutPermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.PolicyLengthExceededException">
/// The event bus policy is too long. For more information, see the limits.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission">REST API Reference for PutPermission Operation</seealso>
public virtual PutPermissionResponse PutPermission(PutPermissionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutPermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutPermissionResponseUnmarshaller.Instance;
return Invoke<PutPermissionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the PutPermission operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutPermission operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutPermission
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission">REST API Reference for PutPermission Operation</seealso>
public virtual IAsyncResult BeginPutPermission(PutPermissionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutPermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutPermissionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the PutPermission operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutPermission.</param>
///
/// <returns>Returns a PutPermissionResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission">REST API Reference for PutPermission Operation</seealso>
public virtual PutPermissionResponse EndPutPermission(IAsyncResult asyncResult)
{
return EndInvoke<PutPermissionResponse>(asyncResult);
}
#endregion
#region PutRule
/// <summary>
/// Creates or updates the specified rule. Rules are enabled by default, or based on value
/// of the state. You can disable a rule using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DisableRule.html">DisableRule</a>.
///
///
/// <para>
/// A single rule watches for events from a single event bus. Events generated by Amazon
/// Web Services services go to your account's default event bus. Events generated by
/// SaaS partner services or applications go to the matching partner event bus. If you
/// have custom applications or services, you can specify whether their events go to your
/// default event bus or a custom event bus that you have created. For more information,
/// see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
///
/// <para>
/// If you are updating an existing rule, the rule is replaced with what you specify in
/// this <code>PutRule</code> command. If you omit arguments in <code>PutRule</code>,
/// the old values for those arguments are not kept. Instead, they are replaced with null
/// values.
/// </para>
///
/// <para>
/// When you create or update a rule, incoming events might not immediately start matching
/// to new or updated rules. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns
/// are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger
/// based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression,
/// in which case the rule triggers on matching events as well as on a schedule.
/// </para>
///
/// <para>
/// When you initially create a rule, you can optionally assign one or more tags to the
/// rule. Tags can help you organize and categorize your resources. You can also use them
/// to scope user permissions, by granting a user permission to access or change only
/// rules with certain tag values. To use the <code>PutRule</code> operation and assign
/// tags, you must have both the <code>events:PutRule</code> and <code>events:TagResource</code>
/// permissions.
/// </para>
///
/// <para>
/// If you are updating an existing rule, any tags you specify in the <code>PutRule</code>
/// operation are ignored. To update the tags of an existing rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_TagResource.html">TagResource</a>
/// and <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UntagResource.html">UntagResource</a>.
/// </para>
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
///
/// <para>
/// In EventBridge, it is possible to create rules that lead to infinite loops, where
/// a rule is fired repeatedly. For example, a rule might detect that ACLs have changed
/// on an S3 bucket, and trigger software to change them to the desired state. If the
/// rule is not written carefully, the subsequent change to the ACLs fires the rule again,
/// creating an infinite loop.
/// </para>
///
/// <para>
/// To prevent this, write the rules so that the triggered actions do not re-fire the
/// same rule. For example, your rule could fire only if ACLs are found to be in a bad
/// state, instead of after any change.
/// </para>
///
/// <para>
/// An infinite loop can quickly cause higher than expected charges. We recommend that
/// you use budgeting, which alerts you when charges exceed your specified limit. For
/// more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html">Managing
/// Your Costs with Budgets</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutRule service method.</param>
///
/// <returns>The response from the PutRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule">REST API Reference for PutRule Operation</seealso>
public virtual PutRuleResponse PutRule(PutRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutRuleResponseUnmarshaller.Instance;
return Invoke<PutRuleResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the PutRule operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutRule operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutRule
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule">REST API Reference for PutRule Operation</seealso>
public virtual IAsyncResult BeginPutRule(PutRuleRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutRuleResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the PutRule operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutRule.</param>
///
/// <returns>Returns a PutRuleResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule">REST API Reference for PutRule Operation</seealso>
public virtual PutRuleResponse EndPutRule(IAsyncResult asyncResult)
{
return EndInvoke<PutRuleResponse>(asyncResult);
}
#endregion
#region PutTargets
/// <summary>
/// Adds the specified targets to the specified rule, or updates the targets if they are
/// already associated with the rule.
///
///
/// <para>
/// Targets are the resources that are invoked when a rule is triggered.
/// </para>
///
/// <para>
/// You can configure the following as targets for Events:
/// </para>
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html">API
/// destination</a>
/// </para>
/// </li> <li>
/// <para>
/// Amazon API Gateway REST API endpoints
/// </para>
/// </li> <li>
/// <para>
/// API Gateway
/// </para>
/// </li> <li>
/// <para>
/// Batch job queue
/// </para>
/// </li> <li>
/// <para>
/// CloudWatch Logs group
/// </para>
/// </li> <li>
/// <para>
/// CodeBuild project
/// </para>
/// </li> <li>
/// <para>
/// CodePipeline
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>CreateSnapshot</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>RebootInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>StopInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>TerminateInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon ECS tasks
/// </para>
/// </li> <li>
/// <para>
/// Event bus in a different Amazon Web Services account or Region.
/// </para>
///
/// <para>
/// You can use an event bus in the US East (N. Virginia) us-east-1, US West (Oregon)
/// us-west-2, or Europe (Ireland) eu-west-1 Regions as a target for a rule.
/// </para>
/// </li> <li>
/// <para>
/// Firehose delivery stream (Kinesis Data Firehose)
/// </para>
/// </li> <li>
/// <para>
/// Inspector assessment template (Amazon Inspector)
/// </para>
/// </li> <li>
/// <para>
/// Kinesis stream (Kinesis Data Stream)
/// </para>
/// </li> <li>
/// <para>
/// Lambda function
/// </para>
/// </li> <li>
/// <para>
/// Redshift clusters (Data API statement execution)
/// </para>
/// </li> <li>
/// <para>
/// Amazon SNS topic
/// </para>
/// </li> <li>
/// <para>
/// Amazon SQS queues (includes FIFO queues
/// </para>
/// </li> <li>
/// <para>
/// SSM Automation
/// </para>
/// </li> <li>
/// <para>
/// SSM OpsItem
/// </para>
/// </li> <li>
/// <para>
/// SSM Run Command
/// </para>
/// </li> <li>
/// <para>
/// Step Functions state machines
/// </para>
/// </li> </ul>
/// <para>
/// Creating rules with built-in targets is supported only in the Management Console.
/// The built-in targets are <code>EC2 CreateSnapshot API call</code>, <code>EC2 RebootInstances
/// API call</code>, <code>EC2 StopInstances API call</code>, and <code>EC2 TerminateInstances
/// API call</code>.
/// </para>
///
/// <para>
/// For some target types, <code>PutTargets</code> provides target-specific parameters.
/// If the target is a Kinesis data stream, you can optionally specify which shard the
/// event goes to by using the <code>KinesisParameters</code> argument. To invoke a command
/// on multiple EC2 instances with one rule, you can use the <code>RunCommandParameters</code>
/// field.
/// </para>
///
/// <para>
/// To be able to make API calls against the resources that you own, Amazon EventBridge
/// needs the appropriate permissions. For Lambda and Amazon SNS resources, EventBridge
/// relies on resource-based policies. For EC2 instances, Kinesis Data Streams, Step Functions
/// state machines and API Gateway REST APIs, EventBridge relies on IAM roles that you
/// specify in the <code>RoleARN</code> argument in <code>PutTargets</code>. For more
/// information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html">Authentication
/// and Access Control</a> in the <i>Amazon EventBridge User Guide</i>.
/// </para>
///
/// <para>
/// If another Amazon Web Services account is in the same region and has granted you permission
/// (using <code>PutPermission</code>), you can send events to that account. Set that
/// account's event bus as a target of the rules in your account. To send the matched
/// events to the other account, specify that account's event bus as the <code>Arn</code>
/// value when you run <code>PutTargets</code>. If your account sends events to another
/// account, your account is charged for each sent event. Each event sent to another account
/// is charged as a custom event. The account receiving the event is not charged. For
/// more information, see <a href="http://aws.amazon.com/eventbridge/pricing/">Amazon
/// EventBridge Pricing</a>.
/// </para>
/// <note>
/// <para>
/// <code>Input</code>, <code>InputPath</code>, and <code>InputTransformer</code> are
/// not available with <code>PutTarget</code> if the target is an event bus of a different
/// Amazon Web Services account.
/// </para>
/// </note>
/// <para>
/// If you are setting the event bus of another account as the target, and that account
/// granted permission to your account through an organization instead of directly by
/// the account ID, then you must specify a <code>RoleArn</code> with proper permissions
/// in the <code>Target</code> structure. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// For more information about enabling cross-account events, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// <b>Input</b>, <b>InputPath</b>, and <b>InputTransformer</b> are mutually exclusive
/// and optional parameters of a target. When a rule is triggered due to a matched event:
/// </para>
/// <ul> <li>
/// <para>
/// If none of the following arguments are specified for a target, then the entire event
/// is passed to the target in JSON format (unless the target is Amazon EC2 Run Command
/// or Amazon ECS task, in which case nothing from the event is passed to the target).
/// </para>
/// </li> <li>
/// <para>
/// If <b>Input</b> is specified in the form of valid JSON, then the matched event is
/// overridden with this constant.
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputPath</b> is specified in the form of JSONPath (for example, <code>$.detail</code>),
/// then only the part of the event specified in the path is passed to the target (for
/// example, only the detail part of the event is passed).
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputTransformer</b> is specified, then one or more specified JSONPaths are
/// extracted from the event and used as values in a template that you specify as the
/// input to the target.
/// </para>
/// </li> </ul>
/// <para>
/// When you specify <code>InputPath</code> or <code>InputTransformer</code>, you must
/// use JSON dot notation, not bracket notation.
/// </para>
///
/// <para>
/// When you add targets to a rule and the associated rule triggers soon after, new or
/// updated targets might not be immediately invoked. Allow a short period of time for
/// changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutTargets service method.</param>
///
/// <returns>The response from the PutTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets">REST API Reference for PutTargets Operation</seealso>
public virtual PutTargetsResponse PutTargets(PutTargetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutTargetsResponseUnmarshaller.Instance;
return Invoke<PutTargetsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the PutTargets operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutTargets operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutTargets
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets">REST API Reference for PutTargets Operation</seealso>
public virtual IAsyncResult BeginPutTargets(PutTargetsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutTargetsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the PutTargets operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutTargets.</param>
///
/// <returns>Returns a PutTargetsResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets">REST API Reference for PutTargets Operation</seealso>
public virtual PutTargetsResponse EndPutTargets(IAsyncResult asyncResult)
{
return EndInvoke<PutTargetsResponse>(asyncResult);
}
#endregion
#region RemovePermission
/// <summary>
/// Revokes the permission of another Amazon Web Services account to be able to put events
/// to the specified event bus. Specify the account to revoke by the <code>StatementId</code>
/// value that you associated with the account when you granted it permission with <code>PutPermission</code>.
/// You can find the <code>StatementId</code> by using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventBus.html">DescribeEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemovePermission service method.</param>
///
/// <returns>The response from the RemovePermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission">REST API Reference for RemovePermission Operation</seealso>
public virtual RemovePermissionResponse RemovePermission(RemovePermissionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RemovePermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemovePermissionResponseUnmarshaller.Instance;
return Invoke<RemovePermissionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the RemovePermission operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the RemovePermission operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemovePermission
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission">REST API Reference for RemovePermission Operation</seealso>
public virtual IAsyncResult BeginRemovePermission(RemovePermissionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = RemovePermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemovePermissionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the RemovePermission operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginRemovePermission.</param>
///
/// <returns>Returns a RemovePermissionResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission">REST API Reference for RemovePermission Operation</seealso>
public virtual RemovePermissionResponse EndRemovePermission(IAsyncResult asyncResult)
{
return EndInvoke<RemovePermissionResponse>(asyncResult);
}
#endregion
#region RemoveTargets
/// <summary>
/// Removes the specified targets from the specified rule. When the rule is triggered,
/// those targets are no longer be invoked.
///
///
/// <para>
/// When you remove a target, when the associated rule triggers, removed targets might
/// continue to be invoked. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemoveTargets service method.</param>
///
/// <returns>The response from the RemoveTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets">REST API Reference for RemoveTargets Operation</seealso>
public virtual RemoveTargetsResponse RemoveTargets(RemoveTargetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveTargetsResponseUnmarshaller.Instance;
return Invoke<RemoveTargetsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the RemoveTargets operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the RemoveTargets operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemoveTargets
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets">REST API Reference for RemoveTargets Operation</seealso>
public virtual IAsyncResult BeginRemoveTargets(RemoveTargetsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveTargetsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the RemoveTargets operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginRemoveTargets.</param>
///
/// <returns>Returns a RemoveTargetsResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets">REST API Reference for RemoveTargets Operation</seealso>
public virtual RemoveTargetsResponse EndRemoveTargets(IAsyncResult asyncResult)
{
return EndInvoke<RemoveTargetsResponse>(asyncResult);
}
#endregion
#region StartReplay
/// <summary>
/// Starts the specified replay. Events are not necessarily replayed in the exact same
/// order that they were added to the archive. A replay processes events to replay based
/// on the time in the event, and replays them using 1 minute intervals. If you specify
/// an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers a 20 minute
/// time range, the events are replayed from the first minute of that 20 minute range
/// first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartReplay service method.</param>
///
/// <returns>The response from the StartReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplay">REST API Reference for StartReplay Operation</seealso>
public virtual StartReplayResponse StartReplay(StartReplayRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartReplayResponseUnmarshaller.Instance;
return Invoke<StartReplayResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the StartReplay operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartReplay operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartReplay
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplay">REST API Reference for StartReplay Operation</seealso>
public virtual IAsyncResult BeginStartReplay(StartReplayRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartReplayResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the StartReplay operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartReplay.</param>
///
/// <returns>Returns a StartReplayResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplay">REST API Reference for StartReplay Operation</seealso>
public virtual StartReplayResponse EndStartReplay(IAsyncResult asyncResult)
{
return EndInvoke<StartReplayResponse>(asyncResult);
}
#endregion
#region TagResource
/// <summary>
/// Assigns one or more tags (key-value pairs) to the specified EventBridge resource.
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values. In EventBridge, rules and event buses can be tagged.
///
///
/// <para>
/// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly
/// as strings of characters.
/// </para>
///
/// <para>
/// You can use the <code>TagResource</code> action with a resource that already has tags.
/// If you specify a new tag key, this tag is appended to the list of tags associated
/// with the resource. If you specify a tag key that is already associated with the resource,
/// the new tag value that you specify replaces the previous value for that tag.
/// </para>
///
/// <para>
/// You can associate as many as 50 tags with a resource.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke<TagResourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param>
///
/// <returns>Returns a TagResourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult)
{
return EndInvoke<TagResourceResponse>(asyncResult);
}
#endregion
#region TestEventPattern
/// <summary>
/// Tests whether the specified event pattern matches the provided event.
///
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TestEventPattern service method.</param>
///
/// <returns>The response from the TestEventPattern service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern">REST API Reference for TestEventPattern Operation</seealso>
public virtual TestEventPatternResponse TestEventPattern(TestEventPatternRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TestEventPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = TestEventPatternResponseUnmarshaller.Instance;
return Invoke<TestEventPatternResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the TestEventPattern operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the TestEventPattern operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTestEventPattern
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern">REST API Reference for TestEventPattern Operation</seealso>
public virtual IAsyncResult BeginTestEventPattern(TestEventPatternRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = TestEventPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = TestEventPatternResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the TestEventPattern operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginTestEventPattern.</param>
///
/// <returns>Returns a TestEventPatternResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern">REST API Reference for TestEventPattern Operation</seealso>
public virtual TestEventPatternResponse EndTestEventPattern(IAsyncResult asyncResult)
{
return EndInvoke<TestEventPatternResponse>(asyncResult);
}
#endregion
#region UntagResource
/// <summary>
/// Removes one or more tags from the specified EventBridge resource. In Amazon EventBridge
/// (CloudWatch Events), rules and event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke<UntagResourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param>
///
/// <returns>Returns a UntagResourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult)
{
return EndInvoke<UntagResourceResponse>(asyncResult);
}
#endregion
#region UpdateApiDestination
/// <summary>
/// Updates an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApiDestination service method.</param>
///
/// <returns>The response from the UpdateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateApiDestination">REST API Reference for UpdateApiDestination Operation</seealso>
public virtual UpdateApiDestinationResponse UpdateApiDestination(UpdateApiDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApiDestinationResponseUnmarshaller.Instance;
return Invoke<UpdateApiDestinationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UpdateApiDestination operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateApiDestination operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateApiDestination
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateApiDestination">REST API Reference for UpdateApiDestination Operation</seealso>
public virtual IAsyncResult BeginUpdateApiDestination(UpdateApiDestinationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApiDestinationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UpdateApiDestination operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateApiDestination.</param>
///
/// <returns>Returns a UpdateApiDestinationResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateApiDestination">REST API Reference for UpdateApiDestination Operation</seealso>
public virtual UpdateApiDestinationResponse EndUpdateApiDestination(IAsyncResult asyncResult)
{
return EndInvoke<UpdateApiDestinationResponse>(asyncResult);
}
#endregion
#region UpdateArchive
/// <summary>
/// Updates the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateArchive service method.</param>
///
/// <returns>The response from the UpdateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchive">REST API Reference for UpdateArchive Operation</seealso>
public virtual UpdateArchiveResponse UpdateArchive(UpdateArchiveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateArchiveResponseUnmarshaller.Instance;
return Invoke<UpdateArchiveResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UpdateArchive operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateArchive operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateArchive
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchive">REST API Reference for UpdateArchive Operation</seealso>
public virtual IAsyncResult BeginUpdateArchive(UpdateArchiveRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateArchiveResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UpdateArchive operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateArchive.</param>
///
/// <returns>Returns a UpdateArchiveResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchive">REST API Reference for UpdateArchive Operation</seealso>
public virtual UpdateArchiveResponse EndUpdateArchive(IAsyncResult asyncResult)
{
return EndInvoke<UpdateArchiveResponse>(asyncResult);
}
#endregion
#region UpdateConnection
/// <summary>
/// Updates settings for a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateConnection service method.</param>
///
/// <returns>The response from the UpdateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateConnection">REST API Reference for UpdateConnection Operation</seealso>
public virtual UpdateConnectionResponse UpdateConnection(UpdateConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateConnectionResponseUnmarshaller.Instance;
return Invoke<UpdateConnectionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UpdateConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateConnection operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateConnection">REST API Reference for UpdateConnection Operation</seealso>
public virtual IAsyncResult BeginUpdateConnection(UpdateConnectionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateConnectionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UpdateConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateConnection.</param>
///
/// <returns>Returns a UpdateConnectionResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateConnection">REST API Reference for UpdateConnection Operation</seealso>
public virtual UpdateConnectionResponse EndUpdateConnection(IAsyncResult asyncResult)
{
return EndInvoke<UpdateConnectionResponse>(asyncResult);
}
#endregion
}
} | 4,116 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.CloudWatchEvents.Model;
namespace Amazon.CloudWatchEvents
{
/// <summary>
/// Interface for accessing CloudWatchEvents
///
/// Amazon EventBridge helps you to respond to state changes in your Amazon Web Services
/// resources. When your resources change state, they automatically send events to an
/// event stream. You can create rules that match selected events in the stream and route
/// them to targets to take action. You can also use rules to take action on a predetermined
/// schedule. For example, you can configure rules to:
///
/// <ul> <li>
/// <para>
/// Automatically invoke an Lambda function to update DNS entries when an event notifies
/// you that Amazon EC2 instance enters the running state.
/// </para>
/// </li> <li>
/// <para>
/// Direct specific API records from CloudTrail to an Amazon Kinesis data stream for detailed
/// analysis of potential security or availability risks.
/// </para>
/// </li> <li>
/// <para>
/// Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume.
/// </para>
/// </li> </ul>
/// <para>
/// For more information about the features of Amazon EventBridge, see the <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide">Amazon
/// EventBridge User Guide</a>.
/// </para>
/// </summary>
public partial interface IAmazonCloudWatchEvents : IAmazonService, IDisposable
{
#region ActivateEventSource
/// <summary>
/// Activates a partner event source that has been deactivated. Once activated, your matching
/// event bus will start receiving events from the event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ActivateEventSource service method.</param>
///
/// <returns>The response from the ActivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ActivateEventSource">REST API Reference for ActivateEventSource Operation</seealso>
ActivateEventSourceResponse ActivateEventSource(ActivateEventSourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ActivateEventSource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ActivateEventSource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndActivateEventSource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ActivateEventSource">REST API Reference for ActivateEventSource Operation</seealso>
IAsyncResult BeginActivateEventSource(ActivateEventSourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ActivateEventSource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginActivateEventSource.</param>
///
/// <returns>Returns a ActivateEventSourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ActivateEventSource">REST API Reference for ActivateEventSource Operation</seealso>
ActivateEventSourceResponse EndActivateEventSource(IAsyncResult asyncResult);
#endregion
#region CancelReplay
/// <summary>
/// Cancels the specified replay.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CancelReplay service method.</param>
///
/// <returns>The response from the CancelReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.IllegalStatusException">
/// An error occurred because a replay can be canceled only when the state is Running
/// or Starting.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplay">REST API Reference for CancelReplay Operation</seealso>
CancelReplayResponse CancelReplay(CancelReplayRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CancelReplay operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CancelReplay operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelReplay
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplay">REST API Reference for CancelReplay Operation</seealso>
IAsyncResult BeginCancelReplay(CancelReplayRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CancelReplay operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelReplay.</param>
///
/// <returns>Returns a CancelReplayResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplay">REST API Reference for CancelReplay Operation</seealso>
CancelReplayResponse EndCancelReplay(IAsyncResult asyncResult);
#endregion
#region CreateApiDestination
/// <summary>
/// Creates an API destination, which is an HTTP invocation endpoint configured as a target
/// for events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApiDestination service method.</param>
///
/// <returns>The response from the CreateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateApiDestination">REST API Reference for CreateApiDestination Operation</seealso>
CreateApiDestinationResponse CreateApiDestination(CreateApiDestinationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateApiDestination operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateApiDestination operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateApiDestination
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateApiDestination">REST API Reference for CreateApiDestination Operation</seealso>
IAsyncResult BeginCreateApiDestination(CreateApiDestinationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateApiDestination operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateApiDestination.</param>
///
/// <returns>Returns a CreateApiDestinationResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateApiDestination">REST API Reference for CreateApiDestination Operation</seealso>
CreateApiDestinationResponse EndCreateApiDestination(IAsyncResult asyncResult);
#endregion
#region CreateArchive
/// <summary>
/// Creates an archive of events with the specified settings. When you create an archive,
/// incoming events might not immediately start being sent to the archive. Allow a short
/// period of time for changes to take effect. If you do not specify a pattern to filter
/// events sent to the archive, all events are sent to the archive except replayed events.
/// Replayed events are not sent to an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateArchive service method.</param>
///
/// <returns>The response from the CreateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchive">REST API Reference for CreateArchive Operation</seealso>
CreateArchiveResponse CreateArchive(CreateArchiveRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateArchive operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateArchive operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateArchive
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchive">REST API Reference for CreateArchive Operation</seealso>
IAsyncResult BeginCreateArchive(CreateArchiveRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateArchive operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateArchive.</param>
///
/// <returns>Returns a CreateArchiveResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchive">REST API Reference for CreateArchive Operation</seealso>
CreateArchiveResponse EndCreateArchive(IAsyncResult asyncResult);
#endregion
#region CreateConnection
/// <summary>
/// Creates a connection. A connection defines the authorization type and credentials
/// to use for authorization with an API destination HTTP endpoint.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateConnection service method.</param>
///
/// <returns>The response from the CreateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
CreateConnectionResponse CreateConnection(CreateConnectionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateConnection operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
IAsyncResult BeginCreateConnection(CreateConnectionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateConnection.</param>
///
/// <returns>Returns a CreateConnectionResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
CreateConnectionResponse EndCreateConnection(IAsyncResult asyncResult);
#endregion
#region CreateEventBus
/// <summary>
/// Creates a new event bus within your account. This can be a custom event bus which
/// you can use to receive events from your custom applications and services, or it can
/// be a partner event bus which can be matched to a partner event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventBus service method.</param>
///
/// <returns>The response from the CreateEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBus">REST API Reference for CreateEventBus Operation</seealso>
CreateEventBusResponse CreateEventBus(CreateEventBusRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateEventBus operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateEventBus operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateEventBus
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBus">REST API Reference for CreateEventBus Operation</seealso>
IAsyncResult BeginCreateEventBus(CreateEventBusRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateEventBus operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateEventBus.</param>
///
/// <returns>Returns a CreateEventBusResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBus">REST API Reference for CreateEventBus Operation</seealso>
CreateEventBusResponse EndCreateEventBus(IAsyncResult asyncResult);
#endregion
#region CreatePartnerEventSource
/// <summary>
/// Called by an SaaS partner to create a partner event source. This operation is not
/// used by Amazon Web Services customers.
///
///
/// <para>
/// Each partner event source can be used by one Amazon Web Services account to create
/// a matching partner event bus in that Amazon Web Services account. A SaaS partner must
/// create one partner event source for each Amazon Web Services account that wants to
/// receive those event types.
/// </para>
///
/// <para>
/// A partner event source creates events based on resources within the SaaS partner's
/// service or application.
/// </para>
///
/// <para>
/// An Amazon Web Services account that creates a partner event bus that matches the partner
/// event source can use that event bus to receive events from the partner, and then process
/// them using Amazon Web Services Events rules and targets.
/// </para>
///
/// <para>
/// Partner event source names follow this format:
/// </para>
///
/// <para>
/// <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i> </code>
/// </para>
///
/// <para>
/// <i>partner_name</i> is determined during partner registration and identifies the
/// partner to Amazon Web Services customers. <i>event_namespace</i> is determined by
/// the partner and is a way for the partner to categorize their events. <i>event_name</i>
/// is determined by the partner, and should uniquely identify an event-generating resource
/// within the partner system. The combination of <i>event_namespace</i> and <i>event_name</i>
/// should help Amazon Web Services customers decide whether to create an event bus to
/// receive these events.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreatePartnerEventSource service method.</param>
///
/// <returns>The response from the CreatePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSource">REST API Reference for CreatePartnerEventSource Operation</seealso>
CreatePartnerEventSourceResponse CreatePartnerEventSource(CreatePartnerEventSourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreatePartnerEventSource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreatePartnerEventSource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePartnerEventSource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSource">REST API Reference for CreatePartnerEventSource Operation</seealso>
IAsyncResult BeginCreatePartnerEventSource(CreatePartnerEventSourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreatePartnerEventSource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreatePartnerEventSource.</param>
///
/// <returns>Returns a CreatePartnerEventSourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSource">REST API Reference for CreatePartnerEventSource Operation</seealso>
CreatePartnerEventSourceResponse EndCreatePartnerEventSource(IAsyncResult asyncResult);
#endregion
#region DeactivateEventSource
/// <summary>
/// You can use this operation to temporarily stop receiving events from the specified
/// partner event source. The matching event bus is not deleted.
///
///
/// <para>
/// When you deactivate a partner event source, the source goes into PENDING state. If
/// it remains in PENDING state for more than two weeks, it is deleted.
/// </para>
///
/// <para>
/// To activate a deactivated partner event source, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ActivateEventSource.html">ActivateEventSource</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeactivateEventSource service method.</param>
///
/// <returns>The response from the DeactivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeactivateEventSource">REST API Reference for DeactivateEventSource Operation</seealso>
DeactivateEventSourceResponse DeactivateEventSource(DeactivateEventSourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeactivateEventSource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeactivateEventSource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeactivateEventSource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeactivateEventSource">REST API Reference for DeactivateEventSource Operation</seealso>
IAsyncResult BeginDeactivateEventSource(DeactivateEventSourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeactivateEventSource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeactivateEventSource.</param>
///
/// <returns>Returns a DeactivateEventSourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeactivateEventSource">REST API Reference for DeactivateEventSource Operation</seealso>
DeactivateEventSourceResponse EndDeactivateEventSource(IAsyncResult asyncResult);
#endregion
#region DeauthorizeConnection
/// <summary>
/// Removes all authorization parameters from the connection. This lets you remove the
/// secret from the connection so you can reuse it without having to create a new connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeauthorizeConnection service method.</param>
///
/// <returns>The response from the DeauthorizeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeauthorizeConnection">REST API Reference for DeauthorizeConnection Operation</seealso>
DeauthorizeConnectionResponse DeauthorizeConnection(DeauthorizeConnectionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeauthorizeConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeauthorizeConnection operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeauthorizeConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeauthorizeConnection">REST API Reference for DeauthorizeConnection Operation</seealso>
IAsyncResult BeginDeauthorizeConnection(DeauthorizeConnectionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeauthorizeConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeauthorizeConnection.</param>
///
/// <returns>Returns a DeauthorizeConnectionResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeauthorizeConnection">REST API Reference for DeauthorizeConnection Operation</seealso>
DeauthorizeConnectionResponse EndDeauthorizeConnection(IAsyncResult asyncResult);
#endregion
#region DeleteApiDestination
/// <summary>
/// Deletes the specified API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApiDestination service method.</param>
///
/// <returns>The response from the DeleteApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteApiDestination">REST API Reference for DeleteApiDestination Operation</seealso>
DeleteApiDestinationResponse DeleteApiDestination(DeleteApiDestinationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteApiDestination operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteApiDestination operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteApiDestination
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteApiDestination">REST API Reference for DeleteApiDestination Operation</seealso>
IAsyncResult BeginDeleteApiDestination(DeleteApiDestinationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteApiDestination operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteApiDestination.</param>
///
/// <returns>Returns a DeleteApiDestinationResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteApiDestination">REST API Reference for DeleteApiDestination Operation</seealso>
DeleteApiDestinationResponse EndDeleteApiDestination(IAsyncResult asyncResult);
#endregion
#region DeleteArchive
/// <summary>
/// Deletes the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteArchive service method.</param>
///
/// <returns>The response from the DeleteArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchive">REST API Reference for DeleteArchive Operation</seealso>
DeleteArchiveResponse DeleteArchive(DeleteArchiveRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteArchive operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteArchive operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteArchive
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchive">REST API Reference for DeleteArchive Operation</seealso>
IAsyncResult BeginDeleteArchive(DeleteArchiveRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteArchive operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteArchive.</param>
///
/// <returns>Returns a DeleteArchiveResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchive">REST API Reference for DeleteArchive Operation</seealso>
DeleteArchiveResponse EndDeleteArchive(IAsyncResult asyncResult);
#endregion
#region DeleteConnection
/// <summary>
/// Deletes a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection service method.</param>
///
/// <returns>The response from the DeleteConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
DeleteConnectionResponse DeleteConnection(DeleteConnectionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
IAsyncResult BeginDeleteConnection(DeleteConnectionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteConnection.</param>
///
/// <returns>Returns a DeleteConnectionResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
DeleteConnectionResponse EndDeleteConnection(IAsyncResult asyncResult);
#endregion
#region DeleteEventBus
/// <summary>
/// Deletes the specified custom event bus or partner event bus. All rules associated
/// with this event bus need to be deleted. You can't delete your account's default event
/// bus.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventBus service method.</param>
///
/// <returns>The response from the DeleteEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteEventBus">REST API Reference for DeleteEventBus Operation</seealso>
DeleteEventBusResponse DeleteEventBus(DeleteEventBusRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteEventBus operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteEventBus operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteEventBus
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteEventBus">REST API Reference for DeleteEventBus Operation</seealso>
IAsyncResult BeginDeleteEventBus(DeleteEventBusRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteEventBus operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteEventBus.</param>
///
/// <returns>Returns a DeleteEventBusResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteEventBus">REST API Reference for DeleteEventBus Operation</seealso>
DeleteEventBusResponse EndDeleteEventBus(IAsyncResult asyncResult);
#endregion
#region DeletePartnerEventSource
/// <summary>
/// This operation is used by SaaS partners to delete a partner event source. This operation
/// is not used by Amazon Web Services customers.
///
///
/// <para>
/// When you delete an event source, the status of the corresponding partner event bus
/// in the Amazon Web Services customer account becomes DELETED.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeletePartnerEventSource service method.</param>
///
/// <returns>The response from the DeletePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeletePartnerEventSource">REST API Reference for DeletePartnerEventSource Operation</seealso>
DeletePartnerEventSourceResponse DeletePartnerEventSource(DeletePartnerEventSourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeletePartnerEventSource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeletePartnerEventSource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeletePartnerEventSource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeletePartnerEventSource">REST API Reference for DeletePartnerEventSource Operation</seealso>
IAsyncResult BeginDeletePartnerEventSource(DeletePartnerEventSourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeletePartnerEventSource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeletePartnerEventSource.</param>
///
/// <returns>Returns a DeletePartnerEventSourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeletePartnerEventSource">REST API Reference for DeletePartnerEventSource Operation</seealso>
DeletePartnerEventSourceResponse EndDeletePartnerEventSource(IAsyncResult asyncResult);
#endregion
#region DeleteRule
/// <summary>
/// Deletes the specified rule.
///
///
/// <para>
/// Before you can delete the rule, you must remove all targets, using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemoveTargets.html">RemoveTargets</a>.
/// </para>
///
/// <para>
/// When you delete a rule, incoming events might continue to match to the deleted rule.
/// Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// If you call delete rule multiple times for the same rule, all calls will succeed.
/// When you call delete rule for a non-existent custom eventbus, <code>ResourceNotFoundException</code>
/// is returned.
/// </para>
///
/// <para>
/// Managed rules are rules created and managed by another Amazon Web Services service
/// on your behalf. These rules are created by those other Amazon Web Services services
/// to support functionality in those services. You can delete these rules using the <code>Force</code>
/// option, but you should do so only if you are sure the other service is not still using
/// that rule.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteRule service method.</param>
///
/// <returns>The response from the DeleteRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule">REST API Reference for DeleteRule Operation</seealso>
DeleteRuleResponse DeleteRule(DeleteRuleRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteRule operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteRule operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteRule
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule">REST API Reference for DeleteRule Operation</seealso>
IAsyncResult BeginDeleteRule(DeleteRuleRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteRule operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteRule.</param>
///
/// <returns>Returns a DeleteRuleResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule">REST API Reference for DeleteRule Operation</seealso>
DeleteRuleResponse EndDeleteRule(IAsyncResult asyncResult);
#endregion
#region DescribeApiDestination
/// <summary>
/// Retrieves details about an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApiDestination service method.</param>
///
/// <returns>The response from the DescribeApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeApiDestination">REST API Reference for DescribeApiDestination Operation</seealso>
DescribeApiDestinationResponse DescribeApiDestination(DescribeApiDestinationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeApiDestination operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeApiDestination operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeApiDestination
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeApiDestination">REST API Reference for DescribeApiDestination Operation</seealso>
IAsyncResult BeginDescribeApiDestination(DescribeApiDestinationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeApiDestination operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeApiDestination.</param>
///
/// <returns>Returns a DescribeApiDestinationResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeApiDestination">REST API Reference for DescribeApiDestination Operation</seealso>
DescribeApiDestinationResponse EndDescribeApiDestination(IAsyncResult asyncResult);
#endregion
#region DescribeArchive
/// <summary>
/// Retrieves details about an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeArchive service method.</param>
///
/// <returns>The response from the DescribeArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchive">REST API Reference for DescribeArchive Operation</seealso>
DescribeArchiveResponse DescribeArchive(DescribeArchiveRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeArchive operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeArchive operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeArchive
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchive">REST API Reference for DescribeArchive Operation</seealso>
IAsyncResult BeginDescribeArchive(DescribeArchiveRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeArchive operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeArchive.</param>
///
/// <returns>Returns a DescribeArchiveResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchive">REST API Reference for DescribeArchive Operation</seealso>
DescribeArchiveResponse EndDescribeArchive(IAsyncResult asyncResult);
#endregion
#region DescribeConnection
/// <summary>
/// Retrieves details about a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConnection service method.</param>
///
/// <returns>The response from the DescribeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeConnection">REST API Reference for DescribeConnection Operation</seealso>
DescribeConnectionResponse DescribeConnection(DescribeConnectionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeConnection operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeConnection">REST API Reference for DescribeConnection Operation</seealso>
IAsyncResult BeginDescribeConnection(DescribeConnectionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeConnection.</param>
///
/// <returns>Returns a DescribeConnectionResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeConnection">REST API Reference for DescribeConnection Operation</seealso>
DescribeConnectionResponse EndDescribeConnection(IAsyncResult asyncResult);
#endregion
#region DescribeEventBus
/// <summary>
/// Displays details about an event bus in your account. This can include the external
/// Amazon Web Services accounts that are permitted to write events to your default event
/// bus, and the associated policy. For custom event buses and partner event buses, it
/// displays the name, ARN, policy, state, and creation time.
///
///
/// <para>
/// To enable your account to receive events from other accounts on its default event
/// bus, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// For more information about partner event buses, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventBus service method.</param>
///
/// <returns>The response from the DescribeEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus">REST API Reference for DescribeEventBus Operation</seealso>
DescribeEventBusResponse DescribeEventBus(DescribeEventBusRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeEventBus operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEventBus operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeEventBus
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus">REST API Reference for DescribeEventBus Operation</seealso>
IAsyncResult BeginDescribeEventBus(DescribeEventBusRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeEventBus operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEventBus.</param>
///
/// <returns>Returns a DescribeEventBusResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus">REST API Reference for DescribeEventBus Operation</seealso>
DescribeEventBusResponse EndDescribeEventBus(IAsyncResult asyncResult);
#endregion
#region DescribeEventSource
/// <summary>
/// This operation lists details about a partner event source that is shared with your
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventSource service method.</param>
///
/// <returns>The response from the DescribeEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSource">REST API Reference for DescribeEventSource Operation</seealso>
DescribeEventSourceResponse DescribeEventSource(DescribeEventSourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeEventSource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEventSource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeEventSource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSource">REST API Reference for DescribeEventSource Operation</seealso>
IAsyncResult BeginDescribeEventSource(DescribeEventSourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeEventSource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEventSource.</param>
///
/// <returns>Returns a DescribeEventSourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSource">REST API Reference for DescribeEventSource Operation</seealso>
DescribeEventSourceResponse EndDescribeEventSource(IAsyncResult asyncResult);
#endregion
#region DescribePartnerEventSource
/// <summary>
/// An SaaS partner can use this operation to list details about a partner event source
/// that they have created. Amazon Web Services customers do not use this operation. Instead,
/// Amazon Web Services customers can use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventSource.html">DescribeEventSource</a>
/// to see details about a partner event source that is shared with them.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribePartnerEventSource service method.</param>
///
/// <returns>The response from the DescribePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribePartnerEventSource">REST API Reference for DescribePartnerEventSource Operation</seealso>
DescribePartnerEventSourceResponse DescribePartnerEventSource(DescribePartnerEventSourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribePartnerEventSource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribePartnerEventSource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribePartnerEventSource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribePartnerEventSource">REST API Reference for DescribePartnerEventSource Operation</seealso>
IAsyncResult BeginDescribePartnerEventSource(DescribePartnerEventSourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribePartnerEventSource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribePartnerEventSource.</param>
///
/// <returns>Returns a DescribePartnerEventSourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribePartnerEventSource">REST API Reference for DescribePartnerEventSource Operation</seealso>
DescribePartnerEventSourceResponse EndDescribePartnerEventSource(IAsyncResult asyncResult);
#endregion
#region DescribeReplay
/// <summary>
/// Retrieves details about a replay. Use <code>DescribeReplay</code> to determine the
/// progress of a running replay. A replay processes events to replay based on the time
/// in the event, and replays them using 1 minute intervals. If you use <code>StartReplay</code>
/// and specify an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers
/// a 20 minute time range, the events are replayed from the first minute of that 20 minute
/// range first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeReplay service method.</param>
///
/// <returns>The response from the DescribeReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplay">REST API Reference for DescribeReplay Operation</seealso>
DescribeReplayResponse DescribeReplay(DescribeReplayRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeReplay operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeReplay operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeReplay
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplay">REST API Reference for DescribeReplay Operation</seealso>
IAsyncResult BeginDescribeReplay(DescribeReplayRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeReplay operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeReplay.</param>
///
/// <returns>Returns a DescribeReplayResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplay">REST API Reference for DescribeReplay Operation</seealso>
DescribeReplayResponse EndDescribeReplay(IAsyncResult asyncResult);
#endregion
#region DescribeRule
/// <summary>
/// Describes the specified rule.
///
///
/// <para>
/// DescribeRule does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeRule service method.</param>
///
/// <returns>The response from the DescribeRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule">REST API Reference for DescribeRule Operation</seealso>
DescribeRuleResponse DescribeRule(DescribeRuleRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeRule operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeRule operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeRule
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule">REST API Reference for DescribeRule Operation</seealso>
IAsyncResult BeginDescribeRule(DescribeRuleRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeRule operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeRule.</param>
///
/// <returns>Returns a DescribeRuleResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule">REST API Reference for DescribeRule Operation</seealso>
DescribeRuleResponse EndDescribeRule(IAsyncResult asyncResult);
#endregion
#region DisableRule
/// <summary>
/// Disables the specified rule. A disabled rule won't match any events, and won't self-trigger
/// if it has a schedule expression.
///
///
/// <para>
/// When you disable a rule, incoming events might continue to match to the disabled rule.
/// Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRule service method.</param>
///
/// <returns>The response from the DisableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule">REST API Reference for DisableRule Operation</seealso>
DisableRuleResponse DisableRule(DisableRuleRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DisableRule operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DisableRule operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableRule
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule">REST API Reference for DisableRule Operation</seealso>
IAsyncResult BeginDisableRule(DisableRuleRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DisableRule operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisableRule.</param>
///
/// <returns>Returns a DisableRuleResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule">REST API Reference for DisableRule Operation</seealso>
DisableRuleResponse EndDisableRule(IAsyncResult asyncResult);
#endregion
#region EnableRule
/// <summary>
/// Enables the specified rule. If the rule does not exist, the operation fails.
///
///
/// <para>
/// When you enable a rule, incoming events might not immediately start matching to a
/// newly enabled rule. Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRule service method.</param>
///
/// <returns>The response from the EnableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule">REST API Reference for EnableRule Operation</seealso>
EnableRuleResponse EnableRule(EnableRuleRequest request);
/// <summary>
/// Initiates the asynchronous execution of the EnableRule operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the EnableRule operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableRule
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule">REST API Reference for EnableRule Operation</seealso>
IAsyncResult BeginEnableRule(EnableRuleRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the EnableRule operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnableRule.</param>
///
/// <returns>Returns a EnableRuleResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule">REST API Reference for EnableRule Operation</seealso>
EnableRuleResponse EndEnableRule(IAsyncResult asyncResult);
#endregion
#region ListApiDestinations
/// <summary>
/// Retrieves a list of API destination in the account in the current Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApiDestinations service method.</param>
///
/// <returns>The response from the ListApiDestinations service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListApiDestinations">REST API Reference for ListApiDestinations Operation</seealso>
ListApiDestinationsResponse ListApiDestinations(ListApiDestinationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListApiDestinations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListApiDestinations operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListApiDestinations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListApiDestinations">REST API Reference for ListApiDestinations Operation</seealso>
IAsyncResult BeginListApiDestinations(ListApiDestinationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListApiDestinations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListApiDestinations.</param>
///
/// <returns>Returns a ListApiDestinationsResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListApiDestinations">REST API Reference for ListApiDestinations Operation</seealso>
ListApiDestinationsResponse EndListApiDestinations(IAsyncResult asyncResult);
#endregion
#region ListArchives
/// <summary>
/// Lists your archives. You can either list all the archives or you can provide a prefix
/// to match to the archive names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListArchives service method.</param>
///
/// <returns>The response from the ListArchives service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchives">REST API Reference for ListArchives Operation</seealso>
ListArchivesResponse ListArchives(ListArchivesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListArchives operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListArchives operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListArchives
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchives">REST API Reference for ListArchives Operation</seealso>
IAsyncResult BeginListArchives(ListArchivesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListArchives operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListArchives.</param>
///
/// <returns>Returns a ListArchivesResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchives">REST API Reference for ListArchives Operation</seealso>
ListArchivesResponse EndListArchives(IAsyncResult asyncResult);
#endregion
#region ListConnections
/// <summary>
/// Retrieves a list of connections from the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConnections service method.</param>
///
/// <returns>The response from the ListConnections service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListConnections">REST API Reference for ListConnections Operation</seealso>
ListConnectionsResponse ListConnections(ListConnectionsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListConnections operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListConnections operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListConnections
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListConnections">REST API Reference for ListConnections Operation</seealso>
IAsyncResult BeginListConnections(ListConnectionsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListConnections operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListConnections.</param>
///
/// <returns>Returns a ListConnectionsResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListConnections">REST API Reference for ListConnections Operation</seealso>
ListConnectionsResponse EndListConnections(IAsyncResult asyncResult);
#endregion
#region ListEventBuses
/// <summary>
/// Lists all the event buses in your account, including the default event bus, custom
/// event buses, and partner event buses.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventBuses service method.</param>
///
/// <returns>The response from the ListEventBuses service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventBuses">REST API Reference for ListEventBuses Operation</seealso>
ListEventBusesResponse ListEventBuses(ListEventBusesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListEventBuses operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListEventBuses operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEventBuses
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventBuses">REST API Reference for ListEventBuses Operation</seealso>
IAsyncResult BeginListEventBuses(ListEventBusesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListEventBuses operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListEventBuses.</param>
///
/// <returns>Returns a ListEventBusesResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventBuses">REST API Reference for ListEventBuses Operation</seealso>
ListEventBusesResponse EndListEventBuses(IAsyncResult asyncResult);
#endregion
#region ListEventSources
/// <summary>
/// You can use this to see all the partner event sources that have been shared with your
/// Amazon Web Services account. For more information about partner event sources, see
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventSources service method.</param>
///
/// <returns>The response from the ListEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventSources">REST API Reference for ListEventSources Operation</seealso>
ListEventSourcesResponse ListEventSources(ListEventSourcesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListEventSources operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListEventSources operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEventSources
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventSources">REST API Reference for ListEventSources Operation</seealso>
IAsyncResult BeginListEventSources(ListEventSourcesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListEventSources operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListEventSources.</param>
///
/// <returns>Returns a ListEventSourcesResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventSources">REST API Reference for ListEventSources Operation</seealso>
ListEventSourcesResponse EndListEventSources(IAsyncResult asyncResult);
#endregion
#region ListPartnerEventSourceAccounts
/// <summary>
/// An SaaS partner can use this operation to display the Amazon Web Services account
/// ID that a particular partner event source name is associated with. This operation
/// is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSourceAccounts service method.</param>
///
/// <returns>The response from the ListPartnerEventSourceAccounts service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSourceAccounts">REST API Reference for ListPartnerEventSourceAccounts Operation</seealso>
ListPartnerEventSourceAccountsResponse ListPartnerEventSourceAccounts(ListPartnerEventSourceAccountsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListPartnerEventSourceAccounts operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSourceAccounts operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPartnerEventSourceAccounts
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSourceAccounts">REST API Reference for ListPartnerEventSourceAccounts Operation</seealso>
IAsyncResult BeginListPartnerEventSourceAccounts(ListPartnerEventSourceAccountsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListPartnerEventSourceAccounts operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPartnerEventSourceAccounts.</param>
///
/// <returns>Returns a ListPartnerEventSourceAccountsResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSourceAccounts">REST API Reference for ListPartnerEventSourceAccounts Operation</seealso>
ListPartnerEventSourceAccountsResponse EndListPartnerEventSourceAccounts(IAsyncResult asyncResult);
#endregion
#region ListPartnerEventSources
/// <summary>
/// An SaaS partner can use this operation to list all the partner event source names
/// that they have created. This operation is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSources service method.</param>
///
/// <returns>The response from the ListPartnerEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSources">REST API Reference for ListPartnerEventSources Operation</seealso>
ListPartnerEventSourcesResponse ListPartnerEventSources(ListPartnerEventSourcesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListPartnerEventSources operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSources operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPartnerEventSources
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSources">REST API Reference for ListPartnerEventSources Operation</seealso>
IAsyncResult BeginListPartnerEventSources(ListPartnerEventSourcesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListPartnerEventSources operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPartnerEventSources.</param>
///
/// <returns>Returns a ListPartnerEventSourcesResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSources">REST API Reference for ListPartnerEventSources Operation</seealso>
ListPartnerEventSourcesResponse EndListPartnerEventSources(IAsyncResult asyncResult);
#endregion
#region ListReplays
/// <summary>
/// Lists your replays. You can either list all the replays or you can provide a prefix
/// to match to the replay names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListReplays service method.</param>
///
/// <returns>The response from the ListReplays service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplays">REST API Reference for ListReplays Operation</seealso>
ListReplaysResponse ListReplays(ListReplaysRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListReplays operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListReplays operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListReplays
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplays">REST API Reference for ListReplays Operation</seealso>
IAsyncResult BeginListReplays(ListReplaysRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListReplays operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListReplays.</param>
///
/// <returns>Returns a ListReplaysResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplays">REST API Reference for ListReplays Operation</seealso>
ListReplaysResponse EndListReplays(IAsyncResult asyncResult);
#endregion
#region ListRuleNamesByTarget
/// <summary>
/// Lists the rules for the specified target. You can see which of the rules in Amazon
/// EventBridge can invoke a specific target in your account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRuleNamesByTarget service method.</param>
///
/// <returns>The response from the ListRuleNamesByTarget service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget">REST API Reference for ListRuleNamesByTarget Operation</seealso>
ListRuleNamesByTargetResponse ListRuleNamesByTarget(ListRuleNamesByTargetRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListRuleNamesByTarget operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListRuleNamesByTarget operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListRuleNamesByTarget
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget">REST API Reference for ListRuleNamesByTarget Operation</seealso>
IAsyncResult BeginListRuleNamesByTarget(ListRuleNamesByTargetRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListRuleNamesByTarget operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListRuleNamesByTarget.</param>
///
/// <returns>Returns a ListRuleNamesByTargetResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget">REST API Reference for ListRuleNamesByTarget Operation</seealso>
ListRuleNamesByTargetResponse EndListRuleNamesByTarget(IAsyncResult asyncResult);
#endregion
#region ListRules
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
ListRulesResponse ListRules();
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRules service method.</param>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
ListRulesResponse ListRules(ListRulesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListRules operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListRules operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListRules
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
IAsyncResult BeginListRules(ListRulesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListRules operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListRules.</param>
///
/// <returns>Returns a ListRulesResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
ListRulesResponse EndListRules(IAsyncResult asyncResult);
#endregion
#region ListTagsForResource
/// <summary>
/// Displays the tags associated with an EventBridge resource. In EventBridge, rules and
/// event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param>
///
/// <returns>Returns a ListTagsForResourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult);
#endregion
#region ListTargetsByRule
/// <summary>
/// Lists the targets assigned to the specified rule.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTargetsByRule service method.</param>
///
/// <returns>The response from the ListTargetsByRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule">REST API Reference for ListTargetsByRule Operation</seealso>
ListTargetsByRuleResponse ListTargetsByRule(ListTargetsByRuleRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListTargetsByRule operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListTargetsByRule operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTargetsByRule
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule">REST API Reference for ListTargetsByRule Operation</seealso>
IAsyncResult BeginListTargetsByRule(ListTargetsByRuleRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListTargetsByRule operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTargetsByRule.</param>
///
/// <returns>Returns a ListTargetsByRuleResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule">REST API Reference for ListTargetsByRule Operation</seealso>
ListTargetsByRuleResponse EndListTargetsByRule(IAsyncResult asyncResult);
#endregion
#region PutEvents
/// <summary>
/// Sends custom events to Amazon EventBridge so that they can be matched to rules.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutEvents service method.</param>
///
/// <returns>The response from the PutEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents">REST API Reference for PutEvents Operation</seealso>
PutEventsResponse PutEvents(PutEventsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the PutEvents operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutEvents operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutEvents
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents">REST API Reference for PutEvents Operation</seealso>
IAsyncResult BeginPutEvents(PutEventsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the PutEvents operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutEvents.</param>
///
/// <returns>Returns a PutEventsResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents">REST API Reference for PutEvents Operation</seealso>
PutEventsResponse EndPutEvents(IAsyncResult asyncResult);
#endregion
#region PutPartnerEvents
/// <summary>
/// This is used by SaaS partners to write events to a customer's partner event bus. Amazon
/// Web Services customers do not use this operation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPartnerEvents service method.</param>
///
/// <returns>The response from the PutPartnerEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEvents">REST API Reference for PutPartnerEvents Operation</seealso>
PutPartnerEventsResponse PutPartnerEvents(PutPartnerEventsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the PutPartnerEvents operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutPartnerEvents operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutPartnerEvents
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEvents">REST API Reference for PutPartnerEvents Operation</seealso>
IAsyncResult BeginPutPartnerEvents(PutPartnerEventsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the PutPartnerEvents operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutPartnerEvents.</param>
///
/// <returns>Returns a PutPartnerEventsResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEvents">REST API Reference for PutPartnerEvents Operation</seealso>
PutPartnerEventsResponse EndPutPartnerEvents(IAsyncResult asyncResult);
#endregion
#region PutPermission
/// <summary>
/// Running <code>PutPermission</code> permits the specified Amazon Web Services account
/// or Amazon Web Services organization to put events to the specified <i>event bus</i>.
/// Amazon EventBridge (CloudWatch Events) rules in your account are triggered by these
/// events arriving to an event bus in your account.
///
///
/// <para>
/// For another account to send events to your account, that external account must have
/// an EventBridge rule with your account's event bus as a target.
/// </para>
///
/// <para>
/// To enable multiple Amazon Web Services accounts to put events to your event bus, run
/// <code>PutPermission</code> once for each of these accounts. Or, if all the accounts
/// are members of the same Amazon Web Services organization, you can run <code>PutPermission</code>
/// once specifying <code>Principal</code> as "*" and specifying the Amazon Web Services
/// organization ID in <code>Condition</code>, to grant permissions to all accounts in
/// that organization.
/// </para>
///
/// <para>
/// If you grant permissions using an organization, then accounts in that organization
/// must specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code>
/// to add your account's event bus as a target. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// The permission policy on the event bus cannot exceed 10 KB in size.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPermission service method.</param>
///
/// <returns>The response from the PutPermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.PolicyLengthExceededException">
/// The event bus policy is too long. For more information, see the limits.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission">REST API Reference for PutPermission Operation</seealso>
PutPermissionResponse PutPermission(PutPermissionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the PutPermission operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutPermission operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutPermission
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission">REST API Reference for PutPermission Operation</seealso>
IAsyncResult BeginPutPermission(PutPermissionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the PutPermission operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutPermission.</param>
///
/// <returns>Returns a PutPermissionResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission">REST API Reference for PutPermission Operation</seealso>
PutPermissionResponse EndPutPermission(IAsyncResult asyncResult);
#endregion
#region PutRule
/// <summary>
/// Creates or updates the specified rule. Rules are enabled by default, or based on value
/// of the state. You can disable a rule using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DisableRule.html">DisableRule</a>.
///
///
/// <para>
/// A single rule watches for events from a single event bus. Events generated by Amazon
/// Web Services services go to your account's default event bus. Events generated by
/// SaaS partner services or applications go to the matching partner event bus. If you
/// have custom applications or services, you can specify whether their events go to your
/// default event bus or a custom event bus that you have created. For more information,
/// see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
///
/// <para>
/// If you are updating an existing rule, the rule is replaced with what you specify in
/// this <code>PutRule</code> command. If you omit arguments in <code>PutRule</code>,
/// the old values for those arguments are not kept. Instead, they are replaced with null
/// values.
/// </para>
///
/// <para>
/// When you create or update a rule, incoming events might not immediately start matching
/// to new or updated rules. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns
/// are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger
/// based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression,
/// in which case the rule triggers on matching events as well as on a schedule.
/// </para>
///
/// <para>
/// When you initially create a rule, you can optionally assign one or more tags to the
/// rule. Tags can help you organize and categorize your resources. You can also use them
/// to scope user permissions, by granting a user permission to access or change only
/// rules with certain tag values. To use the <code>PutRule</code> operation and assign
/// tags, you must have both the <code>events:PutRule</code> and <code>events:TagResource</code>
/// permissions.
/// </para>
///
/// <para>
/// If you are updating an existing rule, any tags you specify in the <code>PutRule</code>
/// operation are ignored. To update the tags of an existing rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_TagResource.html">TagResource</a>
/// and <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UntagResource.html">UntagResource</a>.
/// </para>
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
///
/// <para>
/// In EventBridge, it is possible to create rules that lead to infinite loops, where
/// a rule is fired repeatedly. For example, a rule might detect that ACLs have changed
/// on an S3 bucket, and trigger software to change them to the desired state. If the
/// rule is not written carefully, the subsequent change to the ACLs fires the rule again,
/// creating an infinite loop.
/// </para>
///
/// <para>
/// To prevent this, write the rules so that the triggered actions do not re-fire the
/// same rule. For example, your rule could fire only if ACLs are found to be in a bad
/// state, instead of after any change.
/// </para>
///
/// <para>
/// An infinite loop can quickly cause higher than expected charges. We recommend that
/// you use budgeting, which alerts you when charges exceed your specified limit. For
/// more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html">Managing
/// Your Costs with Budgets</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutRule service method.</param>
///
/// <returns>The response from the PutRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule">REST API Reference for PutRule Operation</seealso>
PutRuleResponse PutRule(PutRuleRequest request);
/// <summary>
/// Initiates the asynchronous execution of the PutRule operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutRule operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutRule
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule">REST API Reference for PutRule Operation</seealso>
IAsyncResult BeginPutRule(PutRuleRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the PutRule operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutRule.</param>
///
/// <returns>Returns a PutRuleResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule">REST API Reference for PutRule Operation</seealso>
PutRuleResponse EndPutRule(IAsyncResult asyncResult);
#endregion
#region PutTargets
/// <summary>
/// Adds the specified targets to the specified rule, or updates the targets if they are
/// already associated with the rule.
///
///
/// <para>
/// Targets are the resources that are invoked when a rule is triggered.
/// </para>
///
/// <para>
/// You can configure the following as targets for Events:
/// </para>
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html">API
/// destination</a>
/// </para>
/// </li> <li>
/// <para>
/// Amazon API Gateway REST API endpoints
/// </para>
/// </li> <li>
/// <para>
/// API Gateway
/// </para>
/// </li> <li>
/// <para>
/// Batch job queue
/// </para>
/// </li> <li>
/// <para>
/// CloudWatch Logs group
/// </para>
/// </li> <li>
/// <para>
/// CodeBuild project
/// </para>
/// </li> <li>
/// <para>
/// CodePipeline
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>CreateSnapshot</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>RebootInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>StopInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>TerminateInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon ECS tasks
/// </para>
/// </li> <li>
/// <para>
/// Event bus in a different Amazon Web Services account or Region.
/// </para>
///
/// <para>
/// You can use an event bus in the US East (N. Virginia) us-east-1, US West (Oregon)
/// us-west-2, or Europe (Ireland) eu-west-1 Regions as a target for a rule.
/// </para>
/// </li> <li>
/// <para>
/// Firehose delivery stream (Kinesis Data Firehose)
/// </para>
/// </li> <li>
/// <para>
/// Inspector assessment template (Amazon Inspector)
/// </para>
/// </li> <li>
/// <para>
/// Kinesis stream (Kinesis Data Stream)
/// </para>
/// </li> <li>
/// <para>
/// Lambda function
/// </para>
/// </li> <li>
/// <para>
/// Redshift clusters (Data API statement execution)
/// </para>
/// </li> <li>
/// <para>
/// Amazon SNS topic
/// </para>
/// </li> <li>
/// <para>
/// Amazon SQS queues (includes FIFO queues
/// </para>
/// </li> <li>
/// <para>
/// SSM Automation
/// </para>
/// </li> <li>
/// <para>
/// SSM OpsItem
/// </para>
/// </li> <li>
/// <para>
/// SSM Run Command
/// </para>
/// </li> <li>
/// <para>
/// Step Functions state machines
/// </para>
/// </li> </ul>
/// <para>
/// Creating rules with built-in targets is supported only in the Management Console.
/// The built-in targets are <code>EC2 CreateSnapshot API call</code>, <code>EC2 RebootInstances
/// API call</code>, <code>EC2 StopInstances API call</code>, and <code>EC2 TerminateInstances
/// API call</code>.
/// </para>
///
/// <para>
/// For some target types, <code>PutTargets</code> provides target-specific parameters.
/// If the target is a Kinesis data stream, you can optionally specify which shard the
/// event goes to by using the <code>KinesisParameters</code> argument. To invoke a command
/// on multiple EC2 instances with one rule, you can use the <code>RunCommandParameters</code>
/// field.
/// </para>
///
/// <para>
/// To be able to make API calls against the resources that you own, Amazon EventBridge
/// needs the appropriate permissions. For Lambda and Amazon SNS resources, EventBridge
/// relies on resource-based policies. For EC2 instances, Kinesis Data Streams, Step Functions
/// state machines and API Gateway REST APIs, EventBridge relies on IAM roles that you
/// specify in the <code>RoleARN</code> argument in <code>PutTargets</code>. For more
/// information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html">Authentication
/// and Access Control</a> in the <i>Amazon EventBridge User Guide</i>.
/// </para>
///
/// <para>
/// If another Amazon Web Services account is in the same region and has granted you permission
/// (using <code>PutPermission</code>), you can send events to that account. Set that
/// account's event bus as a target of the rules in your account. To send the matched
/// events to the other account, specify that account's event bus as the <code>Arn</code>
/// value when you run <code>PutTargets</code>. If your account sends events to another
/// account, your account is charged for each sent event. Each event sent to another account
/// is charged as a custom event. The account receiving the event is not charged. For
/// more information, see <a href="http://aws.amazon.com/eventbridge/pricing/">Amazon
/// EventBridge Pricing</a>.
/// </para>
/// <note>
/// <para>
/// <code>Input</code>, <code>InputPath</code>, and <code>InputTransformer</code> are
/// not available with <code>PutTarget</code> if the target is an event bus of a different
/// Amazon Web Services account.
/// </para>
/// </note>
/// <para>
/// If you are setting the event bus of another account as the target, and that account
/// granted permission to your account through an organization instead of directly by
/// the account ID, then you must specify a <code>RoleArn</code> with proper permissions
/// in the <code>Target</code> structure. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// For more information about enabling cross-account events, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// <b>Input</b>, <b>InputPath</b>, and <b>InputTransformer</b> are mutually exclusive
/// and optional parameters of a target. When a rule is triggered due to a matched event:
/// </para>
/// <ul> <li>
/// <para>
/// If none of the following arguments are specified for a target, then the entire event
/// is passed to the target in JSON format (unless the target is Amazon EC2 Run Command
/// or Amazon ECS task, in which case nothing from the event is passed to the target).
/// </para>
/// </li> <li>
/// <para>
/// If <b>Input</b> is specified in the form of valid JSON, then the matched event is
/// overridden with this constant.
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputPath</b> is specified in the form of JSONPath (for example, <code>$.detail</code>),
/// then only the part of the event specified in the path is passed to the target (for
/// example, only the detail part of the event is passed).
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputTransformer</b> is specified, then one or more specified JSONPaths are
/// extracted from the event and used as values in a template that you specify as the
/// input to the target.
/// </para>
/// </li> </ul>
/// <para>
/// When you specify <code>InputPath</code> or <code>InputTransformer</code>, you must
/// use JSON dot notation, not bracket notation.
/// </para>
///
/// <para>
/// When you add targets to a rule and the associated rule triggers soon after, new or
/// updated targets might not be immediately invoked. Allow a short period of time for
/// changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutTargets service method.</param>
///
/// <returns>The response from the PutTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets">REST API Reference for PutTargets Operation</seealso>
PutTargetsResponse PutTargets(PutTargetsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the PutTargets operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutTargets operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutTargets
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets">REST API Reference for PutTargets Operation</seealso>
IAsyncResult BeginPutTargets(PutTargetsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the PutTargets operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutTargets.</param>
///
/// <returns>Returns a PutTargetsResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets">REST API Reference for PutTargets Operation</seealso>
PutTargetsResponse EndPutTargets(IAsyncResult asyncResult);
#endregion
#region RemovePermission
/// <summary>
/// Revokes the permission of another Amazon Web Services account to be able to put events
/// to the specified event bus. Specify the account to revoke by the <code>StatementId</code>
/// value that you associated with the account when you granted it permission with <code>PutPermission</code>.
/// You can find the <code>StatementId</code> by using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventBus.html">DescribeEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemovePermission service method.</param>
///
/// <returns>The response from the RemovePermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission">REST API Reference for RemovePermission Operation</seealso>
RemovePermissionResponse RemovePermission(RemovePermissionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the RemovePermission operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the RemovePermission operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemovePermission
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission">REST API Reference for RemovePermission Operation</seealso>
IAsyncResult BeginRemovePermission(RemovePermissionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the RemovePermission operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginRemovePermission.</param>
///
/// <returns>Returns a RemovePermissionResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission">REST API Reference for RemovePermission Operation</seealso>
RemovePermissionResponse EndRemovePermission(IAsyncResult asyncResult);
#endregion
#region RemoveTargets
/// <summary>
/// Removes the specified targets from the specified rule. When the rule is triggered,
/// those targets are no longer be invoked.
///
///
/// <para>
/// When you remove a target, when the associated rule triggers, removed targets might
/// continue to be invoked. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemoveTargets service method.</param>
///
/// <returns>The response from the RemoveTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets">REST API Reference for RemoveTargets Operation</seealso>
RemoveTargetsResponse RemoveTargets(RemoveTargetsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the RemoveTargets operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the RemoveTargets operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemoveTargets
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets">REST API Reference for RemoveTargets Operation</seealso>
IAsyncResult BeginRemoveTargets(RemoveTargetsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the RemoveTargets operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginRemoveTargets.</param>
///
/// <returns>Returns a RemoveTargetsResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets">REST API Reference for RemoveTargets Operation</seealso>
RemoveTargetsResponse EndRemoveTargets(IAsyncResult asyncResult);
#endregion
#region StartReplay
/// <summary>
/// Starts the specified replay. Events are not necessarily replayed in the exact same
/// order that they were added to the archive. A replay processes events to replay based
/// on the time in the event, and replays them using 1 minute intervals. If you specify
/// an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers a 20 minute
/// time range, the events are replayed from the first minute of that 20 minute range
/// first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartReplay service method.</param>
///
/// <returns>The response from the StartReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplay">REST API Reference for StartReplay Operation</seealso>
StartReplayResponse StartReplay(StartReplayRequest request);
/// <summary>
/// Initiates the asynchronous execution of the StartReplay operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartReplay operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartReplay
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplay">REST API Reference for StartReplay Operation</seealso>
IAsyncResult BeginStartReplay(StartReplayRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the StartReplay operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartReplay.</param>
///
/// <returns>Returns a StartReplayResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplay">REST API Reference for StartReplay Operation</seealso>
StartReplayResponse EndStartReplay(IAsyncResult asyncResult);
#endregion
#region TagResource
/// <summary>
/// Assigns one or more tags (key-value pairs) to the specified EventBridge resource.
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values. In EventBridge, rules and event buses can be tagged.
///
///
/// <para>
/// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly
/// as strings of characters.
/// </para>
///
/// <para>
/// You can use the <code>TagResource</code> action with a resource that already has tags.
/// If you specify a new tag key, this tag is appended to the list of tags associated
/// with the resource. If you specify a tag key that is already associated with the resource,
/// the new tag value that you specify replaces the previous value for that tag.
/// </para>
///
/// <para>
/// You can associate as many as 50 tags with a resource.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResource">REST API Reference for TagResource Operation</seealso>
TagResourceResponse TagResource(TagResourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResource">REST API Reference for TagResource Operation</seealso>
IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param>
///
/// <returns>Returns a TagResourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResource">REST API Reference for TagResource Operation</seealso>
TagResourceResponse EndTagResource(IAsyncResult asyncResult);
#endregion
#region TestEventPattern
/// <summary>
/// Tests whether the specified event pattern matches the provided event.
///
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TestEventPattern service method.</param>
///
/// <returns>The response from the TestEventPattern service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern">REST API Reference for TestEventPattern Operation</seealso>
TestEventPatternResponse TestEventPattern(TestEventPatternRequest request);
/// <summary>
/// Initiates the asynchronous execution of the TestEventPattern operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the TestEventPattern operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTestEventPattern
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern">REST API Reference for TestEventPattern Operation</seealso>
IAsyncResult BeginTestEventPattern(TestEventPatternRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the TestEventPattern operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginTestEventPattern.</param>
///
/// <returns>Returns a TestEventPatternResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern">REST API Reference for TestEventPattern Operation</seealso>
TestEventPatternResponse EndTestEventPattern(IAsyncResult asyncResult);
#endregion
#region UntagResource
/// <summary>
/// Removes one or more tags from the specified EventBridge resource. In Amazon EventBridge
/// (CloudWatch Events), rules and event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UntagResource">REST API Reference for UntagResource Operation</seealso>
UntagResourceResponse UntagResource(UntagResourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UntagResource">REST API Reference for UntagResource Operation</seealso>
IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param>
///
/// <returns>Returns a UntagResourceResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UntagResource">REST API Reference for UntagResource Operation</seealso>
UntagResourceResponse EndUntagResource(IAsyncResult asyncResult);
#endregion
#region UpdateApiDestination
/// <summary>
/// Updates an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApiDestination service method.</param>
///
/// <returns>The response from the UpdateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateApiDestination">REST API Reference for UpdateApiDestination Operation</seealso>
UpdateApiDestinationResponse UpdateApiDestination(UpdateApiDestinationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateApiDestination operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateApiDestination operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateApiDestination
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateApiDestination">REST API Reference for UpdateApiDestination Operation</seealso>
IAsyncResult BeginUpdateApiDestination(UpdateApiDestinationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateApiDestination operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateApiDestination.</param>
///
/// <returns>Returns a UpdateApiDestinationResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateApiDestination">REST API Reference for UpdateApiDestination Operation</seealso>
UpdateApiDestinationResponse EndUpdateApiDestination(IAsyncResult asyncResult);
#endregion
#region UpdateArchive
/// <summary>
/// Updates the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateArchive service method.</param>
///
/// <returns>The response from the UpdateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchive">REST API Reference for UpdateArchive Operation</seealso>
UpdateArchiveResponse UpdateArchive(UpdateArchiveRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateArchive operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateArchive operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateArchive
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchive">REST API Reference for UpdateArchive Operation</seealso>
IAsyncResult BeginUpdateArchive(UpdateArchiveRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateArchive operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateArchive.</param>
///
/// <returns>Returns a UpdateArchiveResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchive">REST API Reference for UpdateArchive Operation</seealso>
UpdateArchiveResponse EndUpdateArchive(IAsyncResult asyncResult);
#endregion
#region UpdateConnection
/// <summary>
/// Updates settings for a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateConnection service method.</param>
///
/// <returns>The response from the UpdateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateConnection">REST API Reference for UpdateConnection Operation</seealso>
UpdateConnectionResponse UpdateConnection(UpdateConnectionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateConnection operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateConnection operation on AmazonCloudWatchEventsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateConnection
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateConnection">REST API Reference for UpdateConnection Operation</seealso>
IAsyncResult BeginUpdateConnection(UpdateConnectionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateConnection operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateConnection.</param>
///
/// <returns>Returns a UpdateConnectionResult from CloudWatchEvents.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateConnection">REST API Reference for UpdateConnection Operation</seealso>
UpdateConnectionResponse EndUpdateConnection(IAsyncResult asyncResult);
#endregion
}
} | 3,191 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.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.CloudWatchEvents.Model;
using Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations;
using Amazon.CloudWatchEvents.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.CloudWatchEvents
{
/// <summary>
/// Implementation for accessing CloudWatchEvents
///
/// Amazon EventBridge helps you to respond to state changes in your Amazon Web Services
/// resources. When your resources change state, they automatically send events to an
/// event stream. You can create rules that match selected events in the stream and route
/// them to targets to take action. You can also use rules to take action on a predetermined
/// schedule. For example, you can configure rules to:
///
/// <ul> <li>
/// <para>
/// Automatically invoke an Lambda function to update DNS entries when an event notifies
/// you that Amazon EC2 instance enters the running state.
/// </para>
/// </li> <li>
/// <para>
/// Direct specific API records from CloudTrail to an Amazon Kinesis data stream for detailed
/// analysis of potential security or availability risks.
/// </para>
/// </li> <li>
/// <para>
/// Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume.
/// </para>
/// </li> </ul>
/// <para>
/// For more information about the features of Amazon EventBridge, see the <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide">Amazon
/// EventBridge User Guide</a>.
/// </para>
/// </summary>
public partial class AmazonCloudWatchEventsClient : AmazonServiceClient, IAmazonCloudWatchEvents
{
private static IServiceMetadata serviceMetadata = new AmazonCloudWatchEventsMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonCloudWatchEventsClient 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.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonCloudWatchEventsClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudWatchEventsConfig()) { }
/// <summary>
/// Constructs AmazonCloudWatchEventsClient 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.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonCloudWatchEventsClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudWatchEventsConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonCloudWatchEventsClient 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.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonCloudWatchEventsClient Configuration Object</param>
public AmazonCloudWatchEventsClient(AmazonCloudWatchEventsConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonCloudWatchEventsClient(AWSCredentials credentials)
: this(credentials, new AmazonCloudWatchEventsConfig())
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonCloudWatchEventsClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonCloudWatchEventsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Credentials and an
/// AmazonCloudWatchEventsClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonCloudWatchEventsClient Configuration Object</param>
public AmazonCloudWatchEventsClient(AWSCredentials credentials, AmazonCloudWatchEventsConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudWatchEventsConfig())
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudWatchEventsConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonCloudWatchEventsClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonCloudWatchEventsClient Configuration Object</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudWatchEventsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudWatchEventsConfig())
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudWatchEventsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonCloudWatchEventsClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonCloudWatchEventsClient Configuration Object</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudWatchEventsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customize the pipeline
/// </summary>
/// <param name="pipeline"></param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudWatchEventsEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region ActivateEventSource
/// <summary>
/// Activates a partner event source that has been deactivated. Once activated, your matching
/// event bus will start receiving events from the event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ActivateEventSource service method.</param>
///
/// <returns>The response from the ActivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ActivateEventSource">REST API Reference for ActivateEventSource Operation</seealso>
public virtual ActivateEventSourceResponse ActivateEventSource(ActivateEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ActivateEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ActivateEventSourceResponseUnmarshaller.Instance;
return Invoke<ActivateEventSourceResponse>(request, options);
}
/// <summary>
/// Activates a partner event source that has been deactivated. Once activated, your matching
/// event bus will start receiving events from the event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ActivateEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ActivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ActivateEventSource">REST API Reference for ActivateEventSource Operation</seealso>
public virtual Task<ActivateEventSourceResponse> ActivateEventSourceAsync(ActivateEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ActivateEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ActivateEventSourceResponseUnmarshaller.Instance;
return InvokeAsync<ActivateEventSourceResponse>(request, options, cancellationToken);
}
#endregion
#region CancelReplay
/// <summary>
/// Cancels the specified replay.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CancelReplay service method.</param>
///
/// <returns>The response from the CancelReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.IllegalStatusException">
/// An error occurred because a replay can be canceled only when the state is Running
/// or Starting.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplay">REST API Reference for CancelReplay Operation</seealso>
public virtual CancelReplayResponse CancelReplay(CancelReplayRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelReplayResponseUnmarshaller.Instance;
return Invoke<CancelReplayResponse>(request, options);
}
/// <summary>
/// Cancels the specified replay.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CancelReplay service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CancelReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.IllegalStatusException">
/// An error occurred because a replay can be canceled only when the state is Running
/// or Starting.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplay">REST API Reference for CancelReplay Operation</seealso>
public virtual Task<CancelReplayResponse> CancelReplayAsync(CancelReplayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelReplayResponseUnmarshaller.Instance;
return InvokeAsync<CancelReplayResponse>(request, options, cancellationToken);
}
#endregion
#region CreateApiDestination
/// <summary>
/// Creates an API destination, which is an HTTP invocation endpoint configured as a target
/// for events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApiDestination service method.</param>
///
/// <returns>The response from the CreateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateApiDestination">REST API Reference for CreateApiDestination Operation</seealso>
public virtual CreateApiDestinationResponse CreateApiDestination(CreateApiDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateApiDestinationResponseUnmarshaller.Instance;
return Invoke<CreateApiDestinationResponse>(request, options);
}
/// <summary>
/// Creates an API destination, which is an HTTP invocation endpoint configured as a target
/// for events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateApiDestination">REST API Reference for CreateApiDestination Operation</seealso>
public virtual Task<CreateApiDestinationResponse> CreateApiDestinationAsync(CreateApiDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateApiDestinationResponseUnmarshaller.Instance;
return InvokeAsync<CreateApiDestinationResponse>(request, options, cancellationToken);
}
#endregion
#region CreateArchive
/// <summary>
/// Creates an archive of events with the specified settings. When you create an archive,
/// incoming events might not immediately start being sent to the archive. Allow a short
/// period of time for changes to take effect. If you do not specify a pattern to filter
/// events sent to the archive, all events are sent to the archive except replayed events.
/// Replayed events are not sent to an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateArchive service method.</param>
///
/// <returns>The response from the CreateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchive">REST API Reference for CreateArchive Operation</seealso>
public virtual CreateArchiveResponse CreateArchive(CreateArchiveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateArchiveResponseUnmarshaller.Instance;
return Invoke<CreateArchiveResponse>(request, options);
}
/// <summary>
/// Creates an archive of events with the specified settings. When you create an archive,
/// incoming events might not immediately start being sent to the archive. Allow a short
/// period of time for changes to take effect. If you do not specify a pattern to filter
/// events sent to the archive, all events are sent to the archive except replayed events.
/// Replayed events are not sent to an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchive">REST API Reference for CreateArchive Operation</seealso>
public virtual Task<CreateArchiveResponse> CreateArchiveAsync(CreateArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateArchiveResponseUnmarshaller.Instance;
return InvokeAsync<CreateArchiveResponse>(request, options, cancellationToken);
}
#endregion
#region CreateConnection
/// <summary>
/// Creates a connection. A connection defines the authorization type and credentials
/// to use for authorization with an API destination HTTP endpoint.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateConnection service method.</param>
///
/// <returns>The response from the CreateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
public virtual CreateConnectionResponse CreateConnection(CreateConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateConnectionResponseUnmarshaller.Instance;
return Invoke<CreateConnectionResponse>(request, options);
}
/// <summary>
/// Creates a connection. A connection defines the authorization type and credentials
/// to use for authorization with an API destination HTTP endpoint.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
public virtual Task<CreateConnectionResponse> CreateConnectionAsync(CreateConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateConnectionResponseUnmarshaller.Instance;
return InvokeAsync<CreateConnectionResponse>(request, options, cancellationToken);
}
#endregion
#region CreateEventBus
/// <summary>
/// Creates a new event bus within your account. This can be a custom event bus which
/// you can use to receive events from your custom applications and services, or it can
/// be a partner event bus which can be matched to a partner event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventBus service method.</param>
///
/// <returns>The response from the CreateEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBus">REST API Reference for CreateEventBus Operation</seealso>
public virtual CreateEventBusResponse CreateEventBus(CreateEventBusRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEventBusResponseUnmarshaller.Instance;
return Invoke<CreateEventBusResponse>(request, options);
}
/// <summary>
/// Creates a new event bus within your account. This can be a custom event bus which
/// you can use to receive events from your custom applications and services, or it can
/// be a partner event bus which can be matched to a partner event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventBus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBus">REST API Reference for CreateEventBus Operation</seealso>
public virtual Task<CreateEventBusResponse> CreateEventBusAsync(CreateEventBusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEventBusResponseUnmarshaller.Instance;
return InvokeAsync<CreateEventBusResponse>(request, options, cancellationToken);
}
#endregion
#region CreatePartnerEventSource
/// <summary>
/// Called by an SaaS partner to create a partner event source. This operation is not
/// used by Amazon Web Services customers.
///
///
/// <para>
/// Each partner event source can be used by one Amazon Web Services account to create
/// a matching partner event bus in that Amazon Web Services account. A SaaS partner must
/// create one partner event source for each Amazon Web Services account that wants to
/// receive those event types.
/// </para>
///
/// <para>
/// A partner event source creates events based on resources within the SaaS partner's
/// service or application.
/// </para>
///
/// <para>
/// An Amazon Web Services account that creates a partner event bus that matches the partner
/// event source can use that event bus to receive events from the partner, and then process
/// them using Amazon Web Services Events rules and targets.
/// </para>
///
/// <para>
/// Partner event source names follow this format:
/// </para>
///
/// <para>
/// <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i> </code>
/// </para>
///
/// <para>
/// <i>partner_name</i> is determined during partner registration and identifies the
/// partner to Amazon Web Services customers. <i>event_namespace</i> is determined by
/// the partner and is a way for the partner to categorize their events. <i>event_name</i>
/// is determined by the partner, and should uniquely identify an event-generating resource
/// within the partner system. The combination of <i>event_namespace</i> and <i>event_name</i>
/// should help Amazon Web Services customers decide whether to create an event bus to
/// receive these events.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreatePartnerEventSource service method.</param>
///
/// <returns>The response from the CreatePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSource">REST API Reference for CreatePartnerEventSource Operation</seealso>
public virtual CreatePartnerEventSourceResponse CreatePartnerEventSource(CreatePartnerEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePartnerEventSourceResponseUnmarshaller.Instance;
return Invoke<CreatePartnerEventSourceResponse>(request, options);
}
/// <summary>
/// Called by an SaaS partner to create a partner event source. This operation is not
/// used by Amazon Web Services customers.
///
///
/// <para>
/// Each partner event source can be used by one Amazon Web Services account to create
/// a matching partner event bus in that Amazon Web Services account. A SaaS partner must
/// create one partner event source for each Amazon Web Services account that wants to
/// receive those event types.
/// </para>
///
/// <para>
/// A partner event source creates events based on resources within the SaaS partner's
/// service or application.
/// </para>
///
/// <para>
/// An Amazon Web Services account that creates a partner event bus that matches the partner
/// event source can use that event bus to receive events from the partner, and then process
/// them using Amazon Web Services Events rules and targets.
/// </para>
///
/// <para>
/// Partner event source names follow this format:
/// </para>
///
/// <para>
/// <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i> </code>
/// </para>
///
/// <para>
/// <i>partner_name</i> is determined during partner registration and identifies the
/// partner to Amazon Web Services customers. <i>event_namespace</i> is determined by
/// the partner and is a way for the partner to categorize their events. <i>event_name</i>
/// is determined by the partner, and should uniquely identify an event-generating resource
/// within the partner system. The combination of <i>event_namespace</i> and <i>event_name</i>
/// should help Amazon Web Services customers decide whether to create an event bus to
/// receive these events.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreatePartnerEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreatePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSource">REST API Reference for CreatePartnerEventSource Operation</seealso>
public virtual Task<CreatePartnerEventSourceResponse> CreatePartnerEventSourceAsync(CreatePartnerEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePartnerEventSourceResponseUnmarshaller.Instance;
return InvokeAsync<CreatePartnerEventSourceResponse>(request, options, cancellationToken);
}
#endregion
#region DeactivateEventSource
/// <summary>
/// You can use this operation to temporarily stop receiving events from the specified
/// partner event source. The matching event bus is not deleted.
///
///
/// <para>
/// When you deactivate a partner event source, the source goes into PENDING state. If
/// it remains in PENDING state for more than two weeks, it is deleted.
/// </para>
///
/// <para>
/// To activate a deactivated partner event source, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ActivateEventSource.html">ActivateEventSource</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeactivateEventSource service method.</param>
///
/// <returns>The response from the DeactivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeactivateEventSource">REST API Reference for DeactivateEventSource Operation</seealso>
public virtual DeactivateEventSourceResponse DeactivateEventSource(DeactivateEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeactivateEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeactivateEventSourceResponseUnmarshaller.Instance;
return Invoke<DeactivateEventSourceResponse>(request, options);
}
/// <summary>
/// You can use this operation to temporarily stop receiving events from the specified
/// partner event source. The matching event bus is not deleted.
///
///
/// <para>
/// When you deactivate a partner event source, the source goes into PENDING state. If
/// it remains in PENDING state for more than two weeks, it is deleted.
/// </para>
///
/// <para>
/// To activate a deactivated partner event source, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ActivateEventSource.html">ActivateEventSource</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeactivateEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeactivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeactivateEventSource">REST API Reference for DeactivateEventSource Operation</seealso>
public virtual Task<DeactivateEventSourceResponse> DeactivateEventSourceAsync(DeactivateEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeactivateEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeactivateEventSourceResponseUnmarshaller.Instance;
return InvokeAsync<DeactivateEventSourceResponse>(request, options, cancellationToken);
}
#endregion
#region DeauthorizeConnection
/// <summary>
/// Removes all authorization parameters from the connection. This lets you remove the
/// secret from the connection so you can reuse it without having to create a new connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeauthorizeConnection service method.</param>
///
/// <returns>The response from the DeauthorizeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeauthorizeConnection">REST API Reference for DeauthorizeConnection Operation</seealso>
public virtual DeauthorizeConnectionResponse DeauthorizeConnection(DeauthorizeConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeauthorizeConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeauthorizeConnectionResponseUnmarshaller.Instance;
return Invoke<DeauthorizeConnectionResponse>(request, options);
}
/// <summary>
/// Removes all authorization parameters from the connection. This lets you remove the
/// secret from the connection so you can reuse it without having to create a new connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeauthorizeConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeauthorizeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeauthorizeConnection">REST API Reference for DeauthorizeConnection Operation</seealso>
public virtual Task<DeauthorizeConnectionResponse> DeauthorizeConnectionAsync(DeauthorizeConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeauthorizeConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeauthorizeConnectionResponseUnmarshaller.Instance;
return InvokeAsync<DeauthorizeConnectionResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteApiDestination
/// <summary>
/// Deletes the specified API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApiDestination service method.</param>
///
/// <returns>The response from the DeleteApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteApiDestination">REST API Reference for DeleteApiDestination Operation</seealso>
public virtual DeleteApiDestinationResponse DeleteApiDestination(DeleteApiDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApiDestinationResponseUnmarshaller.Instance;
return Invoke<DeleteApiDestinationResponse>(request, options);
}
/// <summary>
/// Deletes the specified API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteApiDestination">REST API Reference for DeleteApiDestination Operation</seealso>
public virtual Task<DeleteApiDestinationResponse> DeleteApiDestinationAsync(DeleteApiDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApiDestinationResponseUnmarshaller.Instance;
return InvokeAsync<DeleteApiDestinationResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteArchive
/// <summary>
/// Deletes the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteArchive service method.</param>
///
/// <returns>The response from the DeleteArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchive">REST API Reference for DeleteArchive Operation</seealso>
public virtual DeleteArchiveResponse DeleteArchive(DeleteArchiveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteArchiveResponseUnmarshaller.Instance;
return Invoke<DeleteArchiveResponse>(request, options);
}
/// <summary>
/// Deletes the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchive">REST API Reference for DeleteArchive Operation</seealso>
public virtual Task<DeleteArchiveResponse> DeleteArchiveAsync(DeleteArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteArchiveResponseUnmarshaller.Instance;
return InvokeAsync<DeleteArchiveResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteConnection
/// <summary>
/// Deletes a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection service method.</param>
///
/// <returns>The response from the DeleteConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
public virtual DeleteConnectionResponse DeleteConnection(DeleteConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteConnectionResponseUnmarshaller.Instance;
return Invoke<DeleteConnectionResponse>(request, options);
}
/// <summary>
/// Deletes a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
public virtual Task<DeleteConnectionResponse> DeleteConnectionAsync(DeleteConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteConnectionResponseUnmarshaller.Instance;
return InvokeAsync<DeleteConnectionResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteEventBus
/// <summary>
/// Deletes the specified custom event bus or partner event bus. All rules associated
/// with this event bus need to be deleted. You can't delete your account's default event
/// bus.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventBus service method.</param>
///
/// <returns>The response from the DeleteEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteEventBus">REST API Reference for DeleteEventBus Operation</seealso>
public virtual DeleteEventBusResponse DeleteEventBus(DeleteEventBusRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEventBusResponseUnmarshaller.Instance;
return Invoke<DeleteEventBusResponse>(request, options);
}
/// <summary>
/// Deletes the specified custom event bus or partner event bus. All rules associated
/// with this event bus need to be deleted. You can't delete your account's default event
/// bus.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventBus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteEventBus">REST API Reference for DeleteEventBus Operation</seealso>
public virtual Task<DeleteEventBusResponse> DeleteEventBusAsync(DeleteEventBusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEventBusResponseUnmarshaller.Instance;
return InvokeAsync<DeleteEventBusResponse>(request, options, cancellationToken);
}
#endregion
#region DeletePartnerEventSource
/// <summary>
/// This operation is used by SaaS partners to delete a partner event source. This operation
/// is not used by Amazon Web Services customers.
///
///
/// <para>
/// When you delete an event source, the status of the corresponding partner event bus
/// in the Amazon Web Services customer account becomes DELETED.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeletePartnerEventSource service method.</param>
///
/// <returns>The response from the DeletePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeletePartnerEventSource">REST API Reference for DeletePartnerEventSource Operation</seealso>
public virtual DeletePartnerEventSourceResponse DeletePartnerEventSource(DeletePartnerEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePartnerEventSourceResponseUnmarshaller.Instance;
return Invoke<DeletePartnerEventSourceResponse>(request, options);
}
/// <summary>
/// This operation is used by SaaS partners to delete a partner event source. This operation
/// is not used by Amazon Web Services customers.
///
///
/// <para>
/// When you delete an event source, the status of the corresponding partner event bus
/// in the Amazon Web Services customer account becomes DELETED.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeletePartnerEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeletePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeletePartnerEventSource">REST API Reference for DeletePartnerEventSource Operation</seealso>
public virtual Task<DeletePartnerEventSourceResponse> DeletePartnerEventSourceAsync(DeletePartnerEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePartnerEventSourceResponseUnmarshaller.Instance;
return InvokeAsync<DeletePartnerEventSourceResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteRule
/// <summary>
/// Deletes the specified rule.
///
///
/// <para>
/// Before you can delete the rule, you must remove all targets, using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemoveTargets.html">RemoveTargets</a>.
/// </para>
///
/// <para>
/// When you delete a rule, incoming events might continue to match to the deleted rule.
/// Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// If you call delete rule multiple times for the same rule, all calls will succeed.
/// When you call delete rule for a non-existent custom eventbus, <code>ResourceNotFoundException</code>
/// is returned.
/// </para>
///
/// <para>
/// Managed rules are rules created and managed by another Amazon Web Services service
/// on your behalf. These rules are created by those other Amazon Web Services services
/// to support functionality in those services. You can delete these rules using the <code>Force</code>
/// option, but you should do so only if you are sure the other service is not still using
/// that rule.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteRule service method.</param>
///
/// <returns>The response from the DeleteRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule">REST API Reference for DeleteRule Operation</seealso>
public virtual DeleteRuleResponse DeleteRule(DeleteRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRuleResponseUnmarshaller.Instance;
return Invoke<DeleteRuleResponse>(request, options);
}
/// <summary>
/// Deletes the specified rule.
///
///
/// <para>
/// Before you can delete the rule, you must remove all targets, using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemoveTargets.html">RemoveTargets</a>.
/// </para>
///
/// <para>
/// When you delete a rule, incoming events might continue to match to the deleted rule.
/// Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// If you call delete rule multiple times for the same rule, all calls will succeed.
/// When you call delete rule for a non-existent custom eventbus, <code>ResourceNotFoundException</code>
/// is returned.
/// </para>
///
/// <para>
/// Managed rules are rules created and managed by another Amazon Web Services service
/// on your behalf. These rules are created by those other Amazon Web Services services
/// to support functionality in those services. You can delete these rules using the <code>Force</code>
/// option, but you should do so only if you are sure the other service is not still using
/// that rule.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule">REST API Reference for DeleteRule Operation</seealso>
public virtual Task<DeleteRuleResponse> DeleteRuleAsync(DeleteRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRuleResponseUnmarshaller.Instance;
return InvokeAsync<DeleteRuleResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeApiDestination
/// <summary>
/// Retrieves details about an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApiDestination service method.</param>
///
/// <returns>The response from the DescribeApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeApiDestination">REST API Reference for DescribeApiDestination Operation</seealso>
public virtual DescribeApiDestinationResponse DescribeApiDestination(DescribeApiDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeApiDestinationResponseUnmarshaller.Instance;
return Invoke<DescribeApiDestinationResponse>(request, options);
}
/// <summary>
/// Retrieves details about an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeApiDestination">REST API Reference for DescribeApiDestination Operation</seealso>
public virtual Task<DescribeApiDestinationResponse> DescribeApiDestinationAsync(DescribeApiDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeApiDestinationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeApiDestinationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeArchive
/// <summary>
/// Retrieves details about an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeArchive service method.</param>
///
/// <returns>The response from the DescribeArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchive">REST API Reference for DescribeArchive Operation</seealso>
public virtual DescribeArchiveResponse DescribeArchive(DescribeArchiveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeArchiveResponseUnmarshaller.Instance;
return Invoke<DescribeArchiveResponse>(request, options);
}
/// <summary>
/// Retrieves details about an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchive">REST API Reference for DescribeArchive Operation</seealso>
public virtual Task<DescribeArchiveResponse> DescribeArchiveAsync(DescribeArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeArchiveResponseUnmarshaller.Instance;
return InvokeAsync<DescribeArchiveResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeConnection
/// <summary>
/// Retrieves details about a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConnection service method.</param>
///
/// <returns>The response from the DescribeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeConnection">REST API Reference for DescribeConnection Operation</seealso>
public virtual DescribeConnectionResponse DescribeConnection(DescribeConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeConnectionResponseUnmarshaller.Instance;
return Invoke<DescribeConnectionResponse>(request, options);
}
/// <summary>
/// Retrieves details about a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeConnection">REST API Reference for DescribeConnection Operation</seealso>
public virtual Task<DescribeConnectionResponse> DescribeConnectionAsync(DescribeConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeConnectionResponseUnmarshaller.Instance;
return InvokeAsync<DescribeConnectionResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEventBus
/// <summary>
/// Displays details about an event bus in your account. This can include the external
/// Amazon Web Services accounts that are permitted to write events to your default event
/// bus, and the associated policy. For custom event buses and partner event buses, it
/// displays the name, ARN, policy, state, and creation time.
///
///
/// <para>
/// To enable your account to receive events from other accounts on its default event
/// bus, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// For more information about partner event buses, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventBus service method.</param>
///
/// <returns>The response from the DescribeEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus">REST API Reference for DescribeEventBus Operation</seealso>
public virtual DescribeEventBusResponse DescribeEventBus(DescribeEventBusRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventBusResponseUnmarshaller.Instance;
return Invoke<DescribeEventBusResponse>(request, options);
}
/// <summary>
/// Displays details about an event bus in your account. This can include the external
/// Amazon Web Services accounts that are permitted to write events to your default event
/// bus, and the associated policy. For custom event buses and partner event buses, it
/// displays the name, ARN, policy, state, and creation time.
///
///
/// <para>
/// To enable your account to receive events from other accounts on its default event
/// bus, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// For more information about partner event buses, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventBus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus">REST API Reference for DescribeEventBus Operation</seealso>
public virtual Task<DescribeEventBusResponse> DescribeEventBusAsync(DescribeEventBusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventBusResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventBusResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEventSource
/// <summary>
/// This operation lists details about a partner event source that is shared with your
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventSource service method.</param>
///
/// <returns>The response from the DescribeEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSource">REST API Reference for DescribeEventSource Operation</seealso>
public virtual DescribeEventSourceResponse DescribeEventSource(DescribeEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventSourceResponseUnmarshaller.Instance;
return Invoke<DescribeEventSourceResponse>(request, options);
}
/// <summary>
/// This operation lists details about a partner event source that is shared with your
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSource">REST API Reference for DescribeEventSource Operation</seealso>
public virtual Task<DescribeEventSourceResponse> DescribeEventSourceAsync(DescribeEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventSourceResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventSourceResponse>(request, options, cancellationToken);
}
#endregion
#region DescribePartnerEventSource
/// <summary>
/// An SaaS partner can use this operation to list details about a partner event source
/// that they have created. Amazon Web Services customers do not use this operation. Instead,
/// Amazon Web Services customers can use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventSource.html">DescribeEventSource</a>
/// to see details about a partner event source that is shared with them.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribePartnerEventSource service method.</param>
///
/// <returns>The response from the DescribePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribePartnerEventSource">REST API Reference for DescribePartnerEventSource Operation</seealso>
public virtual DescribePartnerEventSourceResponse DescribePartnerEventSource(DescribePartnerEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePartnerEventSourceResponseUnmarshaller.Instance;
return Invoke<DescribePartnerEventSourceResponse>(request, options);
}
/// <summary>
/// An SaaS partner can use this operation to list details about a partner event source
/// that they have created. Amazon Web Services customers do not use this operation. Instead,
/// Amazon Web Services customers can use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventSource.html">DescribeEventSource</a>
/// to see details about a partner event source that is shared with them.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribePartnerEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribePartnerEventSource">REST API Reference for DescribePartnerEventSource Operation</seealso>
public virtual Task<DescribePartnerEventSourceResponse> DescribePartnerEventSourceAsync(DescribePartnerEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePartnerEventSourceResponseUnmarshaller.Instance;
return InvokeAsync<DescribePartnerEventSourceResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeReplay
/// <summary>
/// Retrieves details about a replay. Use <code>DescribeReplay</code> to determine the
/// progress of a running replay. A replay processes events to replay based on the time
/// in the event, and replays them using 1 minute intervals. If you use <code>StartReplay</code>
/// and specify an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers
/// a 20 minute time range, the events are replayed from the first minute of that 20 minute
/// range first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeReplay service method.</param>
///
/// <returns>The response from the DescribeReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplay">REST API Reference for DescribeReplay Operation</seealso>
public virtual DescribeReplayResponse DescribeReplay(DescribeReplayRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeReplayResponseUnmarshaller.Instance;
return Invoke<DescribeReplayResponse>(request, options);
}
/// <summary>
/// Retrieves details about a replay. Use <code>DescribeReplay</code> to determine the
/// progress of a running replay. A replay processes events to replay based on the time
/// in the event, and replays them using 1 minute intervals. If you use <code>StartReplay</code>
/// and specify an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers
/// a 20 minute time range, the events are replayed from the first minute of that 20 minute
/// range first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeReplay service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplay">REST API Reference for DescribeReplay Operation</seealso>
public virtual Task<DescribeReplayResponse> DescribeReplayAsync(DescribeReplayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeReplayResponseUnmarshaller.Instance;
return InvokeAsync<DescribeReplayResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeRule
/// <summary>
/// Describes the specified rule.
///
///
/// <para>
/// DescribeRule does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeRule service method.</param>
///
/// <returns>The response from the DescribeRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule">REST API Reference for DescribeRule Operation</seealso>
public virtual DescribeRuleResponse DescribeRule(DescribeRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeRuleResponseUnmarshaller.Instance;
return Invoke<DescribeRuleResponse>(request, options);
}
/// <summary>
/// Describes the specified rule.
///
///
/// <para>
/// DescribeRule does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule">REST API Reference for DescribeRule Operation</seealso>
public virtual Task<DescribeRuleResponse> DescribeRuleAsync(DescribeRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeRuleResponseUnmarshaller.Instance;
return InvokeAsync<DescribeRuleResponse>(request, options, cancellationToken);
}
#endregion
#region DisableRule
/// <summary>
/// Disables the specified rule. A disabled rule won't match any events, and won't self-trigger
/// if it has a schedule expression.
///
///
/// <para>
/// When you disable a rule, incoming events might continue to match to the disabled rule.
/// Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRule service method.</param>
///
/// <returns>The response from the DisableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule">REST API Reference for DisableRule Operation</seealso>
public virtual DisableRuleResponse DisableRule(DisableRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableRuleResponseUnmarshaller.Instance;
return Invoke<DisableRuleResponse>(request, options);
}
/// <summary>
/// Disables the specified rule. A disabled rule won't match any events, and won't self-trigger
/// if it has a schedule expression.
///
///
/// <para>
/// When you disable a rule, incoming events might continue to match to the disabled rule.
/// Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DisableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule">REST API Reference for DisableRule Operation</seealso>
public virtual Task<DisableRuleResponse> DisableRuleAsync(DisableRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableRuleResponseUnmarshaller.Instance;
return InvokeAsync<DisableRuleResponse>(request, options, cancellationToken);
}
#endregion
#region EnableRule
/// <summary>
/// Enables the specified rule. If the rule does not exist, the operation fails.
///
///
/// <para>
/// When you enable a rule, incoming events might not immediately start matching to a
/// newly enabled rule. Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRule service method.</param>
///
/// <returns>The response from the EnableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule">REST API Reference for EnableRule Operation</seealso>
public virtual EnableRuleResponse EnableRule(EnableRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableRuleResponseUnmarshaller.Instance;
return Invoke<EnableRuleResponse>(request, options);
}
/// <summary>
/// Enables the specified rule. If the rule does not exist, the operation fails.
///
///
/// <para>
/// When you enable a rule, incoming events might not immediately start matching to a
/// newly enabled rule. Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the EnableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule">REST API Reference for EnableRule Operation</seealso>
public virtual Task<EnableRuleResponse> EnableRuleAsync(EnableRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableRuleResponseUnmarshaller.Instance;
return InvokeAsync<EnableRuleResponse>(request, options, cancellationToken);
}
#endregion
#region ListApiDestinations
/// <summary>
/// Retrieves a list of API destination in the account in the current Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApiDestinations service method.</param>
///
/// <returns>The response from the ListApiDestinations service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListApiDestinations">REST API Reference for ListApiDestinations Operation</seealso>
public virtual ListApiDestinationsResponse ListApiDestinations(ListApiDestinationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApiDestinationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApiDestinationsResponseUnmarshaller.Instance;
return Invoke<ListApiDestinationsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of API destination in the account in the current Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApiDestinations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListApiDestinations service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListApiDestinations">REST API Reference for ListApiDestinations Operation</seealso>
public virtual Task<ListApiDestinationsResponse> ListApiDestinationsAsync(ListApiDestinationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApiDestinationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApiDestinationsResponseUnmarshaller.Instance;
return InvokeAsync<ListApiDestinationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListArchives
/// <summary>
/// Lists your archives. You can either list all the archives or you can provide a prefix
/// to match to the archive names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListArchives service method.</param>
///
/// <returns>The response from the ListArchives service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchives">REST API Reference for ListArchives Operation</seealso>
public virtual ListArchivesResponse ListArchives(ListArchivesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListArchivesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListArchivesResponseUnmarshaller.Instance;
return Invoke<ListArchivesResponse>(request, options);
}
/// <summary>
/// Lists your archives. You can either list all the archives or you can provide a prefix
/// to match to the archive names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListArchives service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListArchives service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchives">REST API Reference for ListArchives Operation</seealso>
public virtual Task<ListArchivesResponse> ListArchivesAsync(ListArchivesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListArchivesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListArchivesResponseUnmarshaller.Instance;
return InvokeAsync<ListArchivesResponse>(request, options, cancellationToken);
}
#endregion
#region ListConnections
/// <summary>
/// Retrieves a list of connections from the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConnections service method.</param>
///
/// <returns>The response from the ListConnections service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListConnections">REST API Reference for ListConnections Operation</seealso>
public virtual ListConnectionsResponse ListConnections(ListConnectionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConnectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConnectionsResponseUnmarshaller.Instance;
return Invoke<ListConnectionsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of connections from the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConnections service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListConnections service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListConnections">REST API Reference for ListConnections Operation</seealso>
public virtual Task<ListConnectionsResponse> ListConnectionsAsync(ListConnectionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConnectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConnectionsResponseUnmarshaller.Instance;
return InvokeAsync<ListConnectionsResponse>(request, options, cancellationToken);
}
#endregion
#region ListEventBuses
/// <summary>
/// Lists all the event buses in your account, including the default event bus, custom
/// event buses, and partner event buses.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventBuses service method.</param>
///
/// <returns>The response from the ListEventBuses service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventBuses">REST API Reference for ListEventBuses Operation</seealso>
public virtual ListEventBusesResponse ListEventBuses(ListEventBusesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventBusesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventBusesResponseUnmarshaller.Instance;
return Invoke<ListEventBusesResponse>(request, options);
}
/// <summary>
/// Lists all the event buses in your account, including the default event bus, custom
/// event buses, and partner event buses.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventBuses service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListEventBuses service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventBuses">REST API Reference for ListEventBuses Operation</seealso>
public virtual Task<ListEventBusesResponse> ListEventBusesAsync(ListEventBusesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventBusesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventBusesResponseUnmarshaller.Instance;
return InvokeAsync<ListEventBusesResponse>(request, options, cancellationToken);
}
#endregion
#region ListEventSources
/// <summary>
/// You can use this to see all the partner event sources that have been shared with your
/// Amazon Web Services account. For more information about partner event sources, see
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventSources service method.</param>
///
/// <returns>The response from the ListEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventSources">REST API Reference for ListEventSources Operation</seealso>
public virtual ListEventSourcesResponse ListEventSources(ListEventSourcesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventSourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventSourcesResponseUnmarshaller.Instance;
return Invoke<ListEventSourcesResponse>(request, options);
}
/// <summary>
/// You can use this to see all the partner event sources that have been shared with your
/// Amazon Web Services account. For more information about partner event sources, see
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventSources service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventSources">REST API Reference for ListEventSources Operation</seealso>
public virtual Task<ListEventSourcesResponse> ListEventSourcesAsync(ListEventSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventSourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventSourcesResponseUnmarshaller.Instance;
return InvokeAsync<ListEventSourcesResponse>(request, options, cancellationToken);
}
#endregion
#region ListPartnerEventSourceAccounts
/// <summary>
/// An SaaS partner can use this operation to display the Amazon Web Services account
/// ID that a particular partner event source name is associated with. This operation
/// is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSourceAccounts service method.</param>
///
/// <returns>The response from the ListPartnerEventSourceAccounts service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSourceAccounts">REST API Reference for ListPartnerEventSourceAccounts Operation</seealso>
public virtual ListPartnerEventSourceAccountsResponse ListPartnerEventSourceAccounts(ListPartnerEventSourceAccountsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPartnerEventSourceAccountsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPartnerEventSourceAccountsResponseUnmarshaller.Instance;
return Invoke<ListPartnerEventSourceAccountsResponse>(request, options);
}
/// <summary>
/// An SaaS partner can use this operation to display the Amazon Web Services account
/// ID that a particular partner event source name is associated with. This operation
/// is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSourceAccounts service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListPartnerEventSourceAccounts service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSourceAccounts">REST API Reference for ListPartnerEventSourceAccounts Operation</seealso>
public virtual Task<ListPartnerEventSourceAccountsResponse> ListPartnerEventSourceAccountsAsync(ListPartnerEventSourceAccountsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPartnerEventSourceAccountsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPartnerEventSourceAccountsResponseUnmarshaller.Instance;
return InvokeAsync<ListPartnerEventSourceAccountsResponse>(request, options, cancellationToken);
}
#endregion
#region ListPartnerEventSources
/// <summary>
/// An SaaS partner can use this operation to list all the partner event source names
/// that they have created. This operation is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSources service method.</param>
///
/// <returns>The response from the ListPartnerEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSources">REST API Reference for ListPartnerEventSources Operation</seealso>
public virtual ListPartnerEventSourcesResponse ListPartnerEventSources(ListPartnerEventSourcesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPartnerEventSourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPartnerEventSourcesResponseUnmarshaller.Instance;
return Invoke<ListPartnerEventSourcesResponse>(request, options);
}
/// <summary>
/// An SaaS partner can use this operation to list all the partner event source names
/// that they have created. This operation is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSources service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListPartnerEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSources">REST API Reference for ListPartnerEventSources Operation</seealso>
public virtual Task<ListPartnerEventSourcesResponse> ListPartnerEventSourcesAsync(ListPartnerEventSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPartnerEventSourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPartnerEventSourcesResponseUnmarshaller.Instance;
return InvokeAsync<ListPartnerEventSourcesResponse>(request, options, cancellationToken);
}
#endregion
#region ListReplays
/// <summary>
/// Lists your replays. You can either list all the replays or you can provide a prefix
/// to match to the replay names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListReplays service method.</param>
///
/// <returns>The response from the ListReplays service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplays">REST API Reference for ListReplays Operation</seealso>
public virtual ListReplaysResponse ListReplays(ListReplaysRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListReplaysRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListReplaysResponseUnmarshaller.Instance;
return Invoke<ListReplaysResponse>(request, options);
}
/// <summary>
/// Lists your replays. You can either list all the replays or you can provide a prefix
/// to match to the replay names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListReplays service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListReplays service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplays">REST API Reference for ListReplays Operation</seealso>
public virtual Task<ListReplaysResponse> ListReplaysAsync(ListReplaysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListReplaysRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListReplaysResponseUnmarshaller.Instance;
return InvokeAsync<ListReplaysResponse>(request, options, cancellationToken);
}
#endregion
#region ListRuleNamesByTarget
/// <summary>
/// Lists the rules for the specified target. You can see which of the rules in Amazon
/// EventBridge can invoke a specific target in your account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRuleNamesByTarget service method.</param>
///
/// <returns>The response from the ListRuleNamesByTarget service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget">REST API Reference for ListRuleNamesByTarget Operation</seealso>
public virtual ListRuleNamesByTargetResponse ListRuleNamesByTarget(ListRuleNamesByTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRuleNamesByTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRuleNamesByTargetResponseUnmarshaller.Instance;
return Invoke<ListRuleNamesByTargetResponse>(request, options);
}
/// <summary>
/// Lists the rules for the specified target. You can see which of the rules in Amazon
/// EventBridge can invoke a specific target in your account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRuleNamesByTarget service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRuleNamesByTarget service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget">REST API Reference for ListRuleNamesByTarget Operation</seealso>
public virtual Task<ListRuleNamesByTargetResponse> ListRuleNamesByTargetAsync(ListRuleNamesByTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRuleNamesByTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRuleNamesByTargetResponseUnmarshaller.Instance;
return InvokeAsync<ListRuleNamesByTargetResponse>(request, options, cancellationToken);
}
#endregion
#region ListRules
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
public virtual ListRulesResponse ListRules()
{
return ListRules(new ListRulesRequest());
}
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRules service method.</param>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
public virtual ListRulesResponse ListRules(ListRulesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRulesResponseUnmarshaller.Instance;
return Invoke<ListRulesResponse>(request, options);
}
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
public virtual Task<ListRulesResponse> ListRulesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return ListRulesAsync(new ListRulesRequest(), cancellationToken);
}
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRules service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
public virtual Task<ListRulesResponse> ListRulesAsync(ListRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRulesResponseUnmarshaller.Instance;
return InvokeAsync<ListRulesResponse>(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
/// <summary>
/// Displays the tags associated with an EventBridge resource. In EventBridge, rules and
/// event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke<ListTagsForResourceResponse>(request, options);
}
/// <summary>
/// Displays the tags associated with an EventBridge resource. In EventBridge, rules and
/// event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken);
}
#endregion
#region ListTargetsByRule
/// <summary>
/// Lists the targets assigned to the specified rule.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTargetsByRule service method.</param>
///
/// <returns>The response from the ListTargetsByRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule">REST API Reference for ListTargetsByRule Operation</seealso>
public virtual ListTargetsByRuleResponse ListTargetsByRule(ListTargetsByRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTargetsByRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTargetsByRuleResponseUnmarshaller.Instance;
return Invoke<ListTargetsByRuleResponse>(request, options);
}
/// <summary>
/// Lists the targets assigned to the specified rule.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTargetsByRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTargetsByRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule">REST API Reference for ListTargetsByRule Operation</seealso>
public virtual Task<ListTargetsByRuleResponse> ListTargetsByRuleAsync(ListTargetsByRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTargetsByRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTargetsByRuleResponseUnmarshaller.Instance;
return InvokeAsync<ListTargetsByRuleResponse>(request, options, cancellationToken);
}
#endregion
#region PutEvents
/// <summary>
/// Sends custom events to Amazon EventBridge so that they can be matched to rules.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutEvents service method.</param>
///
/// <returns>The response from the PutEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents">REST API Reference for PutEvents Operation</seealso>
public virtual PutEventsResponse PutEvents(PutEventsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutEventsResponseUnmarshaller.Instance;
return Invoke<PutEventsResponse>(request, options);
}
/// <summary>
/// Sends custom events to Amazon EventBridge so that they can be matched to rules.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutEvents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents">REST API Reference for PutEvents Operation</seealso>
public virtual Task<PutEventsResponse> PutEventsAsync(PutEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutEventsResponseUnmarshaller.Instance;
return InvokeAsync<PutEventsResponse>(request, options, cancellationToken);
}
#endregion
#region PutPartnerEvents
/// <summary>
/// This is used by SaaS partners to write events to a customer's partner event bus. Amazon
/// Web Services customers do not use this operation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPartnerEvents service method.</param>
///
/// <returns>The response from the PutPartnerEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEvents">REST API Reference for PutPartnerEvents Operation</seealso>
public virtual PutPartnerEventsResponse PutPartnerEvents(PutPartnerEventsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutPartnerEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutPartnerEventsResponseUnmarshaller.Instance;
return Invoke<PutPartnerEventsResponse>(request, options);
}
/// <summary>
/// This is used by SaaS partners to write events to a customer's partner event bus. Amazon
/// Web Services customers do not use this operation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPartnerEvents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutPartnerEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEvents">REST API Reference for PutPartnerEvents Operation</seealso>
public virtual Task<PutPartnerEventsResponse> PutPartnerEventsAsync(PutPartnerEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutPartnerEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutPartnerEventsResponseUnmarshaller.Instance;
return InvokeAsync<PutPartnerEventsResponse>(request, options, cancellationToken);
}
#endregion
#region PutPermission
/// <summary>
/// Running <code>PutPermission</code> permits the specified Amazon Web Services account
/// or Amazon Web Services organization to put events to the specified <i>event bus</i>.
/// Amazon EventBridge (CloudWatch Events) rules in your account are triggered by these
/// events arriving to an event bus in your account.
///
///
/// <para>
/// For another account to send events to your account, that external account must have
/// an EventBridge rule with your account's event bus as a target.
/// </para>
///
/// <para>
/// To enable multiple Amazon Web Services accounts to put events to your event bus, run
/// <code>PutPermission</code> once for each of these accounts. Or, if all the accounts
/// are members of the same Amazon Web Services organization, you can run <code>PutPermission</code>
/// once specifying <code>Principal</code> as "*" and specifying the Amazon Web Services
/// organization ID in <code>Condition</code>, to grant permissions to all accounts in
/// that organization.
/// </para>
///
/// <para>
/// If you grant permissions using an organization, then accounts in that organization
/// must specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code>
/// to add your account's event bus as a target. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// The permission policy on the event bus cannot exceed 10 KB in size.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPermission service method.</param>
///
/// <returns>The response from the PutPermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.PolicyLengthExceededException">
/// The event bus policy is too long. For more information, see the limits.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission">REST API Reference for PutPermission Operation</seealso>
public virtual PutPermissionResponse PutPermission(PutPermissionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutPermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutPermissionResponseUnmarshaller.Instance;
return Invoke<PutPermissionResponse>(request, options);
}
/// <summary>
/// Running <code>PutPermission</code> permits the specified Amazon Web Services account
/// or Amazon Web Services organization to put events to the specified <i>event bus</i>.
/// Amazon EventBridge (CloudWatch Events) rules in your account are triggered by these
/// events arriving to an event bus in your account.
///
///
/// <para>
/// For another account to send events to your account, that external account must have
/// an EventBridge rule with your account's event bus as a target.
/// </para>
///
/// <para>
/// To enable multiple Amazon Web Services accounts to put events to your event bus, run
/// <code>PutPermission</code> once for each of these accounts. Or, if all the accounts
/// are members of the same Amazon Web Services organization, you can run <code>PutPermission</code>
/// once specifying <code>Principal</code> as "*" and specifying the Amazon Web Services
/// organization ID in <code>Condition</code>, to grant permissions to all accounts in
/// that organization.
/// </para>
///
/// <para>
/// If you grant permissions using an organization, then accounts in that organization
/// must specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code>
/// to add your account's event bus as a target. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// The permission policy on the event bus cannot exceed 10 KB in size.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPermission service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutPermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.PolicyLengthExceededException">
/// The event bus policy is too long. For more information, see the limits.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission">REST API Reference for PutPermission Operation</seealso>
public virtual Task<PutPermissionResponse> PutPermissionAsync(PutPermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutPermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutPermissionResponseUnmarshaller.Instance;
return InvokeAsync<PutPermissionResponse>(request, options, cancellationToken);
}
#endregion
#region PutRule
/// <summary>
/// Creates or updates the specified rule. Rules are enabled by default, or based on value
/// of the state. You can disable a rule using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DisableRule.html">DisableRule</a>.
///
///
/// <para>
/// A single rule watches for events from a single event bus. Events generated by Amazon
/// Web Services services go to your account's default event bus. Events generated by
/// SaaS partner services or applications go to the matching partner event bus. If you
/// have custom applications or services, you can specify whether their events go to your
/// default event bus or a custom event bus that you have created. For more information,
/// see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
///
/// <para>
/// If you are updating an existing rule, the rule is replaced with what you specify in
/// this <code>PutRule</code> command. If you omit arguments in <code>PutRule</code>,
/// the old values for those arguments are not kept. Instead, they are replaced with null
/// values.
/// </para>
///
/// <para>
/// When you create or update a rule, incoming events might not immediately start matching
/// to new or updated rules. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns
/// are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger
/// based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression,
/// in which case the rule triggers on matching events as well as on a schedule.
/// </para>
///
/// <para>
/// When you initially create a rule, you can optionally assign one or more tags to the
/// rule. Tags can help you organize and categorize your resources. You can also use them
/// to scope user permissions, by granting a user permission to access or change only
/// rules with certain tag values. To use the <code>PutRule</code> operation and assign
/// tags, you must have both the <code>events:PutRule</code> and <code>events:TagResource</code>
/// permissions.
/// </para>
///
/// <para>
/// If you are updating an existing rule, any tags you specify in the <code>PutRule</code>
/// operation are ignored. To update the tags of an existing rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_TagResource.html">TagResource</a>
/// and <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UntagResource.html">UntagResource</a>.
/// </para>
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
///
/// <para>
/// In EventBridge, it is possible to create rules that lead to infinite loops, where
/// a rule is fired repeatedly. For example, a rule might detect that ACLs have changed
/// on an S3 bucket, and trigger software to change them to the desired state. If the
/// rule is not written carefully, the subsequent change to the ACLs fires the rule again,
/// creating an infinite loop.
/// </para>
///
/// <para>
/// To prevent this, write the rules so that the triggered actions do not re-fire the
/// same rule. For example, your rule could fire only if ACLs are found to be in a bad
/// state, instead of after any change.
/// </para>
///
/// <para>
/// An infinite loop can quickly cause higher than expected charges. We recommend that
/// you use budgeting, which alerts you when charges exceed your specified limit. For
/// more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html">Managing
/// Your Costs with Budgets</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutRule service method.</param>
///
/// <returns>The response from the PutRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule">REST API Reference for PutRule Operation</seealso>
public virtual PutRuleResponse PutRule(PutRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutRuleResponseUnmarshaller.Instance;
return Invoke<PutRuleResponse>(request, options);
}
/// <summary>
/// Creates or updates the specified rule. Rules are enabled by default, or based on value
/// of the state. You can disable a rule using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DisableRule.html">DisableRule</a>.
///
///
/// <para>
/// A single rule watches for events from a single event bus. Events generated by Amazon
/// Web Services services go to your account's default event bus. Events generated by
/// SaaS partner services or applications go to the matching partner event bus. If you
/// have custom applications or services, you can specify whether their events go to your
/// default event bus or a custom event bus that you have created. For more information,
/// see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
///
/// <para>
/// If you are updating an existing rule, the rule is replaced with what you specify in
/// this <code>PutRule</code> command. If you omit arguments in <code>PutRule</code>,
/// the old values for those arguments are not kept. Instead, they are replaced with null
/// values.
/// </para>
///
/// <para>
/// When you create or update a rule, incoming events might not immediately start matching
/// to new or updated rules. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns
/// are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger
/// based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression,
/// in which case the rule triggers on matching events as well as on a schedule.
/// </para>
///
/// <para>
/// When you initially create a rule, you can optionally assign one or more tags to the
/// rule. Tags can help you organize and categorize your resources. You can also use them
/// to scope user permissions, by granting a user permission to access or change only
/// rules with certain tag values. To use the <code>PutRule</code> operation and assign
/// tags, you must have both the <code>events:PutRule</code> and <code>events:TagResource</code>
/// permissions.
/// </para>
///
/// <para>
/// If you are updating an existing rule, any tags you specify in the <code>PutRule</code>
/// operation are ignored. To update the tags of an existing rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_TagResource.html">TagResource</a>
/// and <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UntagResource.html">UntagResource</a>.
/// </para>
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
///
/// <para>
/// In EventBridge, it is possible to create rules that lead to infinite loops, where
/// a rule is fired repeatedly. For example, a rule might detect that ACLs have changed
/// on an S3 bucket, and trigger software to change them to the desired state. If the
/// rule is not written carefully, the subsequent change to the ACLs fires the rule again,
/// creating an infinite loop.
/// </para>
///
/// <para>
/// To prevent this, write the rules so that the triggered actions do not re-fire the
/// same rule. For example, your rule could fire only if ACLs are found to be in a bad
/// state, instead of after any change.
/// </para>
///
/// <para>
/// An infinite loop can quickly cause higher than expected charges. We recommend that
/// you use budgeting, which alerts you when charges exceed your specified limit. For
/// more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html">Managing
/// Your Costs with Budgets</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule">REST API Reference for PutRule Operation</seealso>
public virtual Task<PutRuleResponse> PutRuleAsync(PutRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutRuleResponseUnmarshaller.Instance;
return InvokeAsync<PutRuleResponse>(request, options, cancellationToken);
}
#endregion
#region PutTargets
/// <summary>
/// Adds the specified targets to the specified rule, or updates the targets if they are
/// already associated with the rule.
///
///
/// <para>
/// Targets are the resources that are invoked when a rule is triggered.
/// </para>
///
/// <para>
/// You can configure the following as targets for Events:
/// </para>
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html">API
/// destination</a>
/// </para>
/// </li> <li>
/// <para>
/// Amazon API Gateway REST API endpoints
/// </para>
/// </li> <li>
/// <para>
/// API Gateway
/// </para>
/// </li> <li>
/// <para>
/// Batch job queue
/// </para>
/// </li> <li>
/// <para>
/// CloudWatch Logs group
/// </para>
/// </li> <li>
/// <para>
/// CodeBuild project
/// </para>
/// </li> <li>
/// <para>
/// CodePipeline
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>CreateSnapshot</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>RebootInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>StopInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>TerminateInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon ECS tasks
/// </para>
/// </li> <li>
/// <para>
/// Event bus in a different Amazon Web Services account or Region.
/// </para>
///
/// <para>
/// You can use an event bus in the US East (N. Virginia) us-east-1, US West (Oregon)
/// us-west-2, or Europe (Ireland) eu-west-1 Regions as a target for a rule.
/// </para>
/// </li> <li>
/// <para>
/// Firehose delivery stream (Kinesis Data Firehose)
/// </para>
/// </li> <li>
/// <para>
/// Inspector assessment template (Amazon Inspector)
/// </para>
/// </li> <li>
/// <para>
/// Kinesis stream (Kinesis Data Stream)
/// </para>
/// </li> <li>
/// <para>
/// Lambda function
/// </para>
/// </li> <li>
/// <para>
/// Redshift clusters (Data API statement execution)
/// </para>
/// </li> <li>
/// <para>
/// Amazon SNS topic
/// </para>
/// </li> <li>
/// <para>
/// Amazon SQS queues (includes FIFO queues
/// </para>
/// </li> <li>
/// <para>
/// SSM Automation
/// </para>
/// </li> <li>
/// <para>
/// SSM OpsItem
/// </para>
/// </li> <li>
/// <para>
/// SSM Run Command
/// </para>
/// </li> <li>
/// <para>
/// Step Functions state machines
/// </para>
/// </li> </ul>
/// <para>
/// Creating rules with built-in targets is supported only in the Management Console.
/// The built-in targets are <code>EC2 CreateSnapshot API call</code>, <code>EC2 RebootInstances
/// API call</code>, <code>EC2 StopInstances API call</code>, and <code>EC2 TerminateInstances
/// API call</code>.
/// </para>
///
/// <para>
/// For some target types, <code>PutTargets</code> provides target-specific parameters.
/// If the target is a Kinesis data stream, you can optionally specify which shard the
/// event goes to by using the <code>KinesisParameters</code> argument. To invoke a command
/// on multiple EC2 instances with one rule, you can use the <code>RunCommandParameters</code>
/// field.
/// </para>
///
/// <para>
/// To be able to make API calls against the resources that you own, Amazon EventBridge
/// needs the appropriate permissions. For Lambda and Amazon SNS resources, EventBridge
/// relies on resource-based policies. For EC2 instances, Kinesis Data Streams, Step Functions
/// state machines and API Gateway REST APIs, EventBridge relies on IAM roles that you
/// specify in the <code>RoleARN</code> argument in <code>PutTargets</code>. For more
/// information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html">Authentication
/// and Access Control</a> in the <i>Amazon EventBridge User Guide</i>.
/// </para>
///
/// <para>
/// If another Amazon Web Services account is in the same region and has granted you permission
/// (using <code>PutPermission</code>), you can send events to that account. Set that
/// account's event bus as a target of the rules in your account. To send the matched
/// events to the other account, specify that account's event bus as the <code>Arn</code>
/// value when you run <code>PutTargets</code>. If your account sends events to another
/// account, your account is charged for each sent event. Each event sent to another account
/// is charged as a custom event. The account receiving the event is not charged. For
/// more information, see <a href="http://aws.amazon.com/eventbridge/pricing/">Amazon
/// EventBridge Pricing</a>.
/// </para>
/// <note>
/// <para>
/// <code>Input</code>, <code>InputPath</code>, and <code>InputTransformer</code> are
/// not available with <code>PutTarget</code> if the target is an event bus of a different
/// Amazon Web Services account.
/// </para>
/// </note>
/// <para>
/// If you are setting the event bus of another account as the target, and that account
/// granted permission to your account through an organization instead of directly by
/// the account ID, then you must specify a <code>RoleArn</code> with proper permissions
/// in the <code>Target</code> structure. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// For more information about enabling cross-account events, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// <b>Input</b>, <b>InputPath</b>, and <b>InputTransformer</b> are mutually exclusive
/// and optional parameters of a target. When a rule is triggered due to a matched event:
/// </para>
/// <ul> <li>
/// <para>
/// If none of the following arguments are specified for a target, then the entire event
/// is passed to the target in JSON format (unless the target is Amazon EC2 Run Command
/// or Amazon ECS task, in which case nothing from the event is passed to the target).
/// </para>
/// </li> <li>
/// <para>
/// If <b>Input</b> is specified in the form of valid JSON, then the matched event is
/// overridden with this constant.
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputPath</b> is specified in the form of JSONPath (for example, <code>$.detail</code>),
/// then only the part of the event specified in the path is passed to the target (for
/// example, only the detail part of the event is passed).
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputTransformer</b> is specified, then one or more specified JSONPaths are
/// extracted from the event and used as values in a template that you specify as the
/// input to the target.
/// </para>
/// </li> </ul>
/// <para>
/// When you specify <code>InputPath</code> or <code>InputTransformer</code>, you must
/// use JSON dot notation, not bracket notation.
/// </para>
///
/// <para>
/// When you add targets to a rule and the associated rule triggers soon after, new or
/// updated targets might not be immediately invoked. Allow a short period of time for
/// changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutTargets service method.</param>
///
/// <returns>The response from the PutTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets">REST API Reference for PutTargets Operation</seealso>
public virtual PutTargetsResponse PutTargets(PutTargetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutTargetsResponseUnmarshaller.Instance;
return Invoke<PutTargetsResponse>(request, options);
}
/// <summary>
/// Adds the specified targets to the specified rule, or updates the targets if they are
/// already associated with the rule.
///
///
/// <para>
/// Targets are the resources that are invoked when a rule is triggered.
/// </para>
///
/// <para>
/// You can configure the following as targets for Events:
/// </para>
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html">API
/// destination</a>
/// </para>
/// </li> <li>
/// <para>
/// Amazon API Gateway REST API endpoints
/// </para>
/// </li> <li>
/// <para>
/// API Gateway
/// </para>
/// </li> <li>
/// <para>
/// Batch job queue
/// </para>
/// </li> <li>
/// <para>
/// CloudWatch Logs group
/// </para>
/// </li> <li>
/// <para>
/// CodeBuild project
/// </para>
/// </li> <li>
/// <para>
/// CodePipeline
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>CreateSnapshot</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>RebootInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>StopInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>TerminateInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon ECS tasks
/// </para>
/// </li> <li>
/// <para>
/// Event bus in a different Amazon Web Services account or Region.
/// </para>
///
/// <para>
/// You can use an event bus in the US East (N. Virginia) us-east-1, US West (Oregon)
/// us-west-2, or Europe (Ireland) eu-west-1 Regions as a target for a rule.
/// </para>
/// </li> <li>
/// <para>
/// Firehose delivery stream (Kinesis Data Firehose)
/// </para>
/// </li> <li>
/// <para>
/// Inspector assessment template (Amazon Inspector)
/// </para>
/// </li> <li>
/// <para>
/// Kinesis stream (Kinesis Data Stream)
/// </para>
/// </li> <li>
/// <para>
/// Lambda function
/// </para>
/// </li> <li>
/// <para>
/// Redshift clusters (Data API statement execution)
/// </para>
/// </li> <li>
/// <para>
/// Amazon SNS topic
/// </para>
/// </li> <li>
/// <para>
/// Amazon SQS queues (includes FIFO queues
/// </para>
/// </li> <li>
/// <para>
/// SSM Automation
/// </para>
/// </li> <li>
/// <para>
/// SSM OpsItem
/// </para>
/// </li> <li>
/// <para>
/// SSM Run Command
/// </para>
/// </li> <li>
/// <para>
/// Step Functions state machines
/// </para>
/// </li> </ul>
/// <para>
/// Creating rules with built-in targets is supported only in the Management Console.
/// The built-in targets are <code>EC2 CreateSnapshot API call</code>, <code>EC2 RebootInstances
/// API call</code>, <code>EC2 StopInstances API call</code>, and <code>EC2 TerminateInstances
/// API call</code>.
/// </para>
///
/// <para>
/// For some target types, <code>PutTargets</code> provides target-specific parameters.
/// If the target is a Kinesis data stream, you can optionally specify which shard the
/// event goes to by using the <code>KinesisParameters</code> argument. To invoke a command
/// on multiple EC2 instances with one rule, you can use the <code>RunCommandParameters</code>
/// field.
/// </para>
///
/// <para>
/// To be able to make API calls against the resources that you own, Amazon EventBridge
/// needs the appropriate permissions. For Lambda and Amazon SNS resources, EventBridge
/// relies on resource-based policies. For EC2 instances, Kinesis Data Streams, Step Functions
/// state machines and API Gateway REST APIs, EventBridge relies on IAM roles that you
/// specify in the <code>RoleARN</code> argument in <code>PutTargets</code>. For more
/// information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html">Authentication
/// and Access Control</a> in the <i>Amazon EventBridge User Guide</i>.
/// </para>
///
/// <para>
/// If another Amazon Web Services account is in the same region and has granted you permission
/// (using <code>PutPermission</code>), you can send events to that account. Set that
/// account's event bus as a target of the rules in your account. To send the matched
/// events to the other account, specify that account's event bus as the <code>Arn</code>
/// value when you run <code>PutTargets</code>. If your account sends events to another
/// account, your account is charged for each sent event. Each event sent to another account
/// is charged as a custom event. The account receiving the event is not charged. For
/// more information, see <a href="http://aws.amazon.com/eventbridge/pricing/">Amazon
/// EventBridge Pricing</a>.
/// </para>
/// <note>
/// <para>
/// <code>Input</code>, <code>InputPath</code>, and <code>InputTransformer</code> are
/// not available with <code>PutTarget</code> if the target is an event bus of a different
/// Amazon Web Services account.
/// </para>
/// </note>
/// <para>
/// If you are setting the event bus of another account as the target, and that account
/// granted permission to your account through an organization instead of directly by
/// the account ID, then you must specify a <code>RoleArn</code> with proper permissions
/// in the <code>Target</code> structure. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// For more information about enabling cross-account events, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// <b>Input</b>, <b>InputPath</b>, and <b>InputTransformer</b> are mutually exclusive
/// and optional parameters of a target. When a rule is triggered due to a matched event:
/// </para>
/// <ul> <li>
/// <para>
/// If none of the following arguments are specified for a target, then the entire event
/// is passed to the target in JSON format (unless the target is Amazon EC2 Run Command
/// or Amazon ECS task, in which case nothing from the event is passed to the target).
/// </para>
/// </li> <li>
/// <para>
/// If <b>Input</b> is specified in the form of valid JSON, then the matched event is
/// overridden with this constant.
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputPath</b> is specified in the form of JSONPath (for example, <code>$.detail</code>),
/// then only the part of the event specified in the path is passed to the target (for
/// example, only the detail part of the event is passed).
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputTransformer</b> is specified, then one or more specified JSONPaths are
/// extracted from the event and used as values in a template that you specify as the
/// input to the target.
/// </para>
/// </li> </ul>
/// <para>
/// When you specify <code>InputPath</code> or <code>InputTransformer</code>, you must
/// use JSON dot notation, not bracket notation.
/// </para>
///
/// <para>
/// When you add targets to a rule and the associated rule triggers soon after, new or
/// updated targets might not be immediately invoked. Allow a short period of time for
/// changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutTargets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets">REST API Reference for PutTargets Operation</seealso>
public virtual Task<PutTargetsResponse> PutTargetsAsync(PutTargetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutTargetsResponseUnmarshaller.Instance;
return InvokeAsync<PutTargetsResponse>(request, options, cancellationToken);
}
#endregion
#region RemovePermission
/// <summary>
/// Revokes the permission of another Amazon Web Services account to be able to put events
/// to the specified event bus. Specify the account to revoke by the <code>StatementId</code>
/// value that you associated with the account when you granted it permission with <code>PutPermission</code>.
/// You can find the <code>StatementId</code> by using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventBus.html">DescribeEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemovePermission service method.</param>
///
/// <returns>The response from the RemovePermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission">REST API Reference for RemovePermission Operation</seealso>
public virtual RemovePermissionResponse RemovePermission(RemovePermissionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RemovePermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemovePermissionResponseUnmarshaller.Instance;
return Invoke<RemovePermissionResponse>(request, options);
}
/// <summary>
/// Revokes the permission of another Amazon Web Services account to be able to put events
/// to the specified event bus. Specify the account to revoke by the <code>StatementId</code>
/// value that you associated with the account when you granted it permission with <code>PutPermission</code>.
/// You can find the <code>StatementId</code> by using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventBus.html">DescribeEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemovePermission service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RemovePermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission">REST API Reference for RemovePermission Operation</seealso>
public virtual Task<RemovePermissionResponse> RemovePermissionAsync(RemovePermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RemovePermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemovePermissionResponseUnmarshaller.Instance;
return InvokeAsync<RemovePermissionResponse>(request, options, cancellationToken);
}
#endregion
#region RemoveTargets
/// <summary>
/// Removes the specified targets from the specified rule. When the rule is triggered,
/// those targets are no longer be invoked.
///
///
/// <para>
/// When you remove a target, when the associated rule triggers, removed targets might
/// continue to be invoked. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemoveTargets service method.</param>
///
/// <returns>The response from the RemoveTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets">REST API Reference for RemoveTargets Operation</seealso>
public virtual RemoveTargetsResponse RemoveTargets(RemoveTargetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveTargetsResponseUnmarshaller.Instance;
return Invoke<RemoveTargetsResponse>(request, options);
}
/// <summary>
/// Removes the specified targets from the specified rule. When the rule is triggered,
/// those targets are no longer be invoked.
///
///
/// <para>
/// When you remove a target, when the associated rule triggers, removed targets might
/// continue to be invoked. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemoveTargets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RemoveTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets">REST API Reference for RemoveTargets Operation</seealso>
public virtual Task<RemoveTargetsResponse> RemoveTargetsAsync(RemoveTargetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveTargetsResponseUnmarshaller.Instance;
return InvokeAsync<RemoveTargetsResponse>(request, options, cancellationToken);
}
#endregion
#region StartReplay
/// <summary>
/// Starts the specified replay. Events are not necessarily replayed in the exact same
/// order that they were added to the archive. A replay processes events to replay based
/// on the time in the event, and replays them using 1 minute intervals. If you specify
/// an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers a 20 minute
/// time range, the events are replayed from the first minute of that 20 minute range
/// first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartReplay service method.</param>
///
/// <returns>The response from the StartReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplay">REST API Reference for StartReplay Operation</seealso>
public virtual StartReplayResponse StartReplay(StartReplayRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartReplayResponseUnmarshaller.Instance;
return Invoke<StartReplayResponse>(request, options);
}
/// <summary>
/// Starts the specified replay. Events are not necessarily replayed in the exact same
/// order that they were added to the archive. A replay processes events to replay based
/// on the time in the event, and replays them using 1 minute intervals. If you specify
/// an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers a 20 minute
/// time range, the events are replayed from the first minute of that 20 minute range
/// first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartReplay service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplay">REST API Reference for StartReplay Operation</seealso>
public virtual Task<StartReplayResponse> StartReplayAsync(StartReplayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartReplayResponseUnmarshaller.Instance;
return InvokeAsync<StartReplayResponse>(request, options, cancellationToken);
}
#endregion
#region TagResource
/// <summary>
/// Assigns one or more tags (key-value pairs) to the specified EventBridge resource.
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values. In EventBridge, rules and event buses can be tagged.
///
///
/// <para>
/// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly
/// as strings of characters.
/// </para>
///
/// <para>
/// You can use the <code>TagResource</code> action with a resource that already has tags.
/// If you specify a new tag key, this tag is appended to the list of tags associated
/// with the resource. If you specify a tag key that is already associated with the resource,
/// the new tag value that you specify replaces the previous value for that tag.
/// </para>
///
/// <para>
/// You can associate as many as 50 tags with a resource.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke<TagResourceResponse>(request, options);
}
/// <summary>
/// Assigns one or more tags (key-value pairs) to the specified EventBridge resource.
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values. In EventBridge, rules and event buses can be tagged.
///
///
/// <para>
/// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly
/// as strings of characters.
/// </para>
///
/// <para>
/// You can use the <code>TagResource</code> action with a resource that already has tags.
/// If you specify a new tag key, this tag is appended to the list of tags associated
/// with the resource. If you specify a tag key that is already associated with the resource,
/// the new tag value that you specify replaces the previous value for that tag.
/// </para>
///
/// <para>
/// You can associate as many as 50 tags with a resource.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync<TagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region TestEventPattern
/// <summary>
/// Tests whether the specified event pattern matches the provided event.
///
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TestEventPattern service method.</param>
///
/// <returns>The response from the TestEventPattern service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern">REST API Reference for TestEventPattern Operation</seealso>
public virtual TestEventPatternResponse TestEventPattern(TestEventPatternRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TestEventPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = TestEventPatternResponseUnmarshaller.Instance;
return Invoke<TestEventPatternResponse>(request, options);
}
/// <summary>
/// Tests whether the specified event pattern matches the provided event.
///
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TestEventPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TestEventPattern service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern">REST API Reference for TestEventPattern Operation</seealso>
public virtual Task<TestEventPatternResponse> TestEventPatternAsync(TestEventPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TestEventPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = TestEventPatternResponseUnmarshaller.Instance;
return InvokeAsync<TestEventPatternResponse>(request, options, cancellationToken);
}
#endregion
#region UntagResource
/// <summary>
/// Removes one or more tags from the specified EventBridge resource. In Amazon EventBridge
/// (CloudWatch Events), rules and event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke<UntagResourceResponse>(request, options);
}
/// <summary>
/// Removes one or more tags from the specified EventBridge resource. In Amazon EventBridge
/// (CloudWatch Events), rules and event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateApiDestination
/// <summary>
/// Updates an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApiDestination service method.</param>
///
/// <returns>The response from the UpdateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateApiDestination">REST API Reference for UpdateApiDestination Operation</seealso>
public virtual UpdateApiDestinationResponse UpdateApiDestination(UpdateApiDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApiDestinationResponseUnmarshaller.Instance;
return Invoke<UpdateApiDestinationResponse>(request, options);
}
/// <summary>
/// Updates an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateApiDestination">REST API Reference for UpdateApiDestination Operation</seealso>
public virtual Task<UpdateApiDestinationResponse> UpdateApiDestinationAsync(UpdateApiDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApiDestinationResponseUnmarshaller.Instance;
return InvokeAsync<UpdateApiDestinationResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateArchive
/// <summary>
/// Updates the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateArchive service method.</param>
///
/// <returns>The response from the UpdateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchive">REST API Reference for UpdateArchive Operation</seealso>
public virtual UpdateArchiveResponse UpdateArchive(UpdateArchiveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateArchiveResponseUnmarshaller.Instance;
return Invoke<UpdateArchiveResponse>(request, options);
}
/// <summary>
/// Updates the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchive">REST API Reference for UpdateArchive Operation</seealso>
public virtual Task<UpdateArchiveResponse> UpdateArchiveAsync(UpdateArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateArchiveResponseUnmarshaller.Instance;
return InvokeAsync<UpdateArchiveResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateConnection
/// <summary>
/// Updates settings for a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateConnection service method.</param>
///
/// <returns>The response from the UpdateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateConnection">REST API Reference for UpdateConnection Operation</seealso>
public virtual UpdateConnectionResponse UpdateConnection(UpdateConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateConnectionResponseUnmarshaller.Instance;
return Invoke<UpdateConnectionResponse>(request, options);
}
/// <summary>
/// Updates settings for a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateConnection">REST API Reference for UpdateConnection Operation</seealso>
public virtual Task<UpdateConnectionResponse> UpdateConnectionAsync(UpdateConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateConnectionResponseUnmarshaller.Instance;
return InvokeAsync<UpdateConnectionResponse>(request, options, cancellationToken);
}
#endregion
}
} | 4,546 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.CloudWatchEvents.Model;
namespace Amazon.CloudWatchEvents
{
/// <summary>
/// Interface for accessing CloudWatchEvents
///
/// Amazon EventBridge helps you to respond to state changes in your Amazon Web Services
/// resources. When your resources change state, they automatically send events to an
/// event stream. You can create rules that match selected events in the stream and route
/// them to targets to take action. You can also use rules to take action on a predetermined
/// schedule. For example, you can configure rules to:
///
/// <ul> <li>
/// <para>
/// Automatically invoke an Lambda function to update DNS entries when an event notifies
/// you that Amazon EC2 instance enters the running state.
/// </para>
/// </li> <li>
/// <para>
/// Direct specific API records from CloudTrail to an Amazon Kinesis data stream for detailed
/// analysis of potential security or availability risks.
/// </para>
/// </li> <li>
/// <para>
/// Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume.
/// </para>
/// </li> </ul>
/// <para>
/// For more information about the features of Amazon EventBridge, see the <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide">Amazon
/// EventBridge User Guide</a>.
/// </para>
/// </summary>
public partial interface IAmazonCloudWatchEvents : IAmazonService, IDisposable
{
#region ActivateEventSource
/// <summary>
/// Activates a partner event source that has been deactivated. Once activated, your matching
/// event bus will start receiving events from the event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ActivateEventSource service method.</param>
///
/// <returns>The response from the ActivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ActivateEventSource">REST API Reference for ActivateEventSource Operation</seealso>
ActivateEventSourceResponse ActivateEventSource(ActivateEventSourceRequest request);
/// <summary>
/// Activates a partner event source that has been deactivated. Once activated, your matching
/// event bus will start receiving events from the event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ActivateEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ActivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ActivateEventSource">REST API Reference for ActivateEventSource Operation</seealso>
Task<ActivateEventSourceResponse> ActivateEventSourceAsync(ActivateEventSourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CancelReplay
/// <summary>
/// Cancels the specified replay.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CancelReplay service method.</param>
///
/// <returns>The response from the CancelReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.IllegalStatusException">
/// An error occurred because a replay can be canceled only when the state is Running
/// or Starting.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplay">REST API Reference for CancelReplay Operation</seealso>
CancelReplayResponse CancelReplay(CancelReplayRequest request);
/// <summary>
/// Cancels the specified replay.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CancelReplay service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CancelReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.IllegalStatusException">
/// An error occurred because a replay can be canceled only when the state is Running
/// or Starting.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplay">REST API Reference for CancelReplay Operation</seealso>
Task<CancelReplayResponse> CancelReplayAsync(CancelReplayRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateApiDestination
/// <summary>
/// Creates an API destination, which is an HTTP invocation endpoint configured as a target
/// for events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApiDestination service method.</param>
///
/// <returns>The response from the CreateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateApiDestination">REST API Reference for CreateApiDestination Operation</seealso>
CreateApiDestinationResponse CreateApiDestination(CreateApiDestinationRequest request);
/// <summary>
/// Creates an API destination, which is an HTTP invocation endpoint configured as a target
/// for events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateApiDestination">REST API Reference for CreateApiDestination Operation</seealso>
Task<CreateApiDestinationResponse> CreateApiDestinationAsync(CreateApiDestinationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateArchive
/// <summary>
/// Creates an archive of events with the specified settings. When you create an archive,
/// incoming events might not immediately start being sent to the archive. Allow a short
/// period of time for changes to take effect. If you do not specify a pattern to filter
/// events sent to the archive, all events are sent to the archive except replayed events.
/// Replayed events are not sent to an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateArchive service method.</param>
///
/// <returns>The response from the CreateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchive">REST API Reference for CreateArchive Operation</seealso>
CreateArchiveResponse CreateArchive(CreateArchiveRequest request);
/// <summary>
/// Creates an archive of events with the specified settings. When you create an archive,
/// incoming events might not immediately start being sent to the archive. Allow a short
/// period of time for changes to take effect. If you do not specify a pattern to filter
/// events sent to the archive, all events are sent to the archive except replayed events.
/// Replayed events are not sent to an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchive">REST API Reference for CreateArchive Operation</seealso>
Task<CreateArchiveResponse> CreateArchiveAsync(CreateArchiveRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateConnection
/// <summary>
/// Creates a connection. A connection defines the authorization type and credentials
/// to use for authorization with an API destination HTTP endpoint.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateConnection service method.</param>
///
/// <returns>The response from the CreateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
CreateConnectionResponse CreateConnection(CreateConnectionRequest request);
/// <summary>
/// Creates a connection. A connection defines the authorization type and credentials
/// to use for authorization with an API destination HTTP endpoint.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
Task<CreateConnectionResponse> CreateConnectionAsync(CreateConnectionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateEventBus
/// <summary>
/// Creates a new event bus within your account. This can be a custom event bus which
/// you can use to receive events from your custom applications and services, or it can
/// be a partner event bus which can be matched to a partner event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventBus service method.</param>
///
/// <returns>The response from the CreateEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBus">REST API Reference for CreateEventBus Operation</seealso>
CreateEventBusResponse CreateEventBus(CreateEventBusRequest request);
/// <summary>
/// Creates a new event bus within your account. This can be a custom event bus which
/// you can use to receive events from your custom applications and services, or it can
/// be a partner event bus which can be matched to a partner event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventBus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBus">REST API Reference for CreateEventBus Operation</seealso>
Task<CreateEventBusResponse> CreateEventBusAsync(CreateEventBusRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreatePartnerEventSource
/// <summary>
/// Called by an SaaS partner to create a partner event source. This operation is not
/// used by Amazon Web Services customers.
///
///
/// <para>
/// Each partner event source can be used by one Amazon Web Services account to create
/// a matching partner event bus in that Amazon Web Services account. A SaaS partner must
/// create one partner event source for each Amazon Web Services account that wants to
/// receive those event types.
/// </para>
///
/// <para>
/// A partner event source creates events based on resources within the SaaS partner's
/// service or application.
/// </para>
///
/// <para>
/// An Amazon Web Services account that creates a partner event bus that matches the partner
/// event source can use that event bus to receive events from the partner, and then process
/// them using Amazon Web Services Events rules and targets.
/// </para>
///
/// <para>
/// Partner event source names follow this format:
/// </para>
///
/// <para>
/// <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i> </code>
/// </para>
///
/// <para>
/// <i>partner_name</i> is determined during partner registration and identifies the
/// partner to Amazon Web Services customers. <i>event_namespace</i> is determined by
/// the partner and is a way for the partner to categorize their events. <i>event_name</i>
/// is determined by the partner, and should uniquely identify an event-generating resource
/// within the partner system. The combination of <i>event_namespace</i> and <i>event_name</i>
/// should help Amazon Web Services customers decide whether to create an event bus to
/// receive these events.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreatePartnerEventSource service method.</param>
///
/// <returns>The response from the CreatePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSource">REST API Reference for CreatePartnerEventSource Operation</seealso>
CreatePartnerEventSourceResponse CreatePartnerEventSource(CreatePartnerEventSourceRequest request);
/// <summary>
/// Called by an SaaS partner to create a partner event source. This operation is not
/// used by Amazon Web Services customers.
///
///
/// <para>
/// Each partner event source can be used by one Amazon Web Services account to create
/// a matching partner event bus in that Amazon Web Services account. A SaaS partner must
/// create one partner event source for each Amazon Web Services account that wants to
/// receive those event types.
/// </para>
///
/// <para>
/// A partner event source creates events based on resources within the SaaS partner's
/// service or application.
/// </para>
///
/// <para>
/// An Amazon Web Services account that creates a partner event bus that matches the partner
/// event source can use that event bus to receive events from the partner, and then process
/// them using Amazon Web Services Events rules and targets.
/// </para>
///
/// <para>
/// Partner event source names follow this format:
/// </para>
///
/// <para>
/// <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i> </code>
/// </para>
///
/// <para>
/// <i>partner_name</i> is determined during partner registration and identifies the
/// partner to Amazon Web Services customers. <i>event_namespace</i> is determined by
/// the partner and is a way for the partner to categorize their events. <i>event_name</i>
/// is determined by the partner, and should uniquely identify an event-generating resource
/// within the partner system. The combination of <i>event_namespace</i> and <i>event_name</i>
/// should help Amazon Web Services customers decide whether to create an event bus to
/// receive these events.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreatePartnerEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreatePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSource">REST API Reference for CreatePartnerEventSource Operation</seealso>
Task<CreatePartnerEventSourceResponse> CreatePartnerEventSourceAsync(CreatePartnerEventSourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeactivateEventSource
/// <summary>
/// You can use this operation to temporarily stop receiving events from the specified
/// partner event source. The matching event bus is not deleted.
///
///
/// <para>
/// When you deactivate a partner event source, the source goes into PENDING state. If
/// it remains in PENDING state for more than two weeks, it is deleted.
/// </para>
///
/// <para>
/// To activate a deactivated partner event source, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ActivateEventSource.html">ActivateEventSource</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeactivateEventSource service method.</param>
///
/// <returns>The response from the DeactivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeactivateEventSource">REST API Reference for DeactivateEventSource Operation</seealso>
DeactivateEventSourceResponse DeactivateEventSource(DeactivateEventSourceRequest request);
/// <summary>
/// You can use this operation to temporarily stop receiving events from the specified
/// partner event source. The matching event bus is not deleted.
///
///
/// <para>
/// When you deactivate a partner event source, the source goes into PENDING state. If
/// it remains in PENDING state for more than two weeks, it is deleted.
/// </para>
///
/// <para>
/// To activate a deactivated partner event source, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ActivateEventSource.html">ActivateEventSource</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeactivateEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeactivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeactivateEventSource">REST API Reference for DeactivateEventSource Operation</seealso>
Task<DeactivateEventSourceResponse> DeactivateEventSourceAsync(DeactivateEventSourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeauthorizeConnection
/// <summary>
/// Removes all authorization parameters from the connection. This lets you remove the
/// secret from the connection so you can reuse it without having to create a new connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeauthorizeConnection service method.</param>
///
/// <returns>The response from the DeauthorizeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeauthorizeConnection">REST API Reference for DeauthorizeConnection Operation</seealso>
DeauthorizeConnectionResponse DeauthorizeConnection(DeauthorizeConnectionRequest request);
/// <summary>
/// Removes all authorization parameters from the connection. This lets you remove the
/// secret from the connection so you can reuse it without having to create a new connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeauthorizeConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeauthorizeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeauthorizeConnection">REST API Reference for DeauthorizeConnection Operation</seealso>
Task<DeauthorizeConnectionResponse> DeauthorizeConnectionAsync(DeauthorizeConnectionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteApiDestination
/// <summary>
/// Deletes the specified API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApiDestination service method.</param>
///
/// <returns>The response from the DeleteApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteApiDestination">REST API Reference for DeleteApiDestination Operation</seealso>
DeleteApiDestinationResponse DeleteApiDestination(DeleteApiDestinationRequest request);
/// <summary>
/// Deletes the specified API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteApiDestination">REST API Reference for DeleteApiDestination Operation</seealso>
Task<DeleteApiDestinationResponse> DeleteApiDestinationAsync(DeleteApiDestinationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteArchive
/// <summary>
/// Deletes the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteArchive service method.</param>
///
/// <returns>The response from the DeleteArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchive">REST API Reference for DeleteArchive Operation</seealso>
DeleteArchiveResponse DeleteArchive(DeleteArchiveRequest request);
/// <summary>
/// Deletes the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchive">REST API Reference for DeleteArchive Operation</seealso>
Task<DeleteArchiveResponse> DeleteArchiveAsync(DeleteArchiveRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteConnection
/// <summary>
/// Deletes a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection service method.</param>
///
/// <returns>The response from the DeleteConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
DeleteConnectionResponse DeleteConnection(DeleteConnectionRequest request);
/// <summary>
/// Deletes a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
Task<DeleteConnectionResponse> DeleteConnectionAsync(DeleteConnectionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteEventBus
/// <summary>
/// Deletes the specified custom event bus or partner event bus. All rules associated
/// with this event bus need to be deleted. You can't delete your account's default event
/// bus.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventBus service method.</param>
///
/// <returns>The response from the DeleteEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteEventBus">REST API Reference for DeleteEventBus Operation</seealso>
DeleteEventBusResponse DeleteEventBus(DeleteEventBusRequest request);
/// <summary>
/// Deletes the specified custom event bus or partner event bus. All rules associated
/// with this event bus need to be deleted. You can't delete your account's default event
/// bus.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventBus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteEventBus">REST API Reference for DeleteEventBus Operation</seealso>
Task<DeleteEventBusResponse> DeleteEventBusAsync(DeleteEventBusRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeletePartnerEventSource
/// <summary>
/// This operation is used by SaaS partners to delete a partner event source. This operation
/// is not used by Amazon Web Services customers.
///
///
/// <para>
/// When you delete an event source, the status of the corresponding partner event bus
/// in the Amazon Web Services customer account becomes DELETED.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeletePartnerEventSource service method.</param>
///
/// <returns>The response from the DeletePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeletePartnerEventSource">REST API Reference for DeletePartnerEventSource Operation</seealso>
DeletePartnerEventSourceResponse DeletePartnerEventSource(DeletePartnerEventSourceRequest request);
/// <summary>
/// This operation is used by SaaS partners to delete a partner event source. This operation
/// is not used by Amazon Web Services customers.
///
///
/// <para>
/// When you delete an event source, the status of the corresponding partner event bus
/// in the Amazon Web Services customer account becomes DELETED.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeletePartnerEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeletePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeletePartnerEventSource">REST API Reference for DeletePartnerEventSource Operation</seealso>
Task<DeletePartnerEventSourceResponse> DeletePartnerEventSourceAsync(DeletePartnerEventSourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteRule
/// <summary>
/// Deletes the specified rule.
///
///
/// <para>
/// Before you can delete the rule, you must remove all targets, using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemoveTargets.html">RemoveTargets</a>.
/// </para>
///
/// <para>
/// When you delete a rule, incoming events might continue to match to the deleted rule.
/// Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// If you call delete rule multiple times for the same rule, all calls will succeed.
/// When you call delete rule for a non-existent custom eventbus, <code>ResourceNotFoundException</code>
/// is returned.
/// </para>
///
/// <para>
/// Managed rules are rules created and managed by another Amazon Web Services service
/// on your behalf. These rules are created by those other Amazon Web Services services
/// to support functionality in those services. You can delete these rules using the <code>Force</code>
/// option, but you should do so only if you are sure the other service is not still using
/// that rule.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteRule service method.</param>
///
/// <returns>The response from the DeleteRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule">REST API Reference for DeleteRule Operation</seealso>
DeleteRuleResponse DeleteRule(DeleteRuleRequest request);
/// <summary>
/// Deletes the specified rule.
///
///
/// <para>
/// Before you can delete the rule, you must remove all targets, using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemoveTargets.html">RemoveTargets</a>.
/// </para>
///
/// <para>
/// When you delete a rule, incoming events might continue to match to the deleted rule.
/// Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// If you call delete rule multiple times for the same rule, all calls will succeed.
/// When you call delete rule for a non-existent custom eventbus, <code>ResourceNotFoundException</code>
/// is returned.
/// </para>
///
/// <para>
/// Managed rules are rules created and managed by another Amazon Web Services service
/// on your behalf. These rules are created by those other Amazon Web Services services
/// to support functionality in those services. You can delete these rules using the <code>Force</code>
/// option, but you should do so only if you are sure the other service is not still using
/// that rule.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule">REST API Reference for DeleteRule Operation</seealso>
Task<DeleteRuleResponse> DeleteRuleAsync(DeleteRuleRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeApiDestination
/// <summary>
/// Retrieves details about an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApiDestination service method.</param>
///
/// <returns>The response from the DescribeApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeApiDestination">REST API Reference for DescribeApiDestination Operation</seealso>
DescribeApiDestinationResponse DescribeApiDestination(DescribeApiDestinationRequest request);
/// <summary>
/// Retrieves details about an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeApiDestination">REST API Reference for DescribeApiDestination Operation</seealso>
Task<DescribeApiDestinationResponse> DescribeApiDestinationAsync(DescribeApiDestinationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeArchive
/// <summary>
/// Retrieves details about an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeArchive service method.</param>
///
/// <returns>The response from the DescribeArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchive">REST API Reference for DescribeArchive Operation</seealso>
DescribeArchiveResponse DescribeArchive(DescribeArchiveRequest request);
/// <summary>
/// Retrieves details about an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchive">REST API Reference for DescribeArchive Operation</seealso>
Task<DescribeArchiveResponse> DescribeArchiveAsync(DescribeArchiveRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeConnection
/// <summary>
/// Retrieves details about a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConnection service method.</param>
///
/// <returns>The response from the DescribeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeConnection">REST API Reference for DescribeConnection Operation</seealso>
DescribeConnectionResponse DescribeConnection(DescribeConnectionRequest request);
/// <summary>
/// Retrieves details about a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeConnection">REST API Reference for DescribeConnection Operation</seealso>
Task<DescribeConnectionResponse> DescribeConnectionAsync(DescribeConnectionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEventBus
/// <summary>
/// Displays details about an event bus in your account. This can include the external
/// Amazon Web Services accounts that are permitted to write events to your default event
/// bus, and the associated policy. For custom event buses and partner event buses, it
/// displays the name, ARN, policy, state, and creation time.
///
///
/// <para>
/// To enable your account to receive events from other accounts on its default event
/// bus, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// For more information about partner event buses, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventBus service method.</param>
///
/// <returns>The response from the DescribeEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus">REST API Reference for DescribeEventBus Operation</seealso>
DescribeEventBusResponse DescribeEventBus(DescribeEventBusRequest request);
/// <summary>
/// Displays details about an event bus in your account. This can include the external
/// Amazon Web Services accounts that are permitted to write events to your default event
/// bus, and the associated policy. For custom event buses and partner event buses, it
/// displays the name, ARN, policy, state, and creation time.
///
///
/// <para>
/// To enable your account to receive events from other accounts on its default event
/// bus, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// For more information about partner event buses, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventBus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus">REST API Reference for DescribeEventBus Operation</seealso>
Task<DescribeEventBusResponse> DescribeEventBusAsync(DescribeEventBusRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEventSource
/// <summary>
/// This operation lists details about a partner event source that is shared with your
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventSource service method.</param>
///
/// <returns>The response from the DescribeEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSource">REST API Reference for DescribeEventSource Operation</seealso>
DescribeEventSourceResponse DescribeEventSource(DescribeEventSourceRequest request);
/// <summary>
/// This operation lists details about a partner event source that is shared with your
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSource">REST API Reference for DescribeEventSource Operation</seealso>
Task<DescribeEventSourceResponse> DescribeEventSourceAsync(DescribeEventSourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribePartnerEventSource
/// <summary>
/// An SaaS partner can use this operation to list details about a partner event source
/// that they have created. Amazon Web Services customers do not use this operation. Instead,
/// Amazon Web Services customers can use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventSource.html">DescribeEventSource</a>
/// to see details about a partner event source that is shared with them.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribePartnerEventSource service method.</param>
///
/// <returns>The response from the DescribePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribePartnerEventSource">REST API Reference for DescribePartnerEventSource Operation</seealso>
DescribePartnerEventSourceResponse DescribePartnerEventSource(DescribePartnerEventSourceRequest request);
/// <summary>
/// An SaaS partner can use this operation to list details about a partner event source
/// that they have created. Amazon Web Services customers do not use this operation. Instead,
/// Amazon Web Services customers can use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventSource.html">DescribeEventSource</a>
/// to see details about a partner event source that is shared with them.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribePartnerEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribePartnerEventSource">REST API Reference for DescribePartnerEventSource Operation</seealso>
Task<DescribePartnerEventSourceResponse> DescribePartnerEventSourceAsync(DescribePartnerEventSourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeReplay
/// <summary>
/// Retrieves details about a replay. Use <code>DescribeReplay</code> to determine the
/// progress of a running replay. A replay processes events to replay based on the time
/// in the event, and replays them using 1 minute intervals. If you use <code>StartReplay</code>
/// and specify an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers
/// a 20 minute time range, the events are replayed from the first minute of that 20 minute
/// range first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeReplay service method.</param>
///
/// <returns>The response from the DescribeReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplay">REST API Reference for DescribeReplay Operation</seealso>
DescribeReplayResponse DescribeReplay(DescribeReplayRequest request);
/// <summary>
/// Retrieves details about a replay. Use <code>DescribeReplay</code> to determine the
/// progress of a running replay. A replay processes events to replay based on the time
/// in the event, and replays them using 1 minute intervals. If you use <code>StartReplay</code>
/// and specify an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers
/// a 20 minute time range, the events are replayed from the first minute of that 20 minute
/// range first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeReplay service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplay">REST API Reference for DescribeReplay Operation</seealso>
Task<DescribeReplayResponse> DescribeReplayAsync(DescribeReplayRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeRule
/// <summary>
/// Describes the specified rule.
///
///
/// <para>
/// DescribeRule does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeRule service method.</param>
///
/// <returns>The response from the DescribeRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule">REST API Reference for DescribeRule Operation</seealso>
DescribeRuleResponse DescribeRule(DescribeRuleRequest request);
/// <summary>
/// Describes the specified rule.
///
///
/// <para>
/// DescribeRule does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule">REST API Reference for DescribeRule Operation</seealso>
Task<DescribeRuleResponse> DescribeRuleAsync(DescribeRuleRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DisableRule
/// <summary>
/// Disables the specified rule. A disabled rule won't match any events, and won't self-trigger
/// if it has a schedule expression.
///
///
/// <para>
/// When you disable a rule, incoming events might continue to match to the disabled rule.
/// Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRule service method.</param>
///
/// <returns>The response from the DisableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule">REST API Reference for DisableRule Operation</seealso>
DisableRuleResponse DisableRule(DisableRuleRequest request);
/// <summary>
/// Disables the specified rule. A disabled rule won't match any events, and won't self-trigger
/// if it has a schedule expression.
///
///
/// <para>
/// When you disable a rule, incoming events might continue to match to the disabled rule.
/// Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DisableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule">REST API Reference for DisableRule Operation</seealso>
Task<DisableRuleResponse> DisableRuleAsync(DisableRuleRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region EnableRule
/// <summary>
/// Enables the specified rule. If the rule does not exist, the operation fails.
///
///
/// <para>
/// When you enable a rule, incoming events might not immediately start matching to a
/// newly enabled rule. Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRule service method.</param>
///
/// <returns>The response from the EnableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule">REST API Reference for EnableRule Operation</seealso>
EnableRuleResponse EnableRule(EnableRuleRequest request);
/// <summary>
/// Enables the specified rule. If the rule does not exist, the operation fails.
///
///
/// <para>
/// When you enable a rule, incoming events might not immediately start matching to a
/// newly enabled rule. Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the EnableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule">REST API Reference for EnableRule Operation</seealso>
Task<EnableRuleResponse> EnableRuleAsync(EnableRuleRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListApiDestinations
/// <summary>
/// Retrieves a list of API destination in the account in the current Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApiDestinations service method.</param>
///
/// <returns>The response from the ListApiDestinations service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListApiDestinations">REST API Reference for ListApiDestinations Operation</seealso>
ListApiDestinationsResponse ListApiDestinations(ListApiDestinationsRequest request);
/// <summary>
/// Retrieves a list of API destination in the account in the current Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApiDestinations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListApiDestinations service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListApiDestinations">REST API Reference for ListApiDestinations Operation</seealso>
Task<ListApiDestinationsResponse> ListApiDestinationsAsync(ListApiDestinationsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListArchives
/// <summary>
/// Lists your archives. You can either list all the archives or you can provide a prefix
/// to match to the archive names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListArchives service method.</param>
///
/// <returns>The response from the ListArchives service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchives">REST API Reference for ListArchives Operation</seealso>
ListArchivesResponse ListArchives(ListArchivesRequest request);
/// <summary>
/// Lists your archives. You can either list all the archives or you can provide a prefix
/// to match to the archive names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListArchives service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListArchives service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchives">REST API Reference for ListArchives Operation</seealso>
Task<ListArchivesResponse> ListArchivesAsync(ListArchivesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListConnections
/// <summary>
/// Retrieves a list of connections from the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConnections service method.</param>
///
/// <returns>The response from the ListConnections service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListConnections">REST API Reference for ListConnections Operation</seealso>
ListConnectionsResponse ListConnections(ListConnectionsRequest request);
/// <summary>
/// Retrieves a list of connections from the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConnections service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListConnections service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListConnections">REST API Reference for ListConnections Operation</seealso>
Task<ListConnectionsResponse> ListConnectionsAsync(ListConnectionsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListEventBuses
/// <summary>
/// Lists all the event buses in your account, including the default event bus, custom
/// event buses, and partner event buses.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventBuses service method.</param>
///
/// <returns>The response from the ListEventBuses service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventBuses">REST API Reference for ListEventBuses Operation</seealso>
ListEventBusesResponse ListEventBuses(ListEventBusesRequest request);
/// <summary>
/// Lists all the event buses in your account, including the default event bus, custom
/// event buses, and partner event buses.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventBuses service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListEventBuses service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventBuses">REST API Reference for ListEventBuses Operation</seealso>
Task<ListEventBusesResponse> ListEventBusesAsync(ListEventBusesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListEventSources
/// <summary>
/// You can use this to see all the partner event sources that have been shared with your
/// Amazon Web Services account. For more information about partner event sources, see
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventSources service method.</param>
///
/// <returns>The response from the ListEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventSources">REST API Reference for ListEventSources Operation</seealso>
ListEventSourcesResponse ListEventSources(ListEventSourcesRequest request);
/// <summary>
/// You can use this to see all the partner event sources that have been shared with your
/// Amazon Web Services account. For more information about partner event sources, see
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventSources service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventSources">REST API Reference for ListEventSources Operation</seealso>
Task<ListEventSourcesResponse> ListEventSourcesAsync(ListEventSourcesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListPartnerEventSourceAccounts
/// <summary>
/// An SaaS partner can use this operation to display the Amazon Web Services account
/// ID that a particular partner event source name is associated with. This operation
/// is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSourceAccounts service method.</param>
///
/// <returns>The response from the ListPartnerEventSourceAccounts service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSourceAccounts">REST API Reference for ListPartnerEventSourceAccounts Operation</seealso>
ListPartnerEventSourceAccountsResponse ListPartnerEventSourceAccounts(ListPartnerEventSourceAccountsRequest request);
/// <summary>
/// An SaaS partner can use this operation to display the Amazon Web Services account
/// ID that a particular partner event source name is associated with. This operation
/// is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSourceAccounts service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListPartnerEventSourceAccounts service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSourceAccounts">REST API Reference for ListPartnerEventSourceAccounts Operation</seealso>
Task<ListPartnerEventSourceAccountsResponse> ListPartnerEventSourceAccountsAsync(ListPartnerEventSourceAccountsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListPartnerEventSources
/// <summary>
/// An SaaS partner can use this operation to list all the partner event source names
/// that they have created. This operation is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSources service method.</param>
///
/// <returns>The response from the ListPartnerEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSources">REST API Reference for ListPartnerEventSources Operation</seealso>
ListPartnerEventSourcesResponse ListPartnerEventSources(ListPartnerEventSourcesRequest request);
/// <summary>
/// An SaaS partner can use this operation to list all the partner event source names
/// that they have created. This operation is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSources service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListPartnerEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSources">REST API Reference for ListPartnerEventSources Operation</seealso>
Task<ListPartnerEventSourcesResponse> ListPartnerEventSourcesAsync(ListPartnerEventSourcesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListReplays
/// <summary>
/// Lists your replays. You can either list all the replays or you can provide a prefix
/// to match to the replay names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListReplays service method.</param>
///
/// <returns>The response from the ListReplays service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplays">REST API Reference for ListReplays Operation</seealso>
ListReplaysResponse ListReplays(ListReplaysRequest request);
/// <summary>
/// Lists your replays. You can either list all the replays or you can provide a prefix
/// to match to the replay names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListReplays service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListReplays service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplays">REST API Reference for ListReplays Operation</seealso>
Task<ListReplaysResponse> ListReplaysAsync(ListReplaysRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListRuleNamesByTarget
/// <summary>
/// Lists the rules for the specified target. You can see which of the rules in Amazon
/// EventBridge can invoke a specific target in your account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRuleNamesByTarget service method.</param>
///
/// <returns>The response from the ListRuleNamesByTarget service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget">REST API Reference for ListRuleNamesByTarget Operation</seealso>
ListRuleNamesByTargetResponse ListRuleNamesByTarget(ListRuleNamesByTargetRequest request);
/// <summary>
/// Lists the rules for the specified target. You can see which of the rules in Amazon
/// EventBridge can invoke a specific target in your account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRuleNamesByTarget service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRuleNamesByTarget service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget">REST API Reference for ListRuleNamesByTarget Operation</seealso>
Task<ListRuleNamesByTargetResponse> ListRuleNamesByTargetAsync(ListRuleNamesByTargetRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListRules
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
ListRulesResponse ListRules();
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRules service method.</param>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
ListRulesResponse ListRules(ListRulesRequest request);
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
Task<ListRulesResponse> ListRulesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRules service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
Task<ListRulesResponse> ListRulesAsync(ListRulesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTagsForResource
/// <summary>
/// Displays the tags associated with an EventBridge resource. In EventBridge, rules and
/// event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request);
/// <summary>
/// Displays the tags associated with an EventBridge resource. In EventBridge, rules and
/// event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTargetsByRule
/// <summary>
/// Lists the targets assigned to the specified rule.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTargetsByRule service method.</param>
///
/// <returns>The response from the ListTargetsByRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule">REST API Reference for ListTargetsByRule Operation</seealso>
ListTargetsByRuleResponse ListTargetsByRule(ListTargetsByRuleRequest request);
/// <summary>
/// Lists the targets assigned to the specified rule.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTargetsByRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTargetsByRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule">REST API Reference for ListTargetsByRule Operation</seealso>
Task<ListTargetsByRuleResponse> ListTargetsByRuleAsync(ListTargetsByRuleRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutEvents
/// <summary>
/// Sends custom events to Amazon EventBridge so that they can be matched to rules.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutEvents service method.</param>
///
/// <returns>The response from the PutEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents">REST API Reference for PutEvents Operation</seealso>
PutEventsResponse PutEvents(PutEventsRequest request);
/// <summary>
/// Sends custom events to Amazon EventBridge so that they can be matched to rules.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutEvents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents">REST API Reference for PutEvents Operation</seealso>
Task<PutEventsResponse> PutEventsAsync(PutEventsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutPartnerEvents
/// <summary>
/// This is used by SaaS partners to write events to a customer's partner event bus. Amazon
/// Web Services customers do not use this operation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPartnerEvents service method.</param>
///
/// <returns>The response from the PutPartnerEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEvents">REST API Reference for PutPartnerEvents Operation</seealso>
PutPartnerEventsResponse PutPartnerEvents(PutPartnerEventsRequest request);
/// <summary>
/// This is used by SaaS partners to write events to a customer's partner event bus. Amazon
/// Web Services customers do not use this operation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPartnerEvents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutPartnerEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEvents">REST API Reference for PutPartnerEvents Operation</seealso>
Task<PutPartnerEventsResponse> PutPartnerEventsAsync(PutPartnerEventsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutPermission
/// <summary>
/// Running <code>PutPermission</code> permits the specified Amazon Web Services account
/// or Amazon Web Services organization to put events to the specified <i>event bus</i>.
/// Amazon EventBridge (CloudWatch Events) rules in your account are triggered by these
/// events arriving to an event bus in your account.
///
///
/// <para>
/// For another account to send events to your account, that external account must have
/// an EventBridge rule with your account's event bus as a target.
/// </para>
///
/// <para>
/// To enable multiple Amazon Web Services accounts to put events to your event bus, run
/// <code>PutPermission</code> once for each of these accounts. Or, if all the accounts
/// are members of the same Amazon Web Services organization, you can run <code>PutPermission</code>
/// once specifying <code>Principal</code> as "*" and specifying the Amazon Web Services
/// organization ID in <code>Condition</code>, to grant permissions to all accounts in
/// that organization.
/// </para>
///
/// <para>
/// If you grant permissions using an organization, then accounts in that organization
/// must specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code>
/// to add your account's event bus as a target. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// The permission policy on the event bus cannot exceed 10 KB in size.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPermission service method.</param>
///
/// <returns>The response from the PutPermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.PolicyLengthExceededException">
/// The event bus policy is too long. For more information, see the limits.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission">REST API Reference for PutPermission Operation</seealso>
PutPermissionResponse PutPermission(PutPermissionRequest request);
/// <summary>
/// Running <code>PutPermission</code> permits the specified Amazon Web Services account
/// or Amazon Web Services organization to put events to the specified <i>event bus</i>.
/// Amazon EventBridge (CloudWatch Events) rules in your account are triggered by these
/// events arriving to an event bus in your account.
///
///
/// <para>
/// For another account to send events to your account, that external account must have
/// an EventBridge rule with your account's event bus as a target.
/// </para>
///
/// <para>
/// To enable multiple Amazon Web Services accounts to put events to your event bus, run
/// <code>PutPermission</code> once for each of these accounts. Or, if all the accounts
/// are members of the same Amazon Web Services organization, you can run <code>PutPermission</code>
/// once specifying <code>Principal</code> as "*" and specifying the Amazon Web Services
/// organization ID in <code>Condition</code>, to grant permissions to all accounts in
/// that organization.
/// </para>
///
/// <para>
/// If you grant permissions using an organization, then accounts in that organization
/// must specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code>
/// to add your account's event bus as a target. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// The permission policy on the event bus cannot exceed 10 KB in size.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPermission service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutPermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.PolicyLengthExceededException">
/// The event bus policy is too long. For more information, see the limits.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission">REST API Reference for PutPermission Operation</seealso>
Task<PutPermissionResponse> PutPermissionAsync(PutPermissionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutRule
/// <summary>
/// Creates or updates the specified rule. Rules are enabled by default, or based on value
/// of the state. You can disable a rule using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DisableRule.html">DisableRule</a>.
///
///
/// <para>
/// A single rule watches for events from a single event bus. Events generated by Amazon
/// Web Services services go to your account's default event bus. Events generated by
/// SaaS partner services or applications go to the matching partner event bus. If you
/// have custom applications or services, you can specify whether their events go to your
/// default event bus or a custom event bus that you have created. For more information,
/// see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
///
/// <para>
/// If you are updating an existing rule, the rule is replaced with what you specify in
/// this <code>PutRule</code> command. If you omit arguments in <code>PutRule</code>,
/// the old values for those arguments are not kept. Instead, they are replaced with null
/// values.
/// </para>
///
/// <para>
/// When you create or update a rule, incoming events might not immediately start matching
/// to new or updated rules. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns
/// are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger
/// based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression,
/// in which case the rule triggers on matching events as well as on a schedule.
/// </para>
///
/// <para>
/// When you initially create a rule, you can optionally assign one or more tags to the
/// rule. Tags can help you organize and categorize your resources. You can also use them
/// to scope user permissions, by granting a user permission to access or change only
/// rules with certain tag values. To use the <code>PutRule</code> operation and assign
/// tags, you must have both the <code>events:PutRule</code> and <code>events:TagResource</code>
/// permissions.
/// </para>
///
/// <para>
/// If you are updating an existing rule, any tags you specify in the <code>PutRule</code>
/// operation are ignored. To update the tags of an existing rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_TagResource.html">TagResource</a>
/// and <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UntagResource.html">UntagResource</a>.
/// </para>
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
///
/// <para>
/// In EventBridge, it is possible to create rules that lead to infinite loops, where
/// a rule is fired repeatedly. For example, a rule might detect that ACLs have changed
/// on an S3 bucket, and trigger software to change them to the desired state. If the
/// rule is not written carefully, the subsequent change to the ACLs fires the rule again,
/// creating an infinite loop.
/// </para>
///
/// <para>
/// To prevent this, write the rules so that the triggered actions do not re-fire the
/// same rule. For example, your rule could fire only if ACLs are found to be in a bad
/// state, instead of after any change.
/// </para>
///
/// <para>
/// An infinite loop can quickly cause higher than expected charges. We recommend that
/// you use budgeting, which alerts you when charges exceed your specified limit. For
/// more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html">Managing
/// Your Costs with Budgets</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutRule service method.</param>
///
/// <returns>The response from the PutRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule">REST API Reference for PutRule Operation</seealso>
PutRuleResponse PutRule(PutRuleRequest request);
/// <summary>
/// Creates or updates the specified rule. Rules are enabled by default, or based on value
/// of the state. You can disable a rule using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DisableRule.html">DisableRule</a>.
///
///
/// <para>
/// A single rule watches for events from a single event bus. Events generated by Amazon
/// Web Services services go to your account's default event bus. Events generated by
/// SaaS partner services or applications go to the matching partner event bus. If you
/// have custom applications or services, you can specify whether their events go to your
/// default event bus or a custom event bus that you have created. For more information,
/// see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
///
/// <para>
/// If you are updating an existing rule, the rule is replaced with what you specify in
/// this <code>PutRule</code> command. If you omit arguments in <code>PutRule</code>,
/// the old values for those arguments are not kept. Instead, they are replaced with null
/// values.
/// </para>
///
/// <para>
/// When you create or update a rule, incoming events might not immediately start matching
/// to new or updated rules. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns
/// are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger
/// based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression,
/// in which case the rule triggers on matching events as well as on a schedule.
/// </para>
///
/// <para>
/// When you initially create a rule, you can optionally assign one or more tags to the
/// rule. Tags can help you organize and categorize your resources. You can also use them
/// to scope user permissions, by granting a user permission to access or change only
/// rules with certain tag values. To use the <code>PutRule</code> operation and assign
/// tags, you must have both the <code>events:PutRule</code> and <code>events:TagResource</code>
/// permissions.
/// </para>
///
/// <para>
/// If you are updating an existing rule, any tags you specify in the <code>PutRule</code>
/// operation are ignored. To update the tags of an existing rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_TagResource.html">TagResource</a>
/// and <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UntagResource.html">UntagResource</a>.
/// </para>
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
///
/// <para>
/// In EventBridge, it is possible to create rules that lead to infinite loops, where
/// a rule is fired repeatedly. For example, a rule might detect that ACLs have changed
/// on an S3 bucket, and trigger software to change them to the desired state. If the
/// rule is not written carefully, the subsequent change to the ACLs fires the rule again,
/// creating an infinite loop.
/// </para>
///
/// <para>
/// To prevent this, write the rules so that the triggered actions do not re-fire the
/// same rule. For example, your rule could fire only if ACLs are found to be in a bad
/// state, instead of after any change.
/// </para>
///
/// <para>
/// An infinite loop can quickly cause higher than expected charges. We recommend that
/// you use budgeting, which alerts you when charges exceed your specified limit. For
/// more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html">Managing
/// Your Costs with Budgets</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule">REST API Reference for PutRule Operation</seealso>
Task<PutRuleResponse> PutRuleAsync(PutRuleRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutTargets
/// <summary>
/// Adds the specified targets to the specified rule, or updates the targets if they are
/// already associated with the rule.
///
///
/// <para>
/// Targets are the resources that are invoked when a rule is triggered.
/// </para>
///
/// <para>
/// You can configure the following as targets for Events:
/// </para>
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html">API
/// destination</a>
/// </para>
/// </li> <li>
/// <para>
/// Amazon API Gateway REST API endpoints
/// </para>
/// </li> <li>
/// <para>
/// API Gateway
/// </para>
/// </li> <li>
/// <para>
/// Batch job queue
/// </para>
/// </li> <li>
/// <para>
/// CloudWatch Logs group
/// </para>
/// </li> <li>
/// <para>
/// CodeBuild project
/// </para>
/// </li> <li>
/// <para>
/// CodePipeline
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>CreateSnapshot</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>RebootInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>StopInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>TerminateInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon ECS tasks
/// </para>
/// </li> <li>
/// <para>
/// Event bus in a different Amazon Web Services account or Region.
/// </para>
///
/// <para>
/// You can use an event bus in the US East (N. Virginia) us-east-1, US West (Oregon)
/// us-west-2, or Europe (Ireland) eu-west-1 Regions as a target for a rule.
/// </para>
/// </li> <li>
/// <para>
/// Firehose delivery stream (Kinesis Data Firehose)
/// </para>
/// </li> <li>
/// <para>
/// Inspector assessment template (Amazon Inspector)
/// </para>
/// </li> <li>
/// <para>
/// Kinesis stream (Kinesis Data Stream)
/// </para>
/// </li> <li>
/// <para>
/// Lambda function
/// </para>
/// </li> <li>
/// <para>
/// Redshift clusters (Data API statement execution)
/// </para>
/// </li> <li>
/// <para>
/// Amazon SNS topic
/// </para>
/// </li> <li>
/// <para>
/// Amazon SQS queues (includes FIFO queues
/// </para>
/// </li> <li>
/// <para>
/// SSM Automation
/// </para>
/// </li> <li>
/// <para>
/// SSM OpsItem
/// </para>
/// </li> <li>
/// <para>
/// SSM Run Command
/// </para>
/// </li> <li>
/// <para>
/// Step Functions state machines
/// </para>
/// </li> </ul>
/// <para>
/// Creating rules with built-in targets is supported only in the Management Console.
/// The built-in targets are <code>EC2 CreateSnapshot API call</code>, <code>EC2 RebootInstances
/// API call</code>, <code>EC2 StopInstances API call</code>, and <code>EC2 TerminateInstances
/// API call</code>.
/// </para>
///
/// <para>
/// For some target types, <code>PutTargets</code> provides target-specific parameters.
/// If the target is a Kinesis data stream, you can optionally specify which shard the
/// event goes to by using the <code>KinesisParameters</code> argument. To invoke a command
/// on multiple EC2 instances with one rule, you can use the <code>RunCommandParameters</code>
/// field.
/// </para>
///
/// <para>
/// To be able to make API calls against the resources that you own, Amazon EventBridge
/// needs the appropriate permissions. For Lambda and Amazon SNS resources, EventBridge
/// relies on resource-based policies. For EC2 instances, Kinesis Data Streams, Step Functions
/// state machines and API Gateway REST APIs, EventBridge relies on IAM roles that you
/// specify in the <code>RoleARN</code> argument in <code>PutTargets</code>. For more
/// information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html">Authentication
/// and Access Control</a> in the <i>Amazon EventBridge User Guide</i>.
/// </para>
///
/// <para>
/// If another Amazon Web Services account is in the same region and has granted you permission
/// (using <code>PutPermission</code>), you can send events to that account. Set that
/// account's event bus as a target of the rules in your account. To send the matched
/// events to the other account, specify that account's event bus as the <code>Arn</code>
/// value when you run <code>PutTargets</code>. If your account sends events to another
/// account, your account is charged for each sent event. Each event sent to another account
/// is charged as a custom event. The account receiving the event is not charged. For
/// more information, see <a href="http://aws.amazon.com/eventbridge/pricing/">Amazon
/// EventBridge Pricing</a>.
/// </para>
/// <note>
/// <para>
/// <code>Input</code>, <code>InputPath</code>, and <code>InputTransformer</code> are
/// not available with <code>PutTarget</code> if the target is an event bus of a different
/// Amazon Web Services account.
/// </para>
/// </note>
/// <para>
/// If you are setting the event bus of another account as the target, and that account
/// granted permission to your account through an organization instead of directly by
/// the account ID, then you must specify a <code>RoleArn</code> with proper permissions
/// in the <code>Target</code> structure. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// For more information about enabling cross-account events, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// <b>Input</b>, <b>InputPath</b>, and <b>InputTransformer</b> are mutually exclusive
/// and optional parameters of a target. When a rule is triggered due to a matched event:
/// </para>
/// <ul> <li>
/// <para>
/// If none of the following arguments are specified for a target, then the entire event
/// is passed to the target in JSON format (unless the target is Amazon EC2 Run Command
/// or Amazon ECS task, in which case nothing from the event is passed to the target).
/// </para>
/// </li> <li>
/// <para>
/// If <b>Input</b> is specified in the form of valid JSON, then the matched event is
/// overridden with this constant.
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputPath</b> is specified in the form of JSONPath (for example, <code>$.detail</code>),
/// then only the part of the event specified in the path is passed to the target (for
/// example, only the detail part of the event is passed).
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputTransformer</b> is specified, then one or more specified JSONPaths are
/// extracted from the event and used as values in a template that you specify as the
/// input to the target.
/// </para>
/// </li> </ul>
/// <para>
/// When you specify <code>InputPath</code> or <code>InputTransformer</code>, you must
/// use JSON dot notation, not bracket notation.
/// </para>
///
/// <para>
/// When you add targets to a rule and the associated rule triggers soon after, new or
/// updated targets might not be immediately invoked. Allow a short period of time for
/// changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutTargets service method.</param>
///
/// <returns>The response from the PutTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets">REST API Reference for PutTargets Operation</seealso>
PutTargetsResponse PutTargets(PutTargetsRequest request);
/// <summary>
/// Adds the specified targets to the specified rule, or updates the targets if they are
/// already associated with the rule.
///
///
/// <para>
/// Targets are the resources that are invoked when a rule is triggered.
/// </para>
///
/// <para>
/// You can configure the following as targets for Events:
/// </para>
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html">API
/// destination</a>
/// </para>
/// </li> <li>
/// <para>
/// Amazon API Gateway REST API endpoints
/// </para>
/// </li> <li>
/// <para>
/// API Gateway
/// </para>
/// </li> <li>
/// <para>
/// Batch job queue
/// </para>
/// </li> <li>
/// <para>
/// CloudWatch Logs group
/// </para>
/// </li> <li>
/// <para>
/// CodeBuild project
/// </para>
/// </li> <li>
/// <para>
/// CodePipeline
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>CreateSnapshot</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>RebootInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>StopInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>TerminateInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon ECS tasks
/// </para>
/// </li> <li>
/// <para>
/// Event bus in a different Amazon Web Services account or Region.
/// </para>
///
/// <para>
/// You can use an event bus in the US East (N. Virginia) us-east-1, US West (Oregon)
/// us-west-2, or Europe (Ireland) eu-west-1 Regions as a target for a rule.
/// </para>
/// </li> <li>
/// <para>
/// Firehose delivery stream (Kinesis Data Firehose)
/// </para>
/// </li> <li>
/// <para>
/// Inspector assessment template (Amazon Inspector)
/// </para>
/// </li> <li>
/// <para>
/// Kinesis stream (Kinesis Data Stream)
/// </para>
/// </li> <li>
/// <para>
/// Lambda function
/// </para>
/// </li> <li>
/// <para>
/// Redshift clusters (Data API statement execution)
/// </para>
/// </li> <li>
/// <para>
/// Amazon SNS topic
/// </para>
/// </li> <li>
/// <para>
/// Amazon SQS queues (includes FIFO queues
/// </para>
/// </li> <li>
/// <para>
/// SSM Automation
/// </para>
/// </li> <li>
/// <para>
/// SSM OpsItem
/// </para>
/// </li> <li>
/// <para>
/// SSM Run Command
/// </para>
/// </li> <li>
/// <para>
/// Step Functions state machines
/// </para>
/// </li> </ul>
/// <para>
/// Creating rules with built-in targets is supported only in the Management Console.
/// The built-in targets are <code>EC2 CreateSnapshot API call</code>, <code>EC2 RebootInstances
/// API call</code>, <code>EC2 StopInstances API call</code>, and <code>EC2 TerminateInstances
/// API call</code>.
/// </para>
///
/// <para>
/// For some target types, <code>PutTargets</code> provides target-specific parameters.
/// If the target is a Kinesis data stream, you can optionally specify which shard the
/// event goes to by using the <code>KinesisParameters</code> argument. To invoke a command
/// on multiple EC2 instances with one rule, you can use the <code>RunCommandParameters</code>
/// field.
/// </para>
///
/// <para>
/// To be able to make API calls against the resources that you own, Amazon EventBridge
/// needs the appropriate permissions. For Lambda and Amazon SNS resources, EventBridge
/// relies on resource-based policies. For EC2 instances, Kinesis Data Streams, Step Functions
/// state machines and API Gateway REST APIs, EventBridge relies on IAM roles that you
/// specify in the <code>RoleARN</code> argument in <code>PutTargets</code>. For more
/// information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html">Authentication
/// and Access Control</a> in the <i>Amazon EventBridge User Guide</i>.
/// </para>
///
/// <para>
/// If another Amazon Web Services account is in the same region and has granted you permission
/// (using <code>PutPermission</code>), you can send events to that account. Set that
/// account's event bus as a target of the rules in your account. To send the matched
/// events to the other account, specify that account's event bus as the <code>Arn</code>
/// value when you run <code>PutTargets</code>. If your account sends events to another
/// account, your account is charged for each sent event. Each event sent to another account
/// is charged as a custom event. The account receiving the event is not charged. For
/// more information, see <a href="http://aws.amazon.com/eventbridge/pricing/">Amazon
/// EventBridge Pricing</a>.
/// </para>
/// <note>
/// <para>
/// <code>Input</code>, <code>InputPath</code>, and <code>InputTransformer</code> are
/// not available with <code>PutTarget</code> if the target is an event bus of a different
/// Amazon Web Services account.
/// </para>
/// </note>
/// <para>
/// If you are setting the event bus of another account as the target, and that account
/// granted permission to your account through an organization instead of directly by
/// the account ID, then you must specify a <code>RoleArn</code> with proper permissions
/// in the <code>Target</code> structure. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// For more information about enabling cross-account events, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// <b>Input</b>, <b>InputPath</b>, and <b>InputTransformer</b> are mutually exclusive
/// and optional parameters of a target. When a rule is triggered due to a matched event:
/// </para>
/// <ul> <li>
/// <para>
/// If none of the following arguments are specified for a target, then the entire event
/// is passed to the target in JSON format (unless the target is Amazon EC2 Run Command
/// or Amazon ECS task, in which case nothing from the event is passed to the target).
/// </para>
/// </li> <li>
/// <para>
/// If <b>Input</b> is specified in the form of valid JSON, then the matched event is
/// overridden with this constant.
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputPath</b> is specified in the form of JSONPath (for example, <code>$.detail</code>),
/// then only the part of the event specified in the path is passed to the target (for
/// example, only the detail part of the event is passed).
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputTransformer</b> is specified, then one or more specified JSONPaths are
/// extracted from the event and used as values in a template that you specify as the
/// input to the target.
/// </para>
/// </li> </ul>
/// <para>
/// When you specify <code>InputPath</code> or <code>InputTransformer</code>, you must
/// use JSON dot notation, not bracket notation.
/// </para>
///
/// <para>
/// When you add targets to a rule and the associated rule triggers soon after, new or
/// updated targets might not be immediately invoked. Allow a short period of time for
/// changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutTargets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets">REST API Reference for PutTargets Operation</seealso>
Task<PutTargetsResponse> PutTargetsAsync(PutTargetsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region RemovePermission
/// <summary>
/// Revokes the permission of another Amazon Web Services account to be able to put events
/// to the specified event bus. Specify the account to revoke by the <code>StatementId</code>
/// value that you associated with the account when you granted it permission with <code>PutPermission</code>.
/// You can find the <code>StatementId</code> by using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventBus.html">DescribeEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemovePermission service method.</param>
///
/// <returns>The response from the RemovePermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission">REST API Reference for RemovePermission Operation</seealso>
RemovePermissionResponse RemovePermission(RemovePermissionRequest request);
/// <summary>
/// Revokes the permission of another Amazon Web Services account to be able to put events
/// to the specified event bus. Specify the account to revoke by the <code>StatementId</code>
/// value that you associated with the account when you granted it permission with <code>PutPermission</code>.
/// You can find the <code>StatementId</code> by using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventBus.html">DescribeEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemovePermission service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RemovePermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission">REST API Reference for RemovePermission Operation</seealso>
Task<RemovePermissionResponse> RemovePermissionAsync(RemovePermissionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region RemoveTargets
/// <summary>
/// Removes the specified targets from the specified rule. When the rule is triggered,
/// those targets are no longer be invoked.
///
///
/// <para>
/// When you remove a target, when the associated rule triggers, removed targets might
/// continue to be invoked. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemoveTargets service method.</param>
///
/// <returns>The response from the RemoveTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets">REST API Reference for RemoveTargets Operation</seealso>
RemoveTargetsResponse RemoveTargets(RemoveTargetsRequest request);
/// <summary>
/// Removes the specified targets from the specified rule. When the rule is triggered,
/// those targets are no longer be invoked.
///
///
/// <para>
/// When you remove a target, when the associated rule triggers, removed targets might
/// continue to be invoked. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemoveTargets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RemoveTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets">REST API Reference for RemoveTargets Operation</seealso>
Task<RemoveTargetsResponse> RemoveTargetsAsync(RemoveTargetsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartReplay
/// <summary>
/// Starts the specified replay. Events are not necessarily replayed in the exact same
/// order that they were added to the archive. A replay processes events to replay based
/// on the time in the event, and replays them using 1 minute intervals. If you specify
/// an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers a 20 minute
/// time range, the events are replayed from the first minute of that 20 minute range
/// first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartReplay service method.</param>
///
/// <returns>The response from the StartReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplay">REST API Reference for StartReplay Operation</seealso>
StartReplayResponse StartReplay(StartReplayRequest request);
/// <summary>
/// Starts the specified replay. Events are not necessarily replayed in the exact same
/// order that they were added to the archive. A replay processes events to replay based
/// on the time in the event, and replays them using 1 minute intervals. If you specify
/// an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers a 20 minute
/// time range, the events are replayed from the first minute of that 20 minute range
/// first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartReplay service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplay">REST API Reference for StartReplay Operation</seealso>
Task<StartReplayResponse> StartReplayAsync(StartReplayRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region TagResource
/// <summary>
/// Assigns one or more tags (key-value pairs) to the specified EventBridge resource.
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values. In EventBridge, rules and event buses can be tagged.
///
///
/// <para>
/// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly
/// as strings of characters.
/// </para>
///
/// <para>
/// You can use the <code>TagResource</code> action with a resource that already has tags.
/// If you specify a new tag key, this tag is appended to the list of tags associated
/// with the resource. If you specify a tag key that is already associated with the resource,
/// the new tag value that you specify replaces the previous value for that tag.
/// </para>
///
/// <para>
/// You can associate as many as 50 tags with a resource.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResource">REST API Reference for TagResource Operation</seealso>
TagResourceResponse TagResource(TagResourceRequest request);
/// <summary>
/// Assigns one or more tags (key-value pairs) to the specified EventBridge resource.
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values. In EventBridge, rules and event buses can be tagged.
///
///
/// <para>
/// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly
/// as strings of characters.
/// </para>
///
/// <para>
/// You can use the <code>TagResource</code> action with a resource that already has tags.
/// If you specify a new tag key, this tag is appended to the list of tags associated
/// with the resource. If you specify a tag key that is already associated with the resource,
/// the new tag value that you specify replaces the previous value for that tag.
/// </para>
///
/// <para>
/// You can associate as many as 50 tags with a resource.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResource">REST API Reference for TagResource Operation</seealso>
Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region TestEventPattern
/// <summary>
/// Tests whether the specified event pattern matches the provided event.
///
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TestEventPattern service method.</param>
///
/// <returns>The response from the TestEventPattern service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern">REST API Reference for TestEventPattern Operation</seealso>
TestEventPatternResponse TestEventPattern(TestEventPatternRequest request);
/// <summary>
/// Tests whether the specified event pattern matches the provided event.
///
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TestEventPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TestEventPattern service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern">REST API Reference for TestEventPattern Operation</seealso>
Task<TestEventPatternResponse> TestEventPatternAsync(TestEventPatternRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UntagResource
/// <summary>
/// Removes one or more tags from the specified EventBridge resource. In Amazon EventBridge
/// (CloudWatch Events), rules and event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UntagResource">REST API Reference for UntagResource Operation</seealso>
UntagResourceResponse UntagResource(UntagResourceRequest request);
/// <summary>
/// Removes one or more tags from the specified EventBridge resource. In Amazon EventBridge
/// (CloudWatch Events), rules and event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UntagResource">REST API Reference for UntagResource Operation</seealso>
Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateApiDestination
/// <summary>
/// Updates an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApiDestination service method.</param>
///
/// <returns>The response from the UpdateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateApiDestination">REST API Reference for UpdateApiDestination Operation</seealso>
UpdateApiDestinationResponse UpdateApiDestination(UpdateApiDestinationRequest request);
/// <summary>
/// Updates an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateApiDestination">REST API Reference for UpdateApiDestination Operation</seealso>
Task<UpdateApiDestinationResponse> UpdateApiDestinationAsync(UpdateApiDestinationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateArchive
/// <summary>
/// Updates the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateArchive service method.</param>
///
/// <returns>The response from the UpdateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchive">REST API Reference for UpdateArchive Operation</seealso>
UpdateArchiveResponse UpdateArchive(UpdateArchiveRequest request);
/// <summary>
/// Updates the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchive">REST API Reference for UpdateArchive Operation</seealso>
Task<UpdateArchiveResponse> UpdateArchiveAsync(UpdateArchiveRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateConnection
/// <summary>
/// Updates settings for a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateConnection service method.</param>
///
/// <returns>The response from the UpdateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateConnection">REST API Reference for UpdateConnection Operation</seealso>
UpdateConnectionResponse UpdateConnection(UpdateConnectionRequest request);
/// <summary>
/// Updates settings for a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateConnection">REST API Reference for UpdateConnection Operation</seealso>
Task<UpdateConnectionResponse> UpdateConnectionAsync(UpdateConnectionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 3,669 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.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.CloudWatchEvents.Model;
using Amazon.CloudWatchEvents.Model.Internal.MarshallTransformations;
using Amazon.CloudWatchEvents.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.CloudWatchEvents
{
/// <summary>
/// Implementation for accessing CloudWatchEvents
///
/// Amazon EventBridge helps you to respond to state changes in your Amazon Web Services
/// resources. When your resources change state, they automatically send events to an
/// event stream. You can create rules that match selected events in the stream and route
/// them to targets to take action. You can also use rules to take action on a predetermined
/// schedule. For example, you can configure rules to:
///
/// <ul> <li>
/// <para>
/// Automatically invoke an Lambda function to update DNS entries when an event notifies
/// you that Amazon EC2 instance enters the running state.
/// </para>
/// </li> <li>
/// <para>
/// Direct specific API records from CloudTrail to an Amazon Kinesis data stream for detailed
/// analysis of potential security or availability risks.
/// </para>
/// </li> <li>
/// <para>
/// Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume.
/// </para>
/// </li> </ul>
/// <para>
/// For more information about the features of Amazon EventBridge, see the <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide">Amazon
/// EventBridge User Guide</a>.
/// </para>
/// </summary>
public partial class AmazonCloudWatchEventsClient : AmazonServiceClient, IAmazonCloudWatchEvents
{
private static IServiceMetadata serviceMetadata = new AmazonCloudWatchEventsMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonCloudWatchEventsClient 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.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonCloudWatchEventsClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudWatchEventsConfig()) { }
/// <summary>
/// Constructs AmazonCloudWatchEventsClient 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.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonCloudWatchEventsClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudWatchEventsConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonCloudWatchEventsClient 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.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonCloudWatchEventsClient Configuration Object</param>
public AmazonCloudWatchEventsClient(AmazonCloudWatchEventsConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonCloudWatchEventsClient(AWSCredentials credentials)
: this(credentials, new AmazonCloudWatchEventsConfig())
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonCloudWatchEventsClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonCloudWatchEventsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Credentials and an
/// AmazonCloudWatchEventsClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonCloudWatchEventsClient Configuration Object</param>
public AmazonCloudWatchEventsClient(AWSCredentials credentials, AmazonCloudWatchEventsConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudWatchEventsConfig())
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudWatchEventsConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonCloudWatchEventsClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonCloudWatchEventsClient Configuration Object</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudWatchEventsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudWatchEventsConfig())
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudWatchEventsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonCloudWatchEventsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonCloudWatchEventsClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonCloudWatchEventsClient Configuration Object</param>
public AmazonCloudWatchEventsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudWatchEventsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customizes the runtime pipeline.
/// </summary>
/// <param name="pipeline">Runtime pipeline for the current client.</param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudWatchEventsEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region ActivateEventSource
internal virtual ActivateEventSourceResponse ActivateEventSource(ActivateEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ActivateEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ActivateEventSourceResponseUnmarshaller.Instance;
return Invoke<ActivateEventSourceResponse>(request, options);
}
/// <summary>
/// Activates a partner event source that has been deactivated. Once activated, your matching
/// event bus will start receiving events from the event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ActivateEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ActivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ActivateEventSource">REST API Reference for ActivateEventSource Operation</seealso>
public virtual Task<ActivateEventSourceResponse> ActivateEventSourceAsync(ActivateEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ActivateEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ActivateEventSourceResponseUnmarshaller.Instance;
return InvokeAsync<ActivateEventSourceResponse>(request, options, cancellationToken);
}
#endregion
#region CancelReplay
internal virtual CancelReplayResponse CancelReplay(CancelReplayRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelReplayResponseUnmarshaller.Instance;
return Invoke<CancelReplayResponse>(request, options);
}
/// <summary>
/// Cancels the specified replay.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CancelReplay service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CancelReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.IllegalStatusException">
/// An error occurred because a replay can be canceled only when the state is Running
/// or Starting.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplay">REST API Reference for CancelReplay Operation</seealso>
public virtual Task<CancelReplayResponse> CancelReplayAsync(CancelReplayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelReplayResponseUnmarshaller.Instance;
return InvokeAsync<CancelReplayResponse>(request, options, cancellationToken);
}
#endregion
#region CreateApiDestination
internal virtual CreateApiDestinationResponse CreateApiDestination(CreateApiDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateApiDestinationResponseUnmarshaller.Instance;
return Invoke<CreateApiDestinationResponse>(request, options);
}
/// <summary>
/// Creates an API destination, which is an HTTP invocation endpoint configured as a target
/// for events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateApiDestination">REST API Reference for CreateApiDestination Operation</seealso>
public virtual Task<CreateApiDestinationResponse> CreateApiDestinationAsync(CreateApiDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateApiDestinationResponseUnmarshaller.Instance;
return InvokeAsync<CreateApiDestinationResponse>(request, options, cancellationToken);
}
#endregion
#region CreateArchive
internal virtual CreateArchiveResponse CreateArchive(CreateArchiveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateArchiveResponseUnmarshaller.Instance;
return Invoke<CreateArchiveResponse>(request, options);
}
/// <summary>
/// Creates an archive of events with the specified settings. When you create an archive,
/// incoming events might not immediately start being sent to the archive. Allow a short
/// period of time for changes to take effect. If you do not specify a pattern to filter
/// events sent to the archive, all events are sent to the archive except replayed events.
/// Replayed events are not sent to an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchive">REST API Reference for CreateArchive Operation</seealso>
public virtual Task<CreateArchiveResponse> CreateArchiveAsync(CreateArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateArchiveResponseUnmarshaller.Instance;
return InvokeAsync<CreateArchiveResponse>(request, options, cancellationToken);
}
#endregion
#region CreateConnection
internal virtual CreateConnectionResponse CreateConnection(CreateConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateConnectionResponseUnmarshaller.Instance;
return Invoke<CreateConnectionResponse>(request, options);
}
/// <summary>
/// Creates a connection. A connection defines the authorization type and credentials
/// to use for authorization with an API destination HTTP endpoint.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
public virtual Task<CreateConnectionResponse> CreateConnectionAsync(CreateConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateConnectionResponseUnmarshaller.Instance;
return InvokeAsync<CreateConnectionResponse>(request, options, cancellationToken);
}
#endregion
#region CreateEventBus
internal virtual CreateEventBusResponse CreateEventBus(CreateEventBusRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEventBusResponseUnmarshaller.Instance;
return Invoke<CreateEventBusResponse>(request, options);
}
/// <summary>
/// Creates a new event bus within your account. This can be a custom event bus which
/// you can use to receive events from your custom applications and services, or it can
/// be a partner event bus which can be matched to a partner event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventBus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBus">REST API Reference for CreateEventBus Operation</seealso>
public virtual Task<CreateEventBusResponse> CreateEventBusAsync(CreateEventBusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEventBusResponseUnmarshaller.Instance;
return InvokeAsync<CreateEventBusResponse>(request, options, cancellationToken);
}
#endregion
#region CreatePartnerEventSource
internal virtual CreatePartnerEventSourceResponse CreatePartnerEventSource(CreatePartnerEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePartnerEventSourceResponseUnmarshaller.Instance;
return Invoke<CreatePartnerEventSourceResponse>(request, options);
}
/// <summary>
/// Called by an SaaS partner to create a partner event source. This operation is not
/// used by Amazon Web Services customers.
///
///
/// <para>
/// Each partner event source can be used by one Amazon Web Services account to create
/// a matching partner event bus in that Amazon Web Services account. A SaaS partner must
/// create one partner event source for each Amazon Web Services account that wants to
/// receive those event types.
/// </para>
///
/// <para>
/// A partner event source creates events based on resources within the SaaS partner's
/// service or application.
/// </para>
///
/// <para>
/// An Amazon Web Services account that creates a partner event bus that matches the partner
/// event source can use that event bus to receive events from the partner, and then process
/// them using Amazon Web Services Events rules and targets.
/// </para>
///
/// <para>
/// Partner event source names follow this format:
/// </para>
///
/// <para>
/// <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i> </code>
/// </para>
///
/// <para>
/// <i>partner_name</i> is determined during partner registration and identifies the
/// partner to Amazon Web Services customers. <i>event_namespace</i> is determined by
/// the partner and is a way for the partner to categorize their events. <i>event_name</i>
/// is determined by the partner, and should uniquely identify an event-generating resource
/// within the partner system. The combination of <i>event_namespace</i> and <i>event_name</i>
/// should help Amazon Web Services customers decide whether to create an event bus to
/// receive these events.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreatePartnerEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreatePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSource">REST API Reference for CreatePartnerEventSource Operation</seealso>
public virtual Task<CreatePartnerEventSourceResponse> CreatePartnerEventSourceAsync(CreatePartnerEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePartnerEventSourceResponseUnmarshaller.Instance;
return InvokeAsync<CreatePartnerEventSourceResponse>(request, options, cancellationToken);
}
#endregion
#region DeactivateEventSource
internal virtual DeactivateEventSourceResponse DeactivateEventSource(DeactivateEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeactivateEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeactivateEventSourceResponseUnmarshaller.Instance;
return Invoke<DeactivateEventSourceResponse>(request, options);
}
/// <summary>
/// You can use this operation to temporarily stop receiving events from the specified
/// partner event source. The matching event bus is not deleted.
///
///
/// <para>
/// When you deactivate a partner event source, the source goes into PENDING state. If
/// it remains in PENDING state for more than two weeks, it is deleted.
/// </para>
///
/// <para>
/// To activate a deactivated partner event source, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ActivateEventSource.html">ActivateEventSource</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeactivateEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeactivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeactivateEventSource">REST API Reference for DeactivateEventSource Operation</seealso>
public virtual Task<DeactivateEventSourceResponse> DeactivateEventSourceAsync(DeactivateEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeactivateEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeactivateEventSourceResponseUnmarshaller.Instance;
return InvokeAsync<DeactivateEventSourceResponse>(request, options, cancellationToken);
}
#endregion
#region DeauthorizeConnection
internal virtual DeauthorizeConnectionResponse DeauthorizeConnection(DeauthorizeConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeauthorizeConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeauthorizeConnectionResponseUnmarshaller.Instance;
return Invoke<DeauthorizeConnectionResponse>(request, options);
}
/// <summary>
/// Removes all authorization parameters from the connection. This lets you remove the
/// secret from the connection so you can reuse it without having to create a new connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeauthorizeConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeauthorizeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeauthorizeConnection">REST API Reference for DeauthorizeConnection Operation</seealso>
public virtual Task<DeauthorizeConnectionResponse> DeauthorizeConnectionAsync(DeauthorizeConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeauthorizeConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeauthorizeConnectionResponseUnmarshaller.Instance;
return InvokeAsync<DeauthorizeConnectionResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteApiDestination
internal virtual DeleteApiDestinationResponse DeleteApiDestination(DeleteApiDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApiDestinationResponseUnmarshaller.Instance;
return Invoke<DeleteApiDestinationResponse>(request, options);
}
/// <summary>
/// Deletes the specified API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteApiDestination">REST API Reference for DeleteApiDestination Operation</seealso>
public virtual Task<DeleteApiDestinationResponse> DeleteApiDestinationAsync(DeleteApiDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApiDestinationResponseUnmarshaller.Instance;
return InvokeAsync<DeleteApiDestinationResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteArchive
internal virtual DeleteArchiveResponse DeleteArchive(DeleteArchiveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteArchiveResponseUnmarshaller.Instance;
return Invoke<DeleteArchiveResponse>(request, options);
}
/// <summary>
/// Deletes the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchive">REST API Reference for DeleteArchive Operation</seealso>
public virtual Task<DeleteArchiveResponse> DeleteArchiveAsync(DeleteArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteArchiveResponseUnmarshaller.Instance;
return InvokeAsync<DeleteArchiveResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteConnection
internal virtual DeleteConnectionResponse DeleteConnection(DeleteConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteConnectionResponseUnmarshaller.Instance;
return Invoke<DeleteConnectionResponse>(request, options);
}
/// <summary>
/// Deletes a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
public virtual Task<DeleteConnectionResponse> DeleteConnectionAsync(DeleteConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteConnectionResponseUnmarshaller.Instance;
return InvokeAsync<DeleteConnectionResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteEventBus
internal virtual DeleteEventBusResponse DeleteEventBus(DeleteEventBusRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEventBusResponseUnmarshaller.Instance;
return Invoke<DeleteEventBusResponse>(request, options);
}
/// <summary>
/// Deletes the specified custom event bus or partner event bus. All rules associated
/// with this event bus need to be deleted. You can't delete your account's default event
/// bus.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventBus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteEventBus">REST API Reference for DeleteEventBus Operation</seealso>
public virtual Task<DeleteEventBusResponse> DeleteEventBusAsync(DeleteEventBusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEventBusResponseUnmarshaller.Instance;
return InvokeAsync<DeleteEventBusResponse>(request, options, cancellationToken);
}
#endregion
#region DeletePartnerEventSource
internal virtual DeletePartnerEventSourceResponse DeletePartnerEventSource(DeletePartnerEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePartnerEventSourceResponseUnmarshaller.Instance;
return Invoke<DeletePartnerEventSourceResponse>(request, options);
}
/// <summary>
/// This operation is used by SaaS partners to delete a partner event source. This operation
/// is not used by Amazon Web Services customers.
///
///
/// <para>
/// When you delete an event source, the status of the corresponding partner event bus
/// in the Amazon Web Services customer account becomes DELETED.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeletePartnerEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeletePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeletePartnerEventSource">REST API Reference for DeletePartnerEventSource Operation</seealso>
public virtual Task<DeletePartnerEventSourceResponse> DeletePartnerEventSourceAsync(DeletePartnerEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePartnerEventSourceResponseUnmarshaller.Instance;
return InvokeAsync<DeletePartnerEventSourceResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteRule
internal virtual DeleteRuleResponse DeleteRule(DeleteRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRuleResponseUnmarshaller.Instance;
return Invoke<DeleteRuleResponse>(request, options);
}
/// <summary>
/// Deletes the specified rule.
///
///
/// <para>
/// Before you can delete the rule, you must remove all targets, using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemoveTargets.html">RemoveTargets</a>.
/// </para>
///
/// <para>
/// When you delete a rule, incoming events might continue to match to the deleted rule.
/// Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// If you call delete rule multiple times for the same rule, all calls will succeed.
/// When you call delete rule for a non-existent custom eventbus, <code>ResourceNotFoundException</code>
/// is returned.
/// </para>
///
/// <para>
/// Managed rules are rules created and managed by another Amazon Web Services service
/// on your behalf. These rules are created by those other Amazon Web Services services
/// to support functionality in those services. You can delete these rules using the <code>Force</code>
/// option, but you should do so only if you are sure the other service is not still using
/// that rule.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule">REST API Reference for DeleteRule Operation</seealso>
public virtual Task<DeleteRuleResponse> DeleteRuleAsync(DeleteRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRuleResponseUnmarshaller.Instance;
return InvokeAsync<DeleteRuleResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeApiDestination
internal virtual DescribeApiDestinationResponse DescribeApiDestination(DescribeApiDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeApiDestinationResponseUnmarshaller.Instance;
return Invoke<DescribeApiDestinationResponse>(request, options);
}
/// <summary>
/// Retrieves details about an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeApiDestination">REST API Reference for DescribeApiDestination Operation</seealso>
public virtual Task<DescribeApiDestinationResponse> DescribeApiDestinationAsync(DescribeApiDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeApiDestinationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeApiDestinationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeArchive
internal virtual DescribeArchiveResponse DescribeArchive(DescribeArchiveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeArchiveResponseUnmarshaller.Instance;
return Invoke<DescribeArchiveResponse>(request, options);
}
/// <summary>
/// Retrieves details about an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchive">REST API Reference for DescribeArchive Operation</seealso>
public virtual Task<DescribeArchiveResponse> DescribeArchiveAsync(DescribeArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeArchiveResponseUnmarshaller.Instance;
return InvokeAsync<DescribeArchiveResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeConnection
internal virtual DescribeConnectionResponse DescribeConnection(DescribeConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeConnectionResponseUnmarshaller.Instance;
return Invoke<DescribeConnectionResponse>(request, options);
}
/// <summary>
/// Retrieves details about a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeConnection">REST API Reference for DescribeConnection Operation</seealso>
public virtual Task<DescribeConnectionResponse> DescribeConnectionAsync(DescribeConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeConnectionResponseUnmarshaller.Instance;
return InvokeAsync<DescribeConnectionResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEventBus
internal virtual DescribeEventBusResponse DescribeEventBus(DescribeEventBusRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventBusResponseUnmarshaller.Instance;
return Invoke<DescribeEventBusResponse>(request, options);
}
/// <summary>
/// Displays details about an event bus in your account. This can include the external
/// Amazon Web Services accounts that are permitted to write events to your default event
/// bus, and the associated policy. For custom event buses and partner event buses, it
/// displays the name, ARN, policy, state, and creation time.
///
///
/// <para>
/// To enable your account to receive events from other accounts on its default event
/// bus, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// For more information about partner event buses, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventBus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus">REST API Reference for DescribeEventBus Operation</seealso>
public virtual Task<DescribeEventBusResponse> DescribeEventBusAsync(DescribeEventBusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventBusRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventBusResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventBusResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEventSource
internal virtual DescribeEventSourceResponse DescribeEventSource(DescribeEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventSourceResponseUnmarshaller.Instance;
return Invoke<DescribeEventSourceResponse>(request, options);
}
/// <summary>
/// This operation lists details about a partner event source that is shared with your
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSource">REST API Reference for DescribeEventSource Operation</seealso>
public virtual Task<DescribeEventSourceResponse> DescribeEventSourceAsync(DescribeEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventSourceResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventSourceResponse>(request, options, cancellationToken);
}
#endregion
#region DescribePartnerEventSource
internal virtual DescribePartnerEventSourceResponse DescribePartnerEventSource(DescribePartnerEventSourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePartnerEventSourceResponseUnmarshaller.Instance;
return Invoke<DescribePartnerEventSourceResponse>(request, options);
}
/// <summary>
/// An SaaS partner can use this operation to list details about a partner event source
/// that they have created. Amazon Web Services customers do not use this operation. Instead,
/// Amazon Web Services customers can use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventSource.html">DescribeEventSource</a>
/// to see details about a partner event source that is shared with them.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribePartnerEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribePartnerEventSource">REST API Reference for DescribePartnerEventSource Operation</seealso>
public virtual Task<DescribePartnerEventSourceResponse> DescribePartnerEventSourceAsync(DescribePartnerEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePartnerEventSourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePartnerEventSourceResponseUnmarshaller.Instance;
return InvokeAsync<DescribePartnerEventSourceResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeReplay
internal virtual DescribeReplayResponse DescribeReplay(DescribeReplayRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeReplayResponseUnmarshaller.Instance;
return Invoke<DescribeReplayResponse>(request, options);
}
/// <summary>
/// Retrieves details about a replay. Use <code>DescribeReplay</code> to determine the
/// progress of a running replay. A replay processes events to replay based on the time
/// in the event, and replays them using 1 minute intervals. If you use <code>StartReplay</code>
/// and specify an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers
/// a 20 minute time range, the events are replayed from the first minute of that 20 minute
/// range first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeReplay service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplay">REST API Reference for DescribeReplay Operation</seealso>
public virtual Task<DescribeReplayResponse> DescribeReplayAsync(DescribeReplayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeReplayResponseUnmarshaller.Instance;
return InvokeAsync<DescribeReplayResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeRule
internal virtual DescribeRuleResponse DescribeRule(DescribeRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeRuleResponseUnmarshaller.Instance;
return Invoke<DescribeRuleResponse>(request, options);
}
/// <summary>
/// Describes the specified rule.
///
///
/// <para>
/// DescribeRule does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule">REST API Reference for DescribeRule Operation</seealso>
public virtual Task<DescribeRuleResponse> DescribeRuleAsync(DescribeRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeRuleResponseUnmarshaller.Instance;
return InvokeAsync<DescribeRuleResponse>(request, options, cancellationToken);
}
#endregion
#region DisableRule
internal virtual DisableRuleResponse DisableRule(DisableRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableRuleResponseUnmarshaller.Instance;
return Invoke<DisableRuleResponse>(request, options);
}
/// <summary>
/// Disables the specified rule. A disabled rule won't match any events, and won't self-trigger
/// if it has a schedule expression.
///
///
/// <para>
/// When you disable a rule, incoming events might continue to match to the disabled rule.
/// Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DisableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule">REST API Reference for DisableRule Operation</seealso>
public virtual Task<DisableRuleResponse> DisableRuleAsync(DisableRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableRuleResponseUnmarshaller.Instance;
return InvokeAsync<DisableRuleResponse>(request, options, cancellationToken);
}
#endregion
#region EnableRule
internal virtual EnableRuleResponse EnableRule(EnableRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableRuleResponseUnmarshaller.Instance;
return Invoke<EnableRuleResponse>(request, options);
}
/// <summary>
/// Enables the specified rule. If the rule does not exist, the operation fails.
///
///
/// <para>
/// When you enable a rule, incoming events might not immediately start matching to a
/// newly enabled rule. Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the EnableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule">REST API Reference for EnableRule Operation</seealso>
public virtual Task<EnableRuleResponse> EnableRuleAsync(EnableRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableRuleResponseUnmarshaller.Instance;
return InvokeAsync<EnableRuleResponse>(request, options, cancellationToken);
}
#endregion
#region ListApiDestinations
internal virtual ListApiDestinationsResponse ListApiDestinations(ListApiDestinationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApiDestinationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApiDestinationsResponseUnmarshaller.Instance;
return Invoke<ListApiDestinationsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of API destination in the account in the current Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApiDestinations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListApiDestinations service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListApiDestinations">REST API Reference for ListApiDestinations Operation</seealso>
public virtual Task<ListApiDestinationsResponse> ListApiDestinationsAsync(ListApiDestinationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApiDestinationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApiDestinationsResponseUnmarshaller.Instance;
return InvokeAsync<ListApiDestinationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListArchives
internal virtual ListArchivesResponse ListArchives(ListArchivesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListArchivesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListArchivesResponseUnmarshaller.Instance;
return Invoke<ListArchivesResponse>(request, options);
}
/// <summary>
/// Lists your archives. You can either list all the archives or you can provide a prefix
/// to match to the archive names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListArchives service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListArchives service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchives">REST API Reference for ListArchives Operation</seealso>
public virtual Task<ListArchivesResponse> ListArchivesAsync(ListArchivesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListArchivesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListArchivesResponseUnmarshaller.Instance;
return InvokeAsync<ListArchivesResponse>(request, options, cancellationToken);
}
#endregion
#region ListConnections
internal virtual ListConnectionsResponse ListConnections(ListConnectionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConnectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConnectionsResponseUnmarshaller.Instance;
return Invoke<ListConnectionsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of connections from the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConnections service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListConnections service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListConnections">REST API Reference for ListConnections Operation</seealso>
public virtual Task<ListConnectionsResponse> ListConnectionsAsync(ListConnectionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConnectionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConnectionsResponseUnmarshaller.Instance;
return InvokeAsync<ListConnectionsResponse>(request, options, cancellationToken);
}
#endregion
#region ListEventBuses
internal virtual ListEventBusesResponse ListEventBuses(ListEventBusesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventBusesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventBusesResponseUnmarshaller.Instance;
return Invoke<ListEventBusesResponse>(request, options);
}
/// <summary>
/// Lists all the event buses in your account, including the default event bus, custom
/// event buses, and partner event buses.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventBuses service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListEventBuses service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventBuses">REST API Reference for ListEventBuses Operation</seealso>
public virtual Task<ListEventBusesResponse> ListEventBusesAsync(ListEventBusesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventBusesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventBusesResponseUnmarshaller.Instance;
return InvokeAsync<ListEventBusesResponse>(request, options, cancellationToken);
}
#endregion
#region ListEventSources
internal virtual ListEventSourcesResponse ListEventSources(ListEventSourcesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventSourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventSourcesResponseUnmarshaller.Instance;
return Invoke<ListEventSourcesResponse>(request, options);
}
/// <summary>
/// You can use this to see all the partner event sources that have been shared with your
/// Amazon Web Services account. For more information about partner event sources, see
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventSources service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventSources">REST API Reference for ListEventSources Operation</seealso>
public virtual Task<ListEventSourcesResponse> ListEventSourcesAsync(ListEventSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventSourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventSourcesResponseUnmarshaller.Instance;
return InvokeAsync<ListEventSourcesResponse>(request, options, cancellationToken);
}
#endregion
#region ListPartnerEventSourceAccounts
internal virtual ListPartnerEventSourceAccountsResponse ListPartnerEventSourceAccounts(ListPartnerEventSourceAccountsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPartnerEventSourceAccountsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPartnerEventSourceAccountsResponseUnmarshaller.Instance;
return Invoke<ListPartnerEventSourceAccountsResponse>(request, options);
}
/// <summary>
/// An SaaS partner can use this operation to display the Amazon Web Services account
/// ID that a particular partner event source name is associated with. This operation
/// is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSourceAccounts service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListPartnerEventSourceAccounts service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSourceAccounts">REST API Reference for ListPartnerEventSourceAccounts Operation</seealso>
public virtual Task<ListPartnerEventSourceAccountsResponse> ListPartnerEventSourceAccountsAsync(ListPartnerEventSourceAccountsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPartnerEventSourceAccountsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPartnerEventSourceAccountsResponseUnmarshaller.Instance;
return InvokeAsync<ListPartnerEventSourceAccountsResponse>(request, options, cancellationToken);
}
#endregion
#region ListPartnerEventSources
internal virtual ListPartnerEventSourcesResponse ListPartnerEventSources(ListPartnerEventSourcesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPartnerEventSourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPartnerEventSourcesResponseUnmarshaller.Instance;
return Invoke<ListPartnerEventSourcesResponse>(request, options);
}
/// <summary>
/// An SaaS partner can use this operation to list all the partner event source names
/// that they have created. This operation is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSources service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListPartnerEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSources">REST API Reference for ListPartnerEventSources Operation</seealso>
public virtual Task<ListPartnerEventSourcesResponse> ListPartnerEventSourcesAsync(ListPartnerEventSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPartnerEventSourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPartnerEventSourcesResponseUnmarshaller.Instance;
return InvokeAsync<ListPartnerEventSourcesResponse>(request, options, cancellationToken);
}
#endregion
#region ListReplays
internal virtual ListReplaysResponse ListReplays(ListReplaysRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListReplaysRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListReplaysResponseUnmarshaller.Instance;
return Invoke<ListReplaysResponse>(request, options);
}
/// <summary>
/// Lists your replays. You can either list all the replays or you can provide a prefix
/// to match to the replay names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListReplays service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListReplays service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplays">REST API Reference for ListReplays Operation</seealso>
public virtual Task<ListReplaysResponse> ListReplaysAsync(ListReplaysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListReplaysRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListReplaysResponseUnmarshaller.Instance;
return InvokeAsync<ListReplaysResponse>(request, options, cancellationToken);
}
#endregion
#region ListRuleNamesByTarget
internal virtual ListRuleNamesByTargetResponse ListRuleNamesByTarget(ListRuleNamesByTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRuleNamesByTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRuleNamesByTargetResponseUnmarshaller.Instance;
return Invoke<ListRuleNamesByTargetResponse>(request, options);
}
/// <summary>
/// Lists the rules for the specified target. You can see which of the rules in Amazon
/// EventBridge can invoke a specific target in your account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRuleNamesByTarget service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRuleNamesByTarget service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget">REST API Reference for ListRuleNamesByTarget Operation</seealso>
public virtual Task<ListRuleNamesByTargetResponse> ListRuleNamesByTargetAsync(ListRuleNamesByTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRuleNamesByTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRuleNamesByTargetResponseUnmarshaller.Instance;
return InvokeAsync<ListRuleNamesByTargetResponse>(request, options, cancellationToken);
}
#endregion
#region ListRules
internal virtual ListRulesResponse ListRules()
{
return ListRules(new ListRulesRequest());
}
internal virtual ListRulesResponse ListRules(ListRulesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRulesResponseUnmarshaller.Instance;
return Invoke<ListRulesResponse>(request, options);
}
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
public virtual Task<ListRulesResponse> ListRulesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return ListRulesAsync(new ListRulesRequest(), cancellationToken);
}
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRules service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
public virtual Task<ListRulesResponse> ListRulesAsync(ListRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRulesResponseUnmarshaller.Instance;
return InvokeAsync<ListRulesResponse>(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke<ListTagsForResourceResponse>(request, options);
}
/// <summary>
/// Displays the tags associated with an EventBridge resource. In EventBridge, rules and
/// event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken);
}
#endregion
#region ListTargetsByRule
internal virtual ListTargetsByRuleResponse ListTargetsByRule(ListTargetsByRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTargetsByRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTargetsByRuleResponseUnmarshaller.Instance;
return Invoke<ListTargetsByRuleResponse>(request, options);
}
/// <summary>
/// Lists the targets assigned to the specified rule.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTargetsByRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTargetsByRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule">REST API Reference for ListTargetsByRule Operation</seealso>
public virtual Task<ListTargetsByRuleResponse> ListTargetsByRuleAsync(ListTargetsByRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTargetsByRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTargetsByRuleResponseUnmarshaller.Instance;
return InvokeAsync<ListTargetsByRuleResponse>(request, options, cancellationToken);
}
#endregion
#region PutEvents
internal virtual PutEventsResponse PutEvents(PutEventsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutEventsResponseUnmarshaller.Instance;
return Invoke<PutEventsResponse>(request, options);
}
/// <summary>
/// Sends custom events to Amazon EventBridge so that they can be matched to rules.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutEvents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents">REST API Reference for PutEvents Operation</seealso>
public virtual Task<PutEventsResponse> PutEventsAsync(PutEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutEventsResponseUnmarshaller.Instance;
return InvokeAsync<PutEventsResponse>(request, options, cancellationToken);
}
#endregion
#region PutPartnerEvents
internal virtual PutPartnerEventsResponse PutPartnerEvents(PutPartnerEventsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutPartnerEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutPartnerEventsResponseUnmarshaller.Instance;
return Invoke<PutPartnerEventsResponse>(request, options);
}
/// <summary>
/// This is used by SaaS partners to write events to a customer's partner event bus. Amazon
/// Web Services customers do not use this operation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPartnerEvents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutPartnerEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEvents">REST API Reference for PutPartnerEvents Operation</seealso>
public virtual Task<PutPartnerEventsResponse> PutPartnerEventsAsync(PutPartnerEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutPartnerEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutPartnerEventsResponseUnmarshaller.Instance;
return InvokeAsync<PutPartnerEventsResponse>(request, options, cancellationToken);
}
#endregion
#region PutPermission
internal virtual PutPermissionResponse PutPermission(PutPermissionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutPermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutPermissionResponseUnmarshaller.Instance;
return Invoke<PutPermissionResponse>(request, options);
}
/// <summary>
/// Running <code>PutPermission</code> permits the specified Amazon Web Services account
/// or Amazon Web Services organization to put events to the specified <i>event bus</i>.
/// Amazon EventBridge (CloudWatch Events) rules in your account are triggered by these
/// events arriving to an event bus in your account.
///
///
/// <para>
/// For another account to send events to your account, that external account must have
/// an EventBridge rule with your account's event bus as a target.
/// </para>
///
/// <para>
/// To enable multiple Amazon Web Services accounts to put events to your event bus, run
/// <code>PutPermission</code> once for each of these accounts. Or, if all the accounts
/// are members of the same Amazon Web Services organization, you can run <code>PutPermission</code>
/// once specifying <code>Principal</code> as "*" and specifying the Amazon Web Services
/// organization ID in <code>Condition</code>, to grant permissions to all accounts in
/// that organization.
/// </para>
///
/// <para>
/// If you grant permissions using an organization, then accounts in that organization
/// must specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code>
/// to add your account's event bus as a target. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// The permission policy on the event bus cannot exceed 10 KB in size.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPermission service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutPermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.PolicyLengthExceededException">
/// The event bus policy is too long. For more information, see the limits.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission">REST API Reference for PutPermission Operation</seealso>
public virtual Task<PutPermissionResponse> PutPermissionAsync(PutPermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutPermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutPermissionResponseUnmarshaller.Instance;
return InvokeAsync<PutPermissionResponse>(request, options, cancellationToken);
}
#endregion
#region PutRule
internal virtual PutRuleResponse PutRule(PutRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutRuleResponseUnmarshaller.Instance;
return Invoke<PutRuleResponse>(request, options);
}
/// <summary>
/// Creates or updates the specified rule. Rules are enabled by default, or based on value
/// of the state. You can disable a rule using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DisableRule.html">DisableRule</a>.
///
///
/// <para>
/// A single rule watches for events from a single event bus. Events generated by Amazon
/// Web Services services go to your account's default event bus. Events generated by
/// SaaS partner services or applications go to the matching partner event bus. If you
/// have custom applications or services, you can specify whether their events go to your
/// default event bus or a custom event bus that you have created. For more information,
/// see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
///
/// <para>
/// If you are updating an existing rule, the rule is replaced with what you specify in
/// this <code>PutRule</code> command. If you omit arguments in <code>PutRule</code>,
/// the old values for those arguments are not kept. Instead, they are replaced with null
/// values.
/// </para>
///
/// <para>
/// When you create or update a rule, incoming events might not immediately start matching
/// to new or updated rules. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns
/// are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger
/// based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression,
/// in which case the rule triggers on matching events as well as on a schedule.
/// </para>
///
/// <para>
/// When you initially create a rule, you can optionally assign one or more tags to the
/// rule. Tags can help you organize and categorize your resources. You can also use them
/// to scope user permissions, by granting a user permission to access or change only
/// rules with certain tag values. To use the <code>PutRule</code> operation and assign
/// tags, you must have both the <code>events:PutRule</code> and <code>events:TagResource</code>
/// permissions.
/// </para>
///
/// <para>
/// If you are updating an existing rule, any tags you specify in the <code>PutRule</code>
/// operation are ignored. To update the tags of an existing rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_TagResource.html">TagResource</a>
/// and <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UntagResource.html">UntagResource</a>.
/// </para>
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
///
/// <para>
/// In EventBridge, it is possible to create rules that lead to infinite loops, where
/// a rule is fired repeatedly. For example, a rule might detect that ACLs have changed
/// on an S3 bucket, and trigger software to change them to the desired state. If the
/// rule is not written carefully, the subsequent change to the ACLs fires the rule again,
/// creating an infinite loop.
/// </para>
///
/// <para>
/// To prevent this, write the rules so that the triggered actions do not re-fire the
/// same rule. For example, your rule could fire only if ACLs are found to be in a bad
/// state, instead of after any change.
/// </para>
///
/// <para>
/// An infinite loop can quickly cause higher than expected charges. We recommend that
/// you use budgeting, which alerts you when charges exceed your specified limit. For
/// more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html">Managing
/// Your Costs with Budgets</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule">REST API Reference for PutRule Operation</seealso>
public virtual Task<PutRuleResponse> PutRuleAsync(PutRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutRuleResponseUnmarshaller.Instance;
return InvokeAsync<PutRuleResponse>(request, options, cancellationToken);
}
#endregion
#region PutTargets
internal virtual PutTargetsResponse PutTargets(PutTargetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutTargetsResponseUnmarshaller.Instance;
return Invoke<PutTargetsResponse>(request, options);
}
/// <summary>
/// Adds the specified targets to the specified rule, or updates the targets if they are
/// already associated with the rule.
///
///
/// <para>
/// Targets are the resources that are invoked when a rule is triggered.
/// </para>
///
/// <para>
/// You can configure the following as targets for Events:
/// </para>
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html">API
/// destination</a>
/// </para>
/// </li> <li>
/// <para>
/// Amazon API Gateway REST API endpoints
/// </para>
/// </li> <li>
/// <para>
/// API Gateway
/// </para>
/// </li> <li>
/// <para>
/// Batch job queue
/// </para>
/// </li> <li>
/// <para>
/// CloudWatch Logs group
/// </para>
/// </li> <li>
/// <para>
/// CodeBuild project
/// </para>
/// </li> <li>
/// <para>
/// CodePipeline
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>CreateSnapshot</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>RebootInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>StopInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>TerminateInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon ECS tasks
/// </para>
/// </li> <li>
/// <para>
/// Event bus in a different Amazon Web Services account or Region.
/// </para>
///
/// <para>
/// You can use an event bus in the US East (N. Virginia) us-east-1, US West (Oregon)
/// us-west-2, or Europe (Ireland) eu-west-1 Regions as a target for a rule.
/// </para>
/// </li> <li>
/// <para>
/// Firehose delivery stream (Kinesis Data Firehose)
/// </para>
/// </li> <li>
/// <para>
/// Inspector assessment template (Amazon Inspector)
/// </para>
/// </li> <li>
/// <para>
/// Kinesis stream (Kinesis Data Stream)
/// </para>
/// </li> <li>
/// <para>
/// Lambda function
/// </para>
/// </li> <li>
/// <para>
/// Redshift clusters (Data API statement execution)
/// </para>
/// </li> <li>
/// <para>
/// Amazon SNS topic
/// </para>
/// </li> <li>
/// <para>
/// Amazon SQS queues (includes FIFO queues
/// </para>
/// </li> <li>
/// <para>
/// SSM Automation
/// </para>
/// </li> <li>
/// <para>
/// SSM OpsItem
/// </para>
/// </li> <li>
/// <para>
/// SSM Run Command
/// </para>
/// </li> <li>
/// <para>
/// Step Functions state machines
/// </para>
/// </li> </ul>
/// <para>
/// Creating rules with built-in targets is supported only in the Management Console.
/// The built-in targets are <code>EC2 CreateSnapshot API call</code>, <code>EC2 RebootInstances
/// API call</code>, <code>EC2 StopInstances API call</code>, and <code>EC2 TerminateInstances
/// API call</code>.
/// </para>
///
/// <para>
/// For some target types, <code>PutTargets</code> provides target-specific parameters.
/// If the target is a Kinesis data stream, you can optionally specify which shard the
/// event goes to by using the <code>KinesisParameters</code> argument. To invoke a command
/// on multiple EC2 instances with one rule, you can use the <code>RunCommandParameters</code>
/// field.
/// </para>
///
/// <para>
/// To be able to make API calls against the resources that you own, Amazon EventBridge
/// needs the appropriate permissions. For Lambda and Amazon SNS resources, EventBridge
/// relies on resource-based policies. For EC2 instances, Kinesis Data Streams, Step Functions
/// state machines and API Gateway REST APIs, EventBridge relies on IAM roles that you
/// specify in the <code>RoleARN</code> argument in <code>PutTargets</code>. For more
/// information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html">Authentication
/// and Access Control</a> in the <i>Amazon EventBridge User Guide</i>.
/// </para>
///
/// <para>
/// If another Amazon Web Services account is in the same region and has granted you permission
/// (using <code>PutPermission</code>), you can send events to that account. Set that
/// account's event bus as a target of the rules in your account. To send the matched
/// events to the other account, specify that account's event bus as the <code>Arn</code>
/// value when you run <code>PutTargets</code>. If your account sends events to another
/// account, your account is charged for each sent event. Each event sent to another account
/// is charged as a custom event. The account receiving the event is not charged. For
/// more information, see <a href="http://aws.amazon.com/eventbridge/pricing/">Amazon
/// EventBridge Pricing</a>.
/// </para>
/// <note>
/// <para>
/// <code>Input</code>, <code>InputPath</code>, and <code>InputTransformer</code> are
/// not available with <code>PutTarget</code> if the target is an event bus of a different
/// Amazon Web Services account.
/// </para>
/// </note>
/// <para>
/// If you are setting the event bus of another account as the target, and that account
/// granted permission to your account through an organization instead of directly by
/// the account ID, then you must specify a <code>RoleArn</code> with proper permissions
/// in the <code>Target</code> structure. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// For more information about enabling cross-account events, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// <b>Input</b>, <b>InputPath</b>, and <b>InputTransformer</b> are mutually exclusive
/// and optional parameters of a target. When a rule is triggered due to a matched event:
/// </para>
/// <ul> <li>
/// <para>
/// If none of the following arguments are specified for a target, then the entire event
/// is passed to the target in JSON format (unless the target is Amazon EC2 Run Command
/// or Amazon ECS task, in which case nothing from the event is passed to the target).
/// </para>
/// </li> <li>
/// <para>
/// If <b>Input</b> is specified in the form of valid JSON, then the matched event is
/// overridden with this constant.
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputPath</b> is specified in the form of JSONPath (for example, <code>$.detail</code>),
/// then only the part of the event specified in the path is passed to the target (for
/// example, only the detail part of the event is passed).
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputTransformer</b> is specified, then one or more specified JSONPaths are
/// extracted from the event and used as values in a template that you specify as the
/// input to the target.
/// </para>
/// </li> </ul>
/// <para>
/// When you specify <code>InputPath</code> or <code>InputTransformer</code>, you must
/// use JSON dot notation, not bracket notation.
/// </para>
///
/// <para>
/// When you add targets to a rule and the associated rule triggers soon after, new or
/// updated targets might not be immediately invoked. Allow a short period of time for
/// changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutTargets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets">REST API Reference for PutTargets Operation</seealso>
public virtual Task<PutTargetsResponse> PutTargetsAsync(PutTargetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutTargetsResponseUnmarshaller.Instance;
return InvokeAsync<PutTargetsResponse>(request, options, cancellationToken);
}
#endregion
#region RemovePermission
internal virtual RemovePermissionResponse RemovePermission(RemovePermissionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RemovePermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemovePermissionResponseUnmarshaller.Instance;
return Invoke<RemovePermissionResponse>(request, options);
}
/// <summary>
/// Revokes the permission of another Amazon Web Services account to be able to put events
/// to the specified event bus. Specify the account to revoke by the <code>StatementId</code>
/// value that you associated with the account when you granted it permission with <code>PutPermission</code>.
/// You can find the <code>StatementId</code> by using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventBus.html">DescribeEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemovePermission service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RemovePermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission">REST API Reference for RemovePermission Operation</seealso>
public virtual Task<RemovePermissionResponse> RemovePermissionAsync(RemovePermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RemovePermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemovePermissionResponseUnmarshaller.Instance;
return InvokeAsync<RemovePermissionResponse>(request, options, cancellationToken);
}
#endregion
#region RemoveTargets
internal virtual RemoveTargetsResponse RemoveTargets(RemoveTargetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveTargetsResponseUnmarshaller.Instance;
return Invoke<RemoveTargetsResponse>(request, options);
}
/// <summary>
/// Removes the specified targets from the specified rule. When the rule is triggered,
/// those targets are no longer be invoked.
///
///
/// <para>
/// When you remove a target, when the associated rule triggers, removed targets might
/// continue to be invoked. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemoveTargets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RemoveTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets">REST API Reference for RemoveTargets Operation</seealso>
public virtual Task<RemoveTargetsResponse> RemoveTargetsAsync(RemoveTargetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveTargetsResponseUnmarshaller.Instance;
return InvokeAsync<RemoveTargetsResponse>(request, options, cancellationToken);
}
#endregion
#region StartReplay
internal virtual StartReplayResponse StartReplay(StartReplayRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartReplayResponseUnmarshaller.Instance;
return Invoke<StartReplayResponse>(request, options);
}
/// <summary>
/// Starts the specified replay. Events are not necessarily replayed in the exact same
/// order that they were added to the archive. A replay processes events to replay based
/// on the time in the event, and replays them using 1 minute intervals. If you specify
/// an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers a 20 minute
/// time range, the events are replayed from the first minute of that 20 minute range
/// first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartReplay service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplay">REST API Reference for StartReplay Operation</seealso>
public virtual Task<StartReplayResponse> StartReplayAsync(StartReplayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartReplayRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartReplayResponseUnmarshaller.Instance;
return InvokeAsync<StartReplayResponse>(request, options, cancellationToken);
}
#endregion
#region TagResource
internal virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke<TagResourceResponse>(request, options);
}
/// <summary>
/// Assigns one or more tags (key-value pairs) to the specified EventBridge resource.
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values. In EventBridge, rules and event buses can be tagged.
///
///
/// <para>
/// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly
/// as strings of characters.
/// </para>
///
/// <para>
/// You can use the <code>TagResource</code> action with a resource that already has tags.
/// If you specify a new tag key, this tag is appended to the list of tags associated
/// with the resource. If you specify a tag key that is already associated with the resource,
/// the new tag value that you specify replaces the previous value for that tag.
/// </para>
///
/// <para>
/// You can associate as many as 50 tags with a resource.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync<TagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region TestEventPattern
internal virtual TestEventPatternResponse TestEventPattern(TestEventPatternRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TestEventPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = TestEventPatternResponseUnmarshaller.Instance;
return Invoke<TestEventPatternResponse>(request, options);
}
/// <summary>
/// Tests whether the specified event pattern matches the provided event.
///
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TestEventPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TestEventPattern service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern">REST API Reference for TestEventPattern Operation</seealso>
public virtual Task<TestEventPatternResponse> TestEventPatternAsync(TestEventPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TestEventPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = TestEventPatternResponseUnmarshaller.Instance;
return InvokeAsync<TestEventPatternResponse>(request, options, cancellationToken);
}
#endregion
#region UntagResource
internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke<UntagResourceResponse>(request, options);
}
/// <summary>
/// Removes one or more tags from the specified EventBridge resource. In Amazon EventBridge
/// (CloudWatch Events), rules and event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateApiDestination
internal virtual UpdateApiDestinationResponse UpdateApiDestination(UpdateApiDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApiDestinationResponseUnmarshaller.Instance;
return Invoke<UpdateApiDestinationResponse>(request, options);
}
/// <summary>
/// Updates an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateApiDestination">REST API Reference for UpdateApiDestination Operation</seealso>
public virtual Task<UpdateApiDestinationResponse> UpdateApiDestinationAsync(UpdateApiDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApiDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApiDestinationResponseUnmarshaller.Instance;
return InvokeAsync<UpdateApiDestinationResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateArchive
internal virtual UpdateArchiveResponse UpdateArchive(UpdateArchiveRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateArchiveResponseUnmarshaller.Instance;
return Invoke<UpdateArchiveResponse>(request, options);
}
/// <summary>
/// Updates the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchive">REST API Reference for UpdateArchive Operation</seealso>
public virtual Task<UpdateArchiveResponse> UpdateArchiveAsync(UpdateArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateArchiveRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateArchiveResponseUnmarshaller.Instance;
return InvokeAsync<UpdateArchiveResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateConnection
internal virtual UpdateConnectionResponse UpdateConnection(UpdateConnectionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateConnectionResponseUnmarshaller.Instance;
return Invoke<UpdateConnectionResponse>(request, options);
}
/// <summary>
/// Updates settings for a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateConnection">REST API Reference for UpdateConnection Operation</seealso>
public virtual Task<UpdateConnectionResponse> UpdateConnectionAsync(UpdateConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateConnectionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateConnectionResponseUnmarshaller.Instance;
return InvokeAsync<UpdateConnectionResponse>(request, options, cancellationToken);
}
#endregion
}
} | 3,107 |
aws-sdk-net | aws | C# | /*
* 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 events-2015-10-07.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.CloudWatchEvents.Model;
namespace Amazon.CloudWatchEvents
{
/// <summary>
/// Interface for accessing CloudWatchEvents
///
/// Amazon EventBridge helps you to respond to state changes in your Amazon Web Services
/// resources. When your resources change state, they automatically send events to an
/// event stream. You can create rules that match selected events in the stream and route
/// them to targets to take action. You can also use rules to take action on a predetermined
/// schedule. For example, you can configure rules to:
///
/// <ul> <li>
/// <para>
/// Automatically invoke an Lambda function to update DNS entries when an event notifies
/// you that Amazon EC2 instance enters the running state.
/// </para>
/// </li> <li>
/// <para>
/// Direct specific API records from CloudTrail to an Amazon Kinesis data stream for detailed
/// analysis of potential security or availability risks.
/// </para>
/// </li> <li>
/// <para>
/// Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume.
/// </para>
/// </li> </ul>
/// <para>
/// For more information about the features of Amazon EventBridge, see the <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide">Amazon
/// EventBridge User Guide</a>.
/// </para>
/// </summary>
public partial interface IAmazonCloudWatchEvents : IAmazonService, IDisposable
{
#region ActivateEventSource
/// <summary>
/// Activates a partner event source that has been deactivated. Once activated, your matching
/// event bus will start receiving events from the event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ActivateEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ActivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ActivateEventSource">REST API Reference for ActivateEventSource Operation</seealso>
Task<ActivateEventSourceResponse> ActivateEventSourceAsync(ActivateEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CancelReplay
/// <summary>
/// Cancels the specified replay.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CancelReplay service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CancelReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.IllegalStatusException">
/// An error occurred because a replay can be canceled only when the state is Running
/// or Starting.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplay">REST API Reference for CancelReplay Operation</seealso>
Task<CancelReplayResponse> CancelReplayAsync(CancelReplayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateApiDestination
/// <summary>
/// Creates an API destination, which is an HTTP invocation endpoint configured as a target
/// for events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateApiDestination">REST API Reference for CreateApiDestination Operation</seealso>
Task<CreateApiDestinationResponse> CreateApiDestinationAsync(CreateApiDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateArchive
/// <summary>
/// Creates an archive of events with the specified settings. When you create an archive,
/// incoming events might not immediately start being sent to the archive. Allow a short
/// period of time for changes to take effect. If you do not specify a pattern to filter
/// events sent to the archive, all events are sent to the archive except replayed events.
/// Replayed events are not sent to an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchive">REST API Reference for CreateArchive Operation</seealso>
Task<CreateArchiveResponse> CreateArchiveAsync(CreateArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateConnection
/// <summary>
/// Creates a connection. A connection defines the authorization type and credentials
/// to use for authorization with an API destination HTTP endpoint.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateConnection">REST API Reference for CreateConnection Operation</seealso>
Task<CreateConnectionResponse> CreateConnectionAsync(CreateConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateEventBus
/// <summary>
/// Creates a new event bus within your account. This can be a custom event bus which
/// you can use to receive events from your custom applications and services, or it can
/// be a partner event bus which can be matched to a partner event source.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateEventBus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBus">REST API Reference for CreateEventBus Operation</seealso>
Task<CreateEventBusResponse> CreateEventBusAsync(CreateEventBusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreatePartnerEventSource
/// <summary>
/// Called by an SaaS partner to create a partner event source. This operation is not
/// used by Amazon Web Services customers.
///
///
/// <para>
/// Each partner event source can be used by one Amazon Web Services account to create
/// a matching partner event bus in that Amazon Web Services account. A SaaS partner must
/// create one partner event source for each Amazon Web Services account that wants to
/// receive those event types.
/// </para>
///
/// <para>
/// A partner event source creates events based on resources within the SaaS partner's
/// service or application.
/// </para>
///
/// <para>
/// An Amazon Web Services account that creates a partner event bus that matches the partner
/// event source can use that event bus to receive events from the partner, and then process
/// them using Amazon Web Services Events rules and targets.
/// </para>
///
/// <para>
/// Partner event source names follow this format:
/// </para>
///
/// <para>
/// <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i> </code>
/// </para>
///
/// <para>
/// <i>partner_name</i> is determined during partner registration and identifies the
/// partner to Amazon Web Services customers. <i>event_namespace</i> is determined by
/// the partner and is a way for the partner to categorize their events. <i>event_name</i>
/// is determined by the partner, and should uniquely identify an event-generating resource
/// within the partner system. The combination of <i>event_namespace</i> and <i>event_name</i>
/// should help Amazon Web Services customers decide whether to create an event bus to
/// receive these events.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreatePartnerEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreatePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSource">REST API Reference for CreatePartnerEventSource Operation</seealso>
Task<CreatePartnerEventSourceResponse> CreatePartnerEventSourceAsync(CreatePartnerEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeactivateEventSource
/// <summary>
/// You can use this operation to temporarily stop receiving events from the specified
/// partner event source. The matching event bus is not deleted.
///
///
/// <para>
/// When you deactivate a partner event source, the source goes into PENDING state. If
/// it remains in PENDING state for more than two weeks, it is deleted.
/// </para>
///
/// <para>
/// To activate a deactivated partner event source, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ActivateEventSource.html">ActivateEventSource</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeactivateEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeactivateEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidStateException">
/// The specified state is not a valid state for an event source.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeactivateEventSource">REST API Reference for DeactivateEventSource Operation</seealso>
Task<DeactivateEventSourceResponse> DeactivateEventSourceAsync(DeactivateEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeauthorizeConnection
/// <summary>
/// Removes all authorization parameters from the connection. This lets you remove the
/// secret from the connection so you can reuse it without having to create a new connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeauthorizeConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeauthorizeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeauthorizeConnection">REST API Reference for DeauthorizeConnection Operation</seealso>
Task<DeauthorizeConnectionResponse> DeauthorizeConnectionAsync(DeauthorizeConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteApiDestination
/// <summary>
/// Deletes the specified API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteApiDestination">REST API Reference for DeleteApiDestination Operation</seealso>
Task<DeleteApiDestinationResponse> DeleteApiDestinationAsync(DeleteApiDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteArchive
/// <summary>
/// Deletes the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchive">REST API Reference for DeleteArchive Operation</seealso>
Task<DeleteArchiveResponse> DeleteArchiveAsync(DeleteArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteConnection
/// <summary>
/// Deletes a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteConnection">REST API Reference for DeleteConnection Operation</seealso>
Task<DeleteConnectionResponse> DeleteConnectionAsync(DeleteConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteEventBus
/// <summary>
/// Deletes the specified custom event bus or partner event bus. All rules associated
/// with this event bus need to be deleted. You can't delete your account's default event
/// bus.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteEventBus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteEventBus">REST API Reference for DeleteEventBus Operation</seealso>
Task<DeleteEventBusResponse> DeleteEventBusAsync(DeleteEventBusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeletePartnerEventSource
/// <summary>
/// This operation is used by SaaS partners to delete a partner event source. This operation
/// is not used by Amazon Web Services customers.
///
///
/// <para>
/// When you delete an event source, the status of the corresponding partner event bus
/// in the Amazon Web Services customer account becomes DELETED.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeletePartnerEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeletePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeletePartnerEventSource">REST API Reference for DeletePartnerEventSource Operation</seealso>
Task<DeletePartnerEventSourceResponse> DeletePartnerEventSourceAsync(DeletePartnerEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteRule
/// <summary>
/// Deletes the specified rule.
///
///
/// <para>
/// Before you can delete the rule, you must remove all targets, using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemoveTargets.html">RemoveTargets</a>.
/// </para>
///
/// <para>
/// When you delete a rule, incoming events might continue to match to the deleted rule.
/// Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// If you call delete rule multiple times for the same rule, all calls will succeed.
/// When you call delete rule for a non-existent custom eventbus, <code>ResourceNotFoundException</code>
/// is returned.
/// </para>
///
/// <para>
/// Managed rules are rules created and managed by another Amazon Web Services service
/// on your behalf. These rules are created by those other Amazon Web Services services
/// to support functionality in those services. You can delete these rules using the <code>Force</code>
/// option, but you should do so only if you are sure the other service is not still using
/// that rule.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule">REST API Reference for DeleteRule Operation</seealso>
Task<DeleteRuleResponse> DeleteRuleAsync(DeleteRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeApiDestination
/// <summary>
/// Retrieves details about an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeApiDestination">REST API Reference for DescribeApiDestination Operation</seealso>
Task<DescribeApiDestinationResponse> DescribeApiDestinationAsync(DescribeApiDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeArchive
/// <summary>
/// Retrieves details about an archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchive">REST API Reference for DescribeArchive Operation</seealso>
Task<DescribeArchiveResponse> DescribeArchiveAsync(DescribeArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeConnection
/// <summary>
/// Retrieves details about a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeConnection">REST API Reference for DescribeConnection Operation</seealso>
Task<DescribeConnectionResponse> DescribeConnectionAsync(DescribeConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEventBus
/// <summary>
/// Displays details about an event bus in your account. This can include the external
/// Amazon Web Services accounts that are permitted to write events to your default event
/// bus, and the associated policy. For custom event buses and partner event buses, it
/// displays the name, ARN, policy, state, and creation time.
///
///
/// <para>
/// To enable your account to receive events from other accounts on its default event
/// bus, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// For more information about partner event buses, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventBus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeEventBus service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus">REST API Reference for DescribeEventBus Operation</seealso>
Task<DescribeEventBusResponse> DescribeEventBusAsync(DescribeEventBusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEventSource
/// <summary>
/// This operation lists details about a partner event source that is shared with your
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSource">REST API Reference for DescribeEventSource Operation</seealso>
Task<DescribeEventSourceResponse> DescribeEventSourceAsync(DescribeEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribePartnerEventSource
/// <summary>
/// An SaaS partner can use this operation to list details about a partner event source
/// that they have created. Amazon Web Services customers do not use this operation. Instead,
/// Amazon Web Services customers can use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventSource.html">DescribeEventSource</a>
/// to see details about a partner event source that is shared with them.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribePartnerEventSource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribePartnerEventSource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribePartnerEventSource">REST API Reference for DescribePartnerEventSource Operation</seealso>
Task<DescribePartnerEventSourceResponse> DescribePartnerEventSourceAsync(DescribePartnerEventSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeReplay
/// <summary>
/// Retrieves details about a replay. Use <code>DescribeReplay</code> to determine the
/// progress of a running replay. A replay processes events to replay based on the time
/// in the event, and replays them using 1 minute intervals. If you use <code>StartReplay</code>
/// and specify an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers
/// a 20 minute time range, the events are replayed from the first minute of that 20 minute
/// range first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeReplay service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplay">REST API Reference for DescribeReplay Operation</seealso>
Task<DescribeReplayResponse> DescribeReplayAsync(DescribeReplayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeRule
/// <summary>
/// Describes the specified rule.
///
///
/// <para>
/// DescribeRule does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule">REST API Reference for DescribeRule Operation</seealso>
Task<DescribeRuleResponse> DescribeRuleAsync(DescribeRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DisableRule
/// <summary>
/// Disables the specified rule. A disabled rule won't match any events, and won't self-trigger
/// if it has a schedule expression.
///
///
/// <para>
/// When you disable a rule, incoming events might continue to match to the disabled rule.
/// Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DisableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule">REST API Reference for DisableRule Operation</seealso>
Task<DisableRuleResponse> DisableRuleAsync(DisableRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region EnableRule
/// <summary>
/// Enables the specified rule. If the rule does not exist, the operation fails.
///
///
/// <para>
/// When you enable a rule, incoming events might not immediately start matching to a
/// newly enabled rule. Allow a short period of time for changes to take effect.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the EnableRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule">REST API Reference for EnableRule Operation</seealso>
Task<EnableRuleResponse> EnableRuleAsync(EnableRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListApiDestinations
/// <summary>
/// Retrieves a list of API destination in the account in the current Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApiDestinations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListApiDestinations service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListApiDestinations">REST API Reference for ListApiDestinations Operation</seealso>
Task<ListApiDestinationsResponse> ListApiDestinationsAsync(ListApiDestinationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListArchives
/// <summary>
/// Lists your archives. You can either list all the archives or you can provide a prefix
/// to match to the archive names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListArchives service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListArchives service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchives">REST API Reference for ListArchives Operation</seealso>
Task<ListArchivesResponse> ListArchivesAsync(ListArchivesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListConnections
/// <summary>
/// Retrieves a list of connections from the account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConnections service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListConnections service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListConnections">REST API Reference for ListConnections Operation</seealso>
Task<ListConnectionsResponse> ListConnectionsAsync(ListConnectionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListEventBuses
/// <summary>
/// Lists all the event buses in your account, including the default event bus, custom
/// event buses, and partner event buses.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventBuses service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListEventBuses service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventBuses">REST API Reference for ListEventBuses Operation</seealso>
Task<ListEventBusesResponse> ListEventBusesAsync(ListEventBusesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListEventSources
/// <summary>
/// You can use this to see all the partner event sources that have been shared with your
/// Amazon Web Services account. For more information about partner event sources, see
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListEventSources service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventSources">REST API Reference for ListEventSources Operation</seealso>
Task<ListEventSourcesResponse> ListEventSourcesAsync(ListEventSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListPartnerEventSourceAccounts
/// <summary>
/// An SaaS partner can use this operation to display the Amazon Web Services account
/// ID that a particular partner event source name is associated with. This operation
/// is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSourceAccounts service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListPartnerEventSourceAccounts service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSourceAccounts">REST API Reference for ListPartnerEventSourceAccounts Operation</seealso>
Task<ListPartnerEventSourceAccountsResponse> ListPartnerEventSourceAccountsAsync(ListPartnerEventSourceAccountsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListPartnerEventSources
/// <summary>
/// An SaaS partner can use this operation to list all the partner event source names
/// that they have created. This operation is not used by Amazon Web Services customers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPartnerEventSources service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListPartnerEventSources service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSources">REST API Reference for ListPartnerEventSources Operation</seealso>
Task<ListPartnerEventSourcesResponse> ListPartnerEventSourcesAsync(ListPartnerEventSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListReplays
/// <summary>
/// Lists your replays. You can either list all the replays or you can provide a prefix
/// to match to the replay names. Filter parameters are exclusive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListReplays service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListReplays service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplays">REST API Reference for ListReplays Operation</seealso>
Task<ListReplaysResponse> ListReplaysAsync(ListReplaysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListRuleNamesByTarget
/// <summary>
/// Lists the rules for the specified target. You can see which of the rules in Amazon
/// EventBridge can invoke a specific target in your account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRuleNamesByTarget service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRuleNamesByTarget service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget">REST API Reference for ListRuleNamesByTarget Operation</seealso>
Task<ListRuleNamesByTargetResponse> ListRuleNamesByTargetAsync(ListRuleNamesByTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListRules
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
Task<ListRulesResponse> ListRulesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists your Amazon EventBridge rules. You can either list all the rules or you can
/// provide a prefix to match to the rule names.
///
///
/// <para>
/// ListRules does not list the targets of a rule. To see the targets associated with
/// a rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRules service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRules service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules">REST API Reference for ListRules Operation</seealso>
Task<ListRulesResponse> ListRulesAsync(ListRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTagsForResource
/// <summary>
/// Displays the tags associated with an EventBridge resource. In EventBridge, rules and
/// event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTargetsByRule
/// <summary>
/// Lists the targets assigned to the specified rule.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTargetsByRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTargetsByRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule">REST API Reference for ListTargetsByRule Operation</seealso>
Task<ListTargetsByRuleResponse> ListTargetsByRuleAsync(ListTargetsByRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutEvents
/// <summary>
/// Sends custom events to Amazon EventBridge so that they can be matched to rules.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutEvents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents">REST API Reference for PutEvents Operation</seealso>
Task<PutEventsResponse> PutEventsAsync(PutEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutPartnerEvents
/// <summary>
/// This is used by SaaS partners to write events to a customer's partner event bus. Amazon
/// Web Services customers do not use this operation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPartnerEvents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutPartnerEvents service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEvents">REST API Reference for PutPartnerEvents Operation</seealso>
Task<PutPartnerEventsResponse> PutPartnerEventsAsync(PutPartnerEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutPermission
/// <summary>
/// Running <code>PutPermission</code> permits the specified Amazon Web Services account
/// or Amazon Web Services organization to put events to the specified <i>event bus</i>.
/// Amazon EventBridge (CloudWatch Events) rules in your account are triggered by these
/// events arriving to an event bus in your account.
///
///
/// <para>
/// For another account to send events to your account, that external account must have
/// an EventBridge rule with your account's event bus as a target.
/// </para>
///
/// <para>
/// To enable multiple Amazon Web Services accounts to put events to your event bus, run
/// <code>PutPermission</code> once for each of these accounts. Or, if all the accounts
/// are members of the same Amazon Web Services organization, you can run <code>PutPermission</code>
/// once specifying <code>Principal</code> as "*" and specifying the Amazon Web Services
/// organization ID in <code>Condition</code>, to grant permissions to all accounts in
/// that organization.
/// </para>
///
/// <para>
/// If you grant permissions using an organization, then accounts in that organization
/// must specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code>
/// to add your account's event bus as a target. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// The permission policy on the event bus cannot exceed 10 KB in size.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutPermission service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutPermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.PolicyLengthExceededException">
/// The event bus policy is too long. For more information, see the limits.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission">REST API Reference for PutPermission Operation</seealso>
Task<PutPermissionResponse> PutPermissionAsync(PutPermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutRule
/// <summary>
/// Creates or updates the specified rule. Rules are enabled by default, or based on value
/// of the state. You can disable a rule using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DisableRule.html">DisableRule</a>.
///
///
/// <para>
/// A single rule watches for events from a single event bus. Events generated by Amazon
/// Web Services services go to your account's default event bus. Events generated by
/// SaaS partner services or applications go to the matching partner event bus. If you
/// have custom applications or services, you can specify whether their events go to your
/// default event bus or a custom event bus that you have created. For more information,
/// see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.
/// </para>
///
/// <para>
/// If you are updating an existing rule, the rule is replaced with what you specify in
/// this <code>PutRule</code> command. If you omit arguments in <code>PutRule</code>,
/// the old values for those arguments are not kept. Instead, they are replaced with null
/// values.
/// </para>
///
/// <para>
/// When you create or update a rule, incoming events might not immediately start matching
/// to new or updated rules. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns
/// are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger
/// based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression,
/// in which case the rule triggers on matching events as well as on a schedule.
/// </para>
///
/// <para>
/// When you initially create a rule, you can optionally assign one or more tags to the
/// rule. Tags can help you organize and categorize your resources. You can also use them
/// to scope user permissions, by granting a user permission to access or change only
/// rules with certain tag values. To use the <code>PutRule</code> operation and assign
/// tags, you must have both the <code>events:PutRule</code> and <code>events:TagResource</code>
/// permissions.
/// </para>
///
/// <para>
/// If you are updating an existing rule, any tags you specify in the <code>PutRule</code>
/// operation are ignored. To update the tags of an existing rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_TagResource.html">TagResource</a>
/// and <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UntagResource.html">UntagResource</a>.
/// </para>
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
///
/// <para>
/// In EventBridge, it is possible to create rules that lead to infinite loops, where
/// a rule is fired repeatedly. For example, a rule might detect that ACLs have changed
/// on an S3 bucket, and trigger software to change them to the desired state. If the
/// rule is not written carefully, the subsequent change to the ACLs fires the rule again,
/// creating an infinite loop.
/// </para>
///
/// <para>
/// To prevent this, write the rules so that the triggered actions do not re-fire the
/// same rule. For example, your rule could fire only if ACLs are found to be in a bad
/// state, instead of after any change.
/// </para>
///
/// <para>
/// An infinite loop can quickly cause higher than expected charges. We recommend that
/// you use budgeting, which alerts you when charges exceed your specified limit. For
/// more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html">Managing
/// Your Costs with Budgets</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutRule service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule">REST API Reference for PutRule Operation</seealso>
Task<PutRuleResponse> PutRuleAsync(PutRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutTargets
/// <summary>
/// Adds the specified targets to the specified rule, or updates the targets if they are
/// already associated with the rule.
///
///
/// <para>
/// Targets are the resources that are invoked when a rule is triggered.
/// </para>
///
/// <para>
/// You can configure the following as targets for Events:
/// </para>
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html">API
/// destination</a>
/// </para>
/// </li> <li>
/// <para>
/// Amazon API Gateway REST API endpoints
/// </para>
/// </li> <li>
/// <para>
/// API Gateway
/// </para>
/// </li> <li>
/// <para>
/// Batch job queue
/// </para>
/// </li> <li>
/// <para>
/// CloudWatch Logs group
/// </para>
/// </li> <li>
/// <para>
/// CodeBuild project
/// </para>
/// </li> <li>
/// <para>
/// CodePipeline
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>CreateSnapshot</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>RebootInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>StopInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 <code>TerminateInstances</code> API call
/// </para>
/// </li> <li>
/// <para>
/// Amazon ECS tasks
/// </para>
/// </li> <li>
/// <para>
/// Event bus in a different Amazon Web Services account or Region.
/// </para>
///
/// <para>
/// You can use an event bus in the US East (N. Virginia) us-east-1, US West (Oregon)
/// us-west-2, or Europe (Ireland) eu-west-1 Regions as a target for a rule.
/// </para>
/// </li> <li>
/// <para>
/// Firehose delivery stream (Kinesis Data Firehose)
/// </para>
/// </li> <li>
/// <para>
/// Inspector assessment template (Amazon Inspector)
/// </para>
/// </li> <li>
/// <para>
/// Kinesis stream (Kinesis Data Stream)
/// </para>
/// </li> <li>
/// <para>
/// Lambda function
/// </para>
/// </li> <li>
/// <para>
/// Redshift clusters (Data API statement execution)
/// </para>
/// </li> <li>
/// <para>
/// Amazon SNS topic
/// </para>
/// </li> <li>
/// <para>
/// Amazon SQS queues (includes FIFO queues
/// </para>
/// </li> <li>
/// <para>
/// SSM Automation
/// </para>
/// </li> <li>
/// <para>
/// SSM OpsItem
/// </para>
/// </li> <li>
/// <para>
/// SSM Run Command
/// </para>
/// </li> <li>
/// <para>
/// Step Functions state machines
/// </para>
/// </li> </ul>
/// <para>
/// Creating rules with built-in targets is supported only in the Management Console.
/// The built-in targets are <code>EC2 CreateSnapshot API call</code>, <code>EC2 RebootInstances
/// API call</code>, <code>EC2 StopInstances API call</code>, and <code>EC2 TerminateInstances
/// API call</code>.
/// </para>
///
/// <para>
/// For some target types, <code>PutTargets</code> provides target-specific parameters.
/// If the target is a Kinesis data stream, you can optionally specify which shard the
/// event goes to by using the <code>KinesisParameters</code> argument. To invoke a command
/// on multiple EC2 instances with one rule, you can use the <code>RunCommandParameters</code>
/// field.
/// </para>
///
/// <para>
/// To be able to make API calls against the resources that you own, Amazon EventBridge
/// needs the appropriate permissions. For Lambda and Amazon SNS resources, EventBridge
/// relies on resource-based policies. For EC2 instances, Kinesis Data Streams, Step Functions
/// state machines and API Gateway REST APIs, EventBridge relies on IAM roles that you
/// specify in the <code>RoleARN</code> argument in <code>PutTargets</code>. For more
/// information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html">Authentication
/// and Access Control</a> in the <i>Amazon EventBridge User Guide</i>.
/// </para>
///
/// <para>
/// If another Amazon Web Services account is in the same region and has granted you permission
/// (using <code>PutPermission</code>), you can send events to that account. Set that
/// account's event bus as a target of the rules in your account. To send the matched
/// events to the other account, specify that account's event bus as the <code>Arn</code>
/// value when you run <code>PutTargets</code>. If your account sends events to another
/// account, your account is charged for each sent event. Each event sent to another account
/// is charged as a custom event. The account receiving the event is not charged. For
/// more information, see <a href="http://aws.amazon.com/eventbridge/pricing/">Amazon
/// EventBridge Pricing</a>.
/// </para>
/// <note>
/// <para>
/// <code>Input</code>, <code>InputPath</code>, and <code>InputTransformer</code> are
/// not available with <code>PutTarget</code> if the target is an event bus of a different
/// Amazon Web Services account.
/// </para>
/// </note>
/// <para>
/// If you are setting the event bus of another account as the target, and that account
/// granted permission to your account through an organization instead of directly by
/// the account ID, then you must specify a <code>RoleArn</code> with proper permissions
/// in the <code>Target</code> structure. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
/// and Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge
/// User Guide</i>.
/// </para>
///
/// <para>
/// For more information about enabling cross-account events, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.
/// </para>
///
/// <para>
/// <b>Input</b>, <b>InputPath</b>, and <b>InputTransformer</b> are mutually exclusive
/// and optional parameters of a target. When a rule is triggered due to a matched event:
/// </para>
/// <ul> <li>
/// <para>
/// If none of the following arguments are specified for a target, then the entire event
/// is passed to the target in JSON format (unless the target is Amazon EC2 Run Command
/// or Amazon ECS task, in which case nothing from the event is passed to the target).
/// </para>
/// </li> <li>
/// <para>
/// If <b>Input</b> is specified in the form of valid JSON, then the matched event is
/// overridden with this constant.
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputPath</b> is specified in the form of JSONPath (for example, <code>$.detail</code>),
/// then only the part of the event specified in the path is passed to the target (for
/// example, only the detail part of the event is passed).
/// </para>
/// </li> <li>
/// <para>
/// If <b>InputTransformer</b> is specified, then one or more specified JSONPaths are
/// extracted from the event and used as values in a template that you specify as the
/// input to the target.
/// </para>
/// </li> </ul>
/// <para>
/// When you specify <code>InputPath</code> or <code>InputTransformer</code>, you must
/// use JSON dot notation, not bracket notation.
/// </para>
///
/// <para>
/// When you add targets to a rule and the associated rule triggers soon after, new or
/// updated targets might not be immediately invoked. Allow a short period of time for
/// changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutTargets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets">REST API Reference for PutTargets Operation</seealso>
Task<PutTargetsResponse> PutTargetsAsync(PutTargetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region RemovePermission
/// <summary>
/// Revokes the permission of another Amazon Web Services account to be able to put events
/// to the specified event bus. Specify the account to revoke by the <code>StatementId</code>
/// value that you associated with the account when you granted it permission with <code>PutPermission</code>.
/// You can find the <code>StatementId</code> by using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventBus.html">DescribeEventBus</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemovePermission service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RemovePermission service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.OperationDisabledException">
/// The operation you are attempting is not available in this region.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission">REST API Reference for RemovePermission Operation</seealso>
Task<RemovePermissionResponse> RemovePermissionAsync(RemovePermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region RemoveTargets
/// <summary>
/// Removes the specified targets from the specified rule. When the rule is triggered,
/// those targets are no longer be invoked.
///
///
/// <para>
/// When you remove a target, when the associated rule triggers, removed targets might
/// continue to be invoked. Allow a short period of time for changes to take effect.
/// </para>
///
/// <para>
/// This action can partially fail if too many requests are made at the same time. If
/// that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry
/// in <code>FailedEntries</code> provides the ID of the failed target and the error code.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RemoveTargets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RemoveTargets service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets">REST API Reference for RemoveTargets Operation</seealso>
Task<RemoveTargetsResponse> RemoveTargetsAsync(RemoveTargetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartReplay
/// <summary>
/// Starts the specified replay. Events are not necessarily replayed in the exact same
/// order that they were added to the archive. A replay processes events to replay based
/// on the time in the event, and replays them using 1 minute intervals. If you specify
/// an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers a 20 minute
/// time range, the events are replayed from the first minute of that 20 minute range
/// first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code>
/// to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
/// indicates the time within the specified time range associated with the last event
/// replayed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartReplay service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartReplay service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceAlreadyExistsException">
/// The resource you are trying to create already exists.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplay">REST API Reference for StartReplay Operation</seealso>
Task<StartReplayResponse> StartReplayAsync(StartReplayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region TagResource
/// <summary>
/// Assigns one or more tags (key-value pairs) to the specified EventBridge resource.
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values. In EventBridge, rules and event buses can be tagged.
///
///
/// <para>
/// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly
/// as strings of characters.
/// </para>
///
/// <para>
/// You can use the <code>TagResource</code> action with a resource that already has tags.
/// If you specify a new tag key, this tag is appended to the list of tags associated
/// with the resource. If you specify a tag key that is already associated with the resource,
/// the new tag value that you specify replaces the previous value for that tag.
/// </para>
///
/// <para>
/// You can associate as many as 50 tags with a resource.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResource">REST API Reference for TagResource Operation</seealso>
Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region TestEventPattern
/// <summary>
/// Tests whether the specified event pattern matches the provided event.
///
///
/// <para>
/// Most services in Amazon Web Services treat : or / as the same character in Amazon
/// Resource Names (ARNs). However, EventBridge uses an exact match in event patterns
/// and rules. Be sure to use the correct ARN characters when creating event patterns
/// so that they match the ARN syntax in the event you want to match.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TestEventPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TestEventPattern service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern">REST API Reference for TestEventPattern Operation</seealso>
Task<TestEventPatternResponse> TestEventPatternAsync(TestEventPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UntagResource
/// <summary>
/// Removes one or more tags from the specified EventBridge resource. In Amazon EventBridge
/// (CloudWatch Events), rules and event buses can be tagged.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ManagedRuleException">
/// This rule was created by an Amazon Web Services service on behalf of your account.
/// It is managed by that service. If you see this error in response to <code>DeleteRule</code>
/// or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those
/// calls to delete the rule or remove targets from the rule. You cannot modify these
/// managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
/// <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UntagResource">REST API Reference for UntagResource Operation</seealso>
Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateApiDestination
/// <summary>
/// Updates an API destination.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApiDestination service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateApiDestination service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateApiDestination">REST API Reference for UpdateApiDestination Operation</seealso>
Task<UpdateApiDestinationResponse> UpdateApiDestinationAsync(UpdateApiDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateArchive
/// <summary>
/// Updates the specified archive.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateArchive service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateArchive service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InvalidEventPatternException">
/// The event pattern is not valid.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchive">REST API Reference for UpdateArchive Operation</seealso>
Task<UpdateArchiveResponse> UpdateArchiveAsync(UpdateArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateConnection
/// <summary>
/// Updates settings for a connection.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateConnection service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateConnection service method, as returned by CloudWatchEvents.</returns>
/// <exception cref="Amazon.CloudWatchEvents.Model.ConcurrentModificationException">
/// There is concurrent modification on a rule, target, archive, or replay.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.InternalException">
/// This exception occurs due to unexpected causes.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.LimitExceededException">
/// The request failed because it attempted to create resource beyond the allowed service
/// quota.
/// </exception>
/// <exception cref="Amazon.CloudWatchEvents.Model.ResourceNotFoundException">
/// An entity that you specified does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateConnection">REST API Reference for UpdateConnection Operation</seealso>
Task<UpdateConnectionResponse> UpdateConnectionAsync(UpdateConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 2,071 |
aws-sdk-net | aws | C# | using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AWSSDK.CloudWatchEvents")]
#if BCL35
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon CloudWatch Events. Amazon CloudWatch Events helps you to respond to state changes in your AWS resources. When your resources change state they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a pre-determined schedule.")]
#elif BCL45
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Amazon CloudWatch Events. Amazon CloudWatch Events helps you to respond to state changes in your AWS resources. When your resources change state they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a pre-determined schedule.")]
#elif NETSTANDARD20
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Amazon CloudWatch Events. Amazon CloudWatch Events helps you to respond to state changes in your AWS resources. When your resources change state they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a pre-determined schedule.")]
#elif NETCOREAPP3_1
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Amazon CloudWatch Events. Amazon CloudWatch Events helps you to respond to state changes in your AWS resources. When your resources change state they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a pre-determined schedule.")]
#else
#error Unknown platform constant - unable to set correct AssemblyDescription
#endif
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")]
[assembly: AssemblyCompany("Amazon.com, Inc")]
[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.3")]
[assembly: AssemblyFileVersion("3.7.100.147")]
[assembly: System.CLSCompliant(true)]
#if BCL
[assembly: System.Security.AllowPartiallyTrustedCallers]
#endif | 51 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.CloudWatchEvidently.Internal;
namespace Amazon.CloudWatchEvidently
{
/// <summary>
/// Configuration for accessing Amazon CloudWatchEvidently service
/// </summary>
[AWSSignerType("v4")]
public partial class AmazonCloudWatchEvidentlyConfig : ClientConfig
{
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("3.7.102.60");
private string _userAgent = UserAgentString;
/// <summary>
/// Default constructor
/// </summary>
public AmazonCloudWatchEvidentlyConfig()
: base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonCloudWatchEvidentlyDefaultConfiguration.GetAllConfigurations()))
{
this.AuthenticationServiceName = "evidently";
this.EndpointProvider = new AmazonCloudWatchEvidentlyEndpointProvider();
}
/// <summary>
/// The constant used to lookup in the region hash the endpoint.
/// </summary>
public override string RegionEndpointServiceName
{
get
{
return "evidently";
}
}
/// <summary>
/// Gets the ServiceVersion property.
/// </summary>
public override string ServiceVersion
{
get
{
return "2021-02-01";
}
}
/// <summary>
/// Gets the value of UserAgent property.
/// </summary>
public override string UserAgent
{
get
{
return _userAgent;
}
}
}
} | 83 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Amazon.Runtime;
namespace Amazon.CloudWatchEvidently
{
/// <summary>
/// Configuration for accessing Amazon CloudWatchEvidently service
/// </summary>
public static class AmazonCloudWatchEvidentlyDefaultConfiguration
{
/// <summary>
/// Collection of all <see cref="DefaultConfiguration"/>s supported by
/// CloudWatchEvidently
/// </summary>
public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations()
{
return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration>
{
Standard,
InRegion,
CrossRegion,
Mobile,
Auto,
Legacy
});
}
/// <summary>
/// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Standard,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.InRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.CrossRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Mobile,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:30
ConnectTimeout = TimeSpan.FromMilliseconds(30000L),
// 0:00:30
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p>
/// </summary>
public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Auto,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p>
/// </summary>
public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Legacy,
RetryMode = RequestRetryMode.Legacy,
StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy,
ConnectTimeout = null,
TlsNegotiationTimeout = null,
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
}
} | 146 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
namespace Amazon.CloudWatchEvidently.Endpoints
{
/// <summary>
/// Contains parameters used for resolving CloudWatchEvidently endpoints
/// Parameters can be sourced from client config and service operations
/// Used by internal CloudWatchEvidentlyEndpointProvider and CloudWatchEvidentlyEndpointResolver
/// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider
/// </summary>
public class CloudWatchEvidentlyEndpointParameters : EndpointParameters
{
/// <summary>
/// CloudWatchEvidentlyEndpointParameters constructor
/// </summary>
public CloudWatchEvidentlyEndpointParameters()
{
UseDualStack = false;
UseFIPS = false;
}
/// <summary>
/// Region parameter
/// </summary>
public string Region
{
get { return (string)this["Region"]; }
set { this["Region"] = value; }
}
/// <summary>
/// UseDualStack parameter
/// </summary>
public bool? UseDualStack
{
get { return (bool?)this["UseDualStack"]; }
set { this["UseDualStack"] = value; }
}
/// <summary>
/// UseFIPS parameter
/// </summary>
public bool? UseFIPS
{
get { return (bool?)this["UseFIPS"]; }
set { this["UseFIPS"] = value; }
}
/// <summary>
/// Endpoint parameter
/// </summary>
public string Endpoint
{
get { return (string)this["Endpoint"]; }
set { this["Endpoint"] = value; }
}
}
} | 78 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Amazon.Runtime;
namespace Amazon.CloudWatchEvidently
{
///<summary>
/// Common exception for the CloudWatchEvidently service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AmazonCloudWatchEvidentlyException : AmazonServiceException
{
/// <summary>
/// Construct instance of AmazonCloudWatchEvidentlyException
/// </summary>
/// <param name="message"></param>
public AmazonCloudWatchEvidentlyException(string message)
: base(message)
{
}
/// <summary>
/// Construct instance of AmazonCloudWatchEvidentlyException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AmazonCloudWatchEvidentlyException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonCloudWatchEvidentlyException
/// </summary>
/// <param name="innerException"></param>
public AmazonCloudWatchEvidentlyException(Exception innerException)
: base(innerException.Message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonCloudWatchEvidentlyException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonCloudWatchEvidentlyException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode)
{
}
/// <summary>
/// Construct instance of AmazonCloudWatchEvidentlyException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonCloudWatchEvidentlyException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode)
{
}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the AmazonCloudWatchEvidentlyException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected AmazonCloudWatchEvidentlyException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
#endif
}
} | 105 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using Amazon.Runtime;
namespace Amazon.CloudWatchEvidently
{
/// <summary>
/// Constants used for properties of type ChangeDirectionEnum.
/// </summary>
public class ChangeDirectionEnum : ConstantClass
{
/// <summary>
/// Constant DECREASE for ChangeDirectionEnum
/// </summary>
public static readonly ChangeDirectionEnum DECREASE = new ChangeDirectionEnum("DECREASE");
/// <summary>
/// Constant INCREASE for ChangeDirectionEnum
/// </summary>
public static readonly ChangeDirectionEnum INCREASE = new ChangeDirectionEnum("INCREASE");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ChangeDirectionEnum(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ChangeDirectionEnum FindValue(string value)
{
return FindValue<ChangeDirectionEnum>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ChangeDirectionEnum(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type EventType.
/// </summary>
public class EventType : ConstantClass
{
/// <summary>
/// Constant AwsEvidentlyCustom for EventType
/// </summary>
public static readonly EventType AwsEvidentlyCustom = new EventType("aws.evidently.custom");
/// <summary>
/// Constant AwsEvidentlyEvaluation for EventType
/// </summary>
public static readonly EventType AwsEvidentlyEvaluation = new EventType("aws.evidently.evaluation");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public EventType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static EventType FindValue(string value)
{
return FindValue<EventType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator EventType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ExperimentBaseStat.
/// </summary>
public class ExperimentBaseStat : ConstantClass
{
/// <summary>
/// Constant Mean for ExperimentBaseStat
/// </summary>
public static readonly ExperimentBaseStat Mean = new ExperimentBaseStat("Mean");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ExperimentBaseStat(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ExperimentBaseStat FindValue(string value)
{
return FindValue<ExperimentBaseStat>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ExperimentBaseStat(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ExperimentReportName.
/// </summary>
public class ExperimentReportName : ConstantClass
{
/// <summary>
/// Constant BayesianInference for ExperimentReportName
/// </summary>
public static readonly ExperimentReportName BayesianInference = new ExperimentReportName("BayesianInference");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ExperimentReportName(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ExperimentReportName FindValue(string value)
{
return FindValue<ExperimentReportName>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ExperimentReportName(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ExperimentResultRequestType.
/// </summary>
public class ExperimentResultRequestType : ConstantClass
{
/// <summary>
/// Constant BaseStat for ExperimentResultRequestType
/// </summary>
public static readonly ExperimentResultRequestType BaseStat = new ExperimentResultRequestType("BaseStat");
/// <summary>
/// Constant ConfidenceInterval for ExperimentResultRequestType
/// </summary>
public static readonly ExperimentResultRequestType ConfidenceInterval = new ExperimentResultRequestType("ConfidenceInterval");
/// <summary>
/// Constant PValue for ExperimentResultRequestType
/// </summary>
public static readonly ExperimentResultRequestType PValue = new ExperimentResultRequestType("PValue");
/// <summary>
/// Constant TreatmentEffect for ExperimentResultRequestType
/// </summary>
public static readonly ExperimentResultRequestType TreatmentEffect = new ExperimentResultRequestType("TreatmentEffect");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ExperimentResultRequestType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ExperimentResultRequestType FindValue(string value)
{
return FindValue<ExperimentResultRequestType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ExperimentResultRequestType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ExperimentResultResponseType.
/// </summary>
public class ExperimentResultResponseType : ConstantClass
{
/// <summary>
/// Constant ConfidenceIntervalLowerBound for ExperimentResultResponseType
/// </summary>
public static readonly ExperimentResultResponseType ConfidenceIntervalLowerBound = new ExperimentResultResponseType("ConfidenceIntervalLowerBound");
/// <summary>
/// Constant ConfidenceIntervalUpperBound for ExperimentResultResponseType
/// </summary>
public static readonly ExperimentResultResponseType ConfidenceIntervalUpperBound = new ExperimentResultResponseType("ConfidenceIntervalUpperBound");
/// <summary>
/// Constant Mean for ExperimentResultResponseType
/// </summary>
public static readonly ExperimentResultResponseType Mean = new ExperimentResultResponseType("Mean");
/// <summary>
/// Constant PValue for ExperimentResultResponseType
/// </summary>
public static readonly ExperimentResultResponseType PValue = new ExperimentResultResponseType("PValue");
/// <summary>
/// Constant TreatmentEffect for ExperimentResultResponseType
/// </summary>
public static readonly ExperimentResultResponseType TreatmentEffect = new ExperimentResultResponseType("TreatmentEffect");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ExperimentResultResponseType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ExperimentResultResponseType FindValue(string value)
{
return FindValue<ExperimentResultResponseType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ExperimentResultResponseType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ExperimentStatus.
/// </summary>
public class ExperimentStatus : ConstantClass
{
/// <summary>
/// Constant CANCELLED for ExperimentStatus
/// </summary>
public static readonly ExperimentStatus CANCELLED = new ExperimentStatus("CANCELLED");
/// <summary>
/// Constant COMPLETED for ExperimentStatus
/// </summary>
public static readonly ExperimentStatus COMPLETED = new ExperimentStatus("COMPLETED");
/// <summary>
/// Constant CREATED for ExperimentStatus
/// </summary>
public static readonly ExperimentStatus CREATED = new ExperimentStatus("CREATED");
/// <summary>
/// Constant RUNNING for ExperimentStatus
/// </summary>
public static readonly ExperimentStatus RUNNING = new ExperimentStatus("RUNNING");
/// <summary>
/// Constant UPDATING for ExperimentStatus
/// </summary>
public static readonly ExperimentStatus UPDATING = new ExperimentStatus("UPDATING");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ExperimentStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ExperimentStatus FindValue(string value)
{
return FindValue<ExperimentStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ExperimentStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ExperimentStopDesiredState.
/// </summary>
public class ExperimentStopDesiredState : ConstantClass
{
/// <summary>
/// Constant CANCELLED for ExperimentStopDesiredState
/// </summary>
public static readonly ExperimentStopDesiredState CANCELLED = new ExperimentStopDesiredState("CANCELLED");
/// <summary>
/// Constant COMPLETED for ExperimentStopDesiredState
/// </summary>
public static readonly ExperimentStopDesiredState COMPLETED = new ExperimentStopDesiredState("COMPLETED");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ExperimentStopDesiredState(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ExperimentStopDesiredState FindValue(string value)
{
return FindValue<ExperimentStopDesiredState>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ExperimentStopDesiredState(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ExperimentType.
/// </summary>
public class ExperimentType : ConstantClass
{
/// <summary>
/// Constant AwsEvidentlyOnlineab for ExperimentType
/// </summary>
public static readonly ExperimentType AwsEvidentlyOnlineab = new ExperimentType("aws.evidently.onlineab");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ExperimentType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ExperimentType FindValue(string value)
{
return FindValue<ExperimentType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ExperimentType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type FeatureEvaluationStrategy.
/// </summary>
public class FeatureEvaluationStrategy : ConstantClass
{
/// <summary>
/// Constant ALL_RULES for FeatureEvaluationStrategy
/// </summary>
public static readonly FeatureEvaluationStrategy ALL_RULES = new FeatureEvaluationStrategy("ALL_RULES");
/// <summary>
/// Constant DEFAULT_VARIATION for FeatureEvaluationStrategy
/// </summary>
public static readonly FeatureEvaluationStrategy DEFAULT_VARIATION = new FeatureEvaluationStrategy("DEFAULT_VARIATION");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public FeatureEvaluationStrategy(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static FeatureEvaluationStrategy FindValue(string value)
{
return FindValue<FeatureEvaluationStrategy>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator FeatureEvaluationStrategy(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type FeatureStatus.
/// </summary>
public class FeatureStatus : ConstantClass
{
/// <summary>
/// Constant AVAILABLE for FeatureStatus
/// </summary>
public static readonly FeatureStatus AVAILABLE = new FeatureStatus("AVAILABLE");
/// <summary>
/// Constant UPDATING for FeatureStatus
/// </summary>
public static readonly FeatureStatus UPDATING = new FeatureStatus("UPDATING");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public FeatureStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static FeatureStatus FindValue(string value)
{
return FindValue<FeatureStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator FeatureStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type LaunchStatus.
/// </summary>
public class LaunchStatus : ConstantClass
{
/// <summary>
/// Constant CANCELLED for LaunchStatus
/// </summary>
public static readonly LaunchStatus CANCELLED = new LaunchStatus("CANCELLED");
/// <summary>
/// Constant COMPLETED for LaunchStatus
/// </summary>
public static readonly LaunchStatus COMPLETED = new LaunchStatus("COMPLETED");
/// <summary>
/// Constant CREATED for LaunchStatus
/// </summary>
public static readonly LaunchStatus CREATED = new LaunchStatus("CREATED");
/// <summary>
/// Constant RUNNING for LaunchStatus
/// </summary>
public static readonly LaunchStatus RUNNING = new LaunchStatus("RUNNING");
/// <summary>
/// Constant UPDATING for LaunchStatus
/// </summary>
public static readonly LaunchStatus UPDATING = new LaunchStatus("UPDATING");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public LaunchStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static LaunchStatus FindValue(string value)
{
return FindValue<LaunchStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator LaunchStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type LaunchStopDesiredState.
/// </summary>
public class LaunchStopDesiredState : ConstantClass
{
/// <summary>
/// Constant CANCELLED for LaunchStopDesiredState
/// </summary>
public static readonly LaunchStopDesiredState CANCELLED = new LaunchStopDesiredState("CANCELLED");
/// <summary>
/// Constant COMPLETED for LaunchStopDesiredState
/// </summary>
public static readonly LaunchStopDesiredState COMPLETED = new LaunchStopDesiredState("COMPLETED");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public LaunchStopDesiredState(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static LaunchStopDesiredState FindValue(string value)
{
return FindValue<LaunchStopDesiredState>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator LaunchStopDesiredState(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type LaunchType.
/// </summary>
public class LaunchType : ConstantClass
{
/// <summary>
/// Constant AwsEvidentlySplits for LaunchType
/// </summary>
public static readonly LaunchType AwsEvidentlySplits = new LaunchType("aws.evidently.splits");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public LaunchType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static LaunchType FindValue(string value)
{
return FindValue<LaunchType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator LaunchType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ProjectStatus.
/// </summary>
public class ProjectStatus : ConstantClass
{
/// <summary>
/// Constant AVAILABLE for ProjectStatus
/// </summary>
public static readonly ProjectStatus AVAILABLE = new ProjectStatus("AVAILABLE");
/// <summary>
/// Constant UPDATING for ProjectStatus
/// </summary>
public static readonly ProjectStatus UPDATING = new ProjectStatus("UPDATING");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ProjectStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ProjectStatus FindValue(string value)
{
return FindValue<ProjectStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ProjectStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type SegmentReferenceResourceType.
/// </summary>
public class SegmentReferenceResourceType : ConstantClass
{
/// <summary>
/// Constant EXPERIMENT for SegmentReferenceResourceType
/// </summary>
public static readonly SegmentReferenceResourceType EXPERIMENT = new SegmentReferenceResourceType("EXPERIMENT");
/// <summary>
/// Constant LAUNCH for SegmentReferenceResourceType
/// </summary>
public static readonly SegmentReferenceResourceType LAUNCH = new SegmentReferenceResourceType("LAUNCH");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public SegmentReferenceResourceType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static SegmentReferenceResourceType FindValue(string value)
{
return FindValue<SegmentReferenceResourceType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator SegmentReferenceResourceType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ValidationExceptionReason.
/// </summary>
public class ValidationExceptionReason : ConstantClass
{
/// <summary>
/// Constant CannotParse for ValidationExceptionReason
/// </summary>
public static readonly ValidationExceptionReason CannotParse = new ValidationExceptionReason("cannotParse");
/// <summary>
/// Constant FieldValidationFailed for ValidationExceptionReason
/// </summary>
public static readonly ValidationExceptionReason FieldValidationFailed = new ValidationExceptionReason("fieldValidationFailed");
/// <summary>
/// Constant Other for ValidationExceptionReason
/// </summary>
public static readonly ValidationExceptionReason Other = new ValidationExceptionReason("other");
/// <summary>
/// Constant UnknownOperation for ValidationExceptionReason
/// </summary>
public static readonly ValidationExceptionReason UnknownOperation = new ValidationExceptionReason("unknownOperation");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ValidationExceptionReason(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ValidationExceptionReason FindValue(string value)
{
return FindValue<ValidationExceptionReason>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ValidationExceptionReason(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type VariationValueType.
/// </summary>
public class VariationValueType : ConstantClass
{
/// <summary>
/// Constant BOOLEAN for VariationValueType
/// </summary>
public static readonly VariationValueType BOOLEAN = new VariationValueType("BOOLEAN");
/// <summary>
/// Constant DOUBLE for VariationValueType
/// </summary>
public static readonly VariationValueType DOUBLE = new VariationValueType("DOUBLE");
/// <summary>
/// Constant LONG for VariationValueType
/// </summary>
public static readonly VariationValueType LONG = new VariationValueType("LONG");
/// <summary>
/// Constant STRING for VariationValueType
/// </summary>
public static readonly VariationValueType STRING = new VariationValueType("STRING");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public VariationValueType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static VariationValueType FindValue(string value)
{
return FindValue<VariationValueType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator VariationValueType(string value)
{
return FindValue(value);
}
}
} | 970 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn;
namespace Amazon.CloudWatchEvidently.Internal
{
/// <summary>
/// Amazon CloudWatchEvidently endpoint provider.
/// Resolves endpoint for given set of CloudWatchEvidentlyEndpointParameters.
/// Can throw AmazonClientException if endpoint resolution is unsuccessful.
/// </summary>
public class AmazonCloudWatchEvidentlyEndpointProvider : IEndpointProvider
{
/// <summary>
/// Resolve endpoint for CloudWatchEvidentlyEndpointParameters
/// </summary>
public Endpoint ResolveEndpoint(EndpointParameters parameters)
{
if (parameters == null)
throw new ArgumentNullException("parameters");
if (parameters["UseDualStack"] == null)
throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution");
if (parameters["UseFIPS"] == null)
throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution");
var refs = new Dictionary<string, object>()
{
["Region"] = parameters["Region"],
["UseDualStack"] = parameters["UseDualStack"],
["UseFIPS"] = parameters["UseFIPS"],
["Endpoint"] = parameters["Endpoint"],
};
if (IsSet(refs["Endpoint"]))
{
if (Equals(refs["UseFIPS"], true))
{
throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported");
}
if (Equals(refs["UseDualStack"], true))
{
throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported");
}
return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
if (IsSet(refs["Region"]))
{
if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null)
{
if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://evidently-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both");
}
if (Equals(refs["UseFIPS"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")))
{
return new Endpoint(Interpolate(@"https://evidently-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS");
}
if (Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://evidently.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack");
}
return new Endpoint(Interpolate(@"https://evidently.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
}
throw new AmazonClientException("Invalid Configuration: Missing Region");
throw new AmazonClientException("Cannot resolve endpoint");
}
}
} | 103 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using Amazon.CloudWatchEvidently.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Endpoints;
using Amazon.Util;
using Amazon.CloudWatchEvidently.Endpoints;
#pragma warning disable 1591
namespace Amazon.CloudWatchEvidently.Internal
{
/// <summary>
/// Amazon CloudWatchEvidently endpoint resolver.
/// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for CloudWatchEvidently service requests.
/// Collects values for CloudWatchEvidentlyEndpointParameters and then tries to resolve endpoint by calling
/// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses CloudWatchEvidentlyEndpointProvider.
/// Responsible for setting authentication and http headers provided by resolved endpoint.
/// </summary>
public class AmazonCloudWatchEvidentlyEndpointResolver : BaseEndpointResolver
{
protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters)
{
InjectHostPrefix(executionContext.RequestContext);
}
protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext)
{
var config = (AmazonCloudWatchEvidentlyConfig)requestContext.ClientConfig;
var result = new CloudWatchEvidentlyEndpointParameters();
result.Region = config.RegionEndpoint?.SystemName;
result.UseDualStack = config.UseDualstackEndpoint;
result.UseFIPS = config.UseFIPSEndpoint;
result.Endpoint = config.ServiceURL;
// The region needs to be determined from the ServiceURL if not set.
var regionEndpoint = config.RegionEndpoint;
if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL))
{
var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL);
result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName;
}
// To support legacy endpoint overridding rules in the endpoints.json
if (result.Region == "us-east-1-regional")
{
result.Region = "us-east-1";
}
// Use AlternateEndpoint region override if set
if (requestContext.Request.AlternateEndpoint != null)
{
result.Region = requestContext.Request.AlternateEndpoint.SystemName;
}
// Assign staticContextParams and contextParam per operation
return result;
}
}
} | 83 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Internal
{
/// <summary>
/// Service metadata for Amazon CloudWatchEvidently service
/// </summary>
public partial class AmazonCloudWatchEvidentlyMetadata : IServiceMetadata
{
/// <summary>
/// Gets the value of the Service Id.
/// </summary>
public string ServiceId
{
get
{
return "Evidently";
}
}
/// <summary>
/// Gets the dictionary that gives mapping of renamed operations
/// </summary>
public System.Collections.Generic.IDictionary<string, string> OperationNameMapping
{
get
{
return new System.Collections.Generic.Dictionary<string, string>(0)
{
};
}
}
}
} | 55 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// You do not have sufficient permissions to perform this action.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AccessDeniedException : AmazonCloudWatchEvidentlyException
{
/// <summary>
/// Constructs a new AccessDeniedException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public AccessDeniedException(string message)
: base(message) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AccessDeniedException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </summary>
/// <param name="innerException"></param>
public AccessDeniedException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AccessDeniedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AccessDeniedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the AccessDeniedException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected AccessDeniedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.CloudWatchEvidently
{
/// <summary>
/// Base class for CloudWatchEvidently operation requests.
/// </summary>
public partial class AmazonCloudWatchEvidentlyRequest : AmazonWebServiceRequest
{
}
} | 30 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the BatchEvaluateFeature operation.
/// This operation assigns feature variation to user sessions. For each user session,
/// you pass in an <code>entityID</code> that represents the user. Evidently then checks
/// the evaluation rules and assigns the variation.
///
///
/// <para>
/// The first rules that are evaluated are the override rules. If the user's <code>entityID</code>
/// matches an override rule, the user is served the variation specified by that rule.
/// </para>
///
/// <para>
/// Next, if there is a launch of the feature, the user might be assigned to a variation
/// in the launch. The chance of this depends on the percentage of users that are allocated
/// to that launch. If the user is enrolled in the launch, the variation they are served
/// depends on the allocation of the various feature variations used for the launch.
/// </para>
///
/// <para>
/// If the user is not assigned to a launch, and there is an ongoing experiment for this
/// feature, the user might be assigned to a variation in the experiment. The chance of
/// this depends on the percentage of users that are allocated to that experiment. If
/// the user is enrolled in the experiment, the variation they are served depends on the
/// allocation of the various feature variations used for the experiment.
/// </para>
///
/// <para>
/// If the user is not assigned to a launch or experiment, they are served the default
/// variation.
/// </para>
/// </summary>
public partial class BatchEvaluateFeatureRequest : AmazonCloudWatchEvidentlyRequest
{
private string _project;
private List<EvaluationRequest> _requests = new List<EvaluationRequest>();
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that contains the feature being evaluated.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
/// <summary>
/// Gets and sets the property Requests.
/// <para>
/// An array of structures, where each structure assigns a feature variation to one user
/// session.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=20)]
public List<EvaluationRequest> Requests
{
get { return this._requests; }
set { this._requests = value; }
}
// Check to see if Requests property is set
internal bool IsSetRequests()
{
return this._requests != null && this._requests.Count > 0;
}
}
} | 108 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the BatchEvaluateFeature operation.
/// </summary>
public partial class BatchEvaluateFeatureResponse : AmazonWebServiceResponse
{
private List<EvaluationResult> _results = new List<EvaluationResult>();
/// <summary>
/// Gets and sets the property Results.
/// <para>
/// An array of structures, where each structure displays the results of one feature evaluation
/// assignment to one user session.
/// </para>
/// </summary>
public List<EvaluationResult> Results
{
get { return this._results; }
set { this._results = value; }
}
// Check to see if Results property is set
internal bool IsSetResults()
{
return this._results != null && this._results.Count > 0;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// A structure containing the CloudWatch Logs log group where the project stores evaluation
/// events.
/// </summary>
public partial class CloudWatchLogsDestination
{
private string _logGroup;
/// <summary>
/// Gets and sets the property LogGroup.
/// <para>
/// The name of the log group where the project stores evaluation events.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=512)]
public string LogGroup
{
get { return this._logGroup; }
set { this._logGroup = value; }
}
// Check to see if LogGroup property is set
internal bool IsSetLogGroup()
{
return this._logGroup != null;
}
}
} | 59 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// A structure containing the CloudWatch Logs log group where the project stores evaluation
/// events.
/// </summary>
public partial class CloudWatchLogsDestinationConfig
{
private string _logGroup;
/// <summary>
/// Gets and sets the property LogGroup.
/// <para>
/// The name of the log group where the project stores evaluation events.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=512)]
public string LogGroup
{
get { return this._logGroup; }
set { this._logGroup = value; }
}
// Check to see if LogGroup property is set
internal bool IsSetLogGroup()
{
return this._logGroup != null;
}
}
} | 59 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// A resource was in an inconsistent state during an update or a deletion.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ConflictException : AmazonCloudWatchEvidentlyException
{
private string _resourceId;
private string _resourceType;
/// <summary>
/// Constructs a new ConflictException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ConflictException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ConflictException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="innerException"></param>
public ConflictException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ConflictException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ConflictException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ConflictException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ConflictException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.ResourceId = (string)info.GetValue("ResourceId", typeof(string));
this.ResourceType = (string)info.GetValue("ResourceType", typeof(string));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("ResourceId", this.ResourceId);
info.AddValue("ResourceType", this.ResourceType);
}
#endif
/// <summary>
/// Gets and sets the property ResourceId.
/// <para>
/// The ID of the resource that caused the exception.
/// </para>
/// </summary>
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ResourceType.
/// <para>
/// The type of the resource that is associated with the error.
/// </para>
/// </summary>
public string ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
}
} | 166 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the CreateExperiment operation.
/// Creates an Evidently <i>experiment</i>. Before you create an experiment, you must
/// create the feature to use for the experiment.
///
///
/// <para>
/// An experiment helps you make feature design decisions based on evidence and data.
/// An experiment can test as many as five variations at once. Evidently collects experiment
/// data and analyzes it by statistical methods, and provides clear recommendations about
/// which variations perform better.
/// </para>
///
/// <para>
/// You can optionally specify a <code>segment</code> to have the experiment consider
/// only certain audience types in the experiment, such as using only user sessions from
/// a certain location or who use a certain internet browser.
/// </para>
///
/// <para>
/// Don't use this operation to update an existing experiment. Instead, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_UpdateExperiment.html">UpdateExperiment</a>.
///
/// </para>
/// </summary>
public partial class CreateExperimentRequest : AmazonCloudWatchEvidentlyRequest
{
private string _description;
private List<MetricGoalConfig> _metricGoals = new List<MetricGoalConfig>();
private string _name;
private OnlineAbConfig _onlineAbConfig;
private string _project;
private string _randomizationSalt;
private long? _samplingRate;
private string _segment;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private List<TreatmentConfig> _treatments = new List<TreatmentConfig>();
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// An optional description of the experiment.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=160)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property MetricGoals.
/// <para>
/// An array of structures that defines the metrics used for the experiment, and whether
/// a higher or lower value for each metric is the goal.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=3)]
public List<MetricGoalConfig> MetricGoals
{
get { return this._metricGoals; }
set { this._metricGoals = value; }
}
// Check to see if MetricGoals property is set
internal bool IsSetMetricGoals()
{
return this._metricGoals != null && this._metricGoals.Count > 0;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// A name for the new experiment.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property OnlineAbConfig.
/// <para>
/// A structure that contains the configuration of which variation to use as the "control"
/// version. tThe "control" version is used for comparison with other variations. This
/// structure also specifies how much experiment traffic is allocated to each variation.
/// </para>
/// </summary>
public OnlineAbConfig OnlineAbConfig
{
get { return this._onlineAbConfig; }
set { this._onlineAbConfig = value; }
}
// Check to see if OnlineAbConfig property is set
internal bool IsSetOnlineAbConfig()
{
return this._onlineAbConfig != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that you want to create the new experiment in.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
/// <summary>
/// Gets and sets the property RandomizationSalt.
/// <para>
/// When Evidently assigns a particular user session to an experiment, it must use a randomization
/// ID to determine which variation the user session is served. This randomization ID
/// is a combination of the entity ID and <code>randomizationSalt</code>. If you omit
/// <code>randomizationSalt</code>, Evidently uses the experiment name as the <code>randomizationSalt</code>.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=127)]
public string RandomizationSalt
{
get { return this._randomizationSalt; }
set { this._randomizationSalt = value; }
}
// Check to see if RandomizationSalt property is set
internal bool IsSetRandomizationSalt()
{
return this._randomizationSalt != null;
}
/// <summary>
/// Gets and sets the property SamplingRate.
/// <para>
/// The portion of the available audience that you want to allocate to this experiment,
/// in thousandths of a percent. The available audience is the total audience minus the
/// audience that you have allocated to overrides or current launches of this feature.
/// </para>
///
/// <para>
/// This is represented in thousandths of a percent. For example, specify 10,000 to allocate
/// 10% of the available audience.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=100000)]
public long SamplingRate
{
get { return this._samplingRate.GetValueOrDefault(); }
set { this._samplingRate = value; }
}
// Check to see if SamplingRate property is set
internal bool IsSetSamplingRate()
{
return this._samplingRate.HasValue;
}
/// <summary>
/// Gets and sets the property Segment.
/// <para>
/// Specifies an audience <i>segment</i> to use in the experiment. When a segment is used
/// in an experiment, only user sessions that match the segment pattern are used in the
/// experiment.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=2048)]
public string Segment
{
get { return this._segment; }
set { this._segment = value; }
}
// Check to see if Segment property is set
internal bool IsSetSegment()
{
return this._segment != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Assigns one or more tags (key-value pairs) to the experiment.
/// </para>
///
/// <para>
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values.
/// </para>
///
/// <para>
/// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly
/// as strings of characters.
/// </para>
///
/// <para>
/// You can associate as many as 50 tags with an experiment.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging
/// Amazon Web Services resources</a>.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property Treatments.
/// <para>
/// An array of structures that describe the configuration of each feature variation used
/// in the experiment.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=5)]
public List<TreatmentConfig> Treatments
{
get { return this._treatments; }
set { this._treatments = value; }
}
// Check to see if Treatments property is set
internal bool IsSetTreatments()
{
return this._treatments != null && this._treatments.Count > 0;
}
}
} | 293 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the CreateExperiment operation.
/// </summary>
public partial class CreateExperimentResponse : AmazonWebServiceResponse
{
private Experiment _experiment;
/// <summary>
/// Gets and sets the property Experiment.
/// <para>
/// A structure containing the configuration details of the experiment that you created.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Experiment Experiment
{
get { return this._experiment; }
set { this._experiment = value; }
}
// Check to see if Experiment property is set
internal bool IsSetExperiment()
{
return this._experiment != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the CreateFeature operation.
/// Creates an Evidently <i>feature</i> that you want to launch or test. You can define
/// up to five variations of a feature, and use these variations in your launches and
/// experiments. A feature must be created in a project. For information about creating
/// a project, see <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_CreateProject.html">CreateProject</a>.
///
///
/// <para>
/// Don't use this operation to update an existing feature. Instead, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_UpdateFeature.html">UpdateFeature</a>.
///
/// </para>
/// </summary>
public partial class CreateFeatureRequest : AmazonCloudWatchEvidentlyRequest
{
private string _defaultVariation;
private string _description;
private Dictionary<string, string> _entityOverrides = new Dictionary<string, string>();
private FeatureEvaluationStrategy _evaluationStrategy;
private string _name;
private string _project;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private List<VariationConfig> _variations = new List<VariationConfig>();
/// <summary>
/// Gets and sets the property DefaultVariation.
/// <para>
/// The name of the variation to use as the default variation. The default variation is
/// served to users who are not allocated to any ongoing launches or experiments of this
/// feature.
/// </para>
///
/// <para>
/// This variation must also be listed in the <code>variations</code> structure.
/// </para>
///
/// <para>
/// If you omit <code>defaultVariation</code>, the first variation listed in the <code>variations</code>
/// structure is used as the default variation.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=127)]
public string DefaultVariation
{
get { return this._defaultVariation; }
set { this._defaultVariation = value; }
}
// Check to see if DefaultVariation property is set
internal bool IsSetDefaultVariation()
{
return this._defaultVariation != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// An optional description of the feature.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=160)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property EntityOverrides.
/// <para>
/// Specify users that should always be served a specific variation of a feature. Each
/// user is specified by a key-value pair . For each key, specify a user by entering their
/// user ID, account ID, or some other identifier. For the value, specify the name of
/// the variation that they are to be served.
/// </para>
///
/// <para>
/// This parameter is limited to 2500 overrides or a total of 40KB. The 40KB limit includes
/// an overhead of 6 bytes per override.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=2500)]
public Dictionary<string, string> EntityOverrides
{
get { return this._entityOverrides; }
set { this._entityOverrides = value; }
}
// Check to see if EntityOverrides property is set
internal bool IsSetEntityOverrides()
{
return this._entityOverrides != null && this._entityOverrides.Count > 0;
}
/// <summary>
/// Gets and sets the property EvaluationStrategy.
/// <para>
/// Specify <code>ALL_RULES</code> to activate the traffic allocation specified by any
/// ongoing launches or experiments. Specify <code>DEFAULT_VARIATION</code> to serve the
/// default variation to all users instead.
/// </para>
/// </summary>
public FeatureEvaluationStrategy EvaluationStrategy
{
get { return this._evaluationStrategy; }
set { this._evaluationStrategy = value; }
}
// Check to see if EvaluationStrategy property is set
internal bool IsSetEvaluationStrategy()
{
return this._evaluationStrategy != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name for the new feature.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that is to contain the new feature.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Assigns one or more tags (key-value pairs) to the feature.
/// </para>
///
/// <para>
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values.
/// </para>
///
/// <para>
/// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly
/// as strings of characters.
/// </para>
///
/// <para>
/// You can associate as many as 50 tags with a feature.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging
/// Amazon Web Services resources</a>.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property Variations.
/// <para>
/// An array of structures that contain the configuration of the feature's different variations.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=5)]
public List<VariationConfig> Variations
{
get { return this._variations; }
set { this._variations = value; }
}
// Check to see if Variations property is set
internal bool IsSetVariations()
{
return this._variations != null && this._variations.Count > 0;
}
}
} | 247 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the CreateFeature operation.
/// </summary>
public partial class CreateFeatureResponse : AmazonWebServiceResponse
{
private Feature _feature;
/// <summary>
/// Gets and sets the property Feature.
/// <para>
/// A structure that contains information about the new feature.
/// </para>
/// </summary>
public Feature Feature
{
get { return this._feature; }
set { this._feature = value; }
}
// Check to see if Feature property is set
internal bool IsSetFeature()
{
return this._feature != null;
}
}
} | 57 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the CreateLaunch operation.
/// Creates a <i>launch</i> of a given feature. Before you create a launch, you must create
/// the feature to use for the launch.
///
///
/// <para>
/// You can use a launch to safely validate new features by serving them to a specified
/// percentage of your users while you roll out the feature. You can monitor the performance
/// of the new feature to help you decide when to ramp up traffic to more users. This
/// helps you reduce risk and identify unintended consequences before you fully launch
/// the feature.
/// </para>
///
/// <para>
/// Don't use this operation to update an existing launch. Instead, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_UpdateLaunch.html">UpdateLaunch</a>.
///
/// </para>
/// </summary>
public partial class CreateLaunchRequest : AmazonCloudWatchEvidentlyRequest
{
private string _description;
private List<LaunchGroupConfig> _groups = new List<LaunchGroupConfig>();
private List<MetricMonitorConfig> _metricMonitors = new List<MetricMonitorConfig>();
private string _name;
private string _project;
private string _randomizationSalt;
private ScheduledSplitsLaunchConfig _scheduledSplitsConfig;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// An optional description for the launch.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=160)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Groups.
/// <para>
/// An array of structures that contains the feature and variations that are to be used
/// for the launch.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=5)]
public List<LaunchGroupConfig> Groups
{
get { return this._groups; }
set { this._groups = value; }
}
// Check to see if Groups property is set
internal bool IsSetGroups()
{
return this._groups != null && this._groups.Count > 0;
}
/// <summary>
/// Gets and sets the property MetricMonitors.
/// <para>
/// An array of structures that define the metrics that will be used to monitor the launch
/// performance.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=3)]
public List<MetricMonitorConfig> MetricMonitors
{
get { return this._metricMonitors; }
set { this._metricMonitors = value; }
}
// Check to see if MetricMonitors property is set
internal bool IsSetMetricMonitors()
{
return this._metricMonitors != null && this._metricMonitors.Count > 0;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name for the new launch.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that you want to create the launch in.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
/// <summary>
/// Gets and sets the property RandomizationSalt.
/// <para>
/// When Evidently assigns a particular user session to a launch, it must use a randomization
/// ID to determine which variation the user session is served. This randomization ID
/// is a combination of the entity ID and <code>randomizationSalt</code>. If you omit
/// <code>randomizationSalt</code>, Evidently uses the launch name as the <code>randomizationSalt</code>.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=127)]
public string RandomizationSalt
{
get { return this._randomizationSalt; }
set { this._randomizationSalt = value; }
}
// Check to see if RandomizationSalt property is set
internal bool IsSetRandomizationSalt()
{
return this._randomizationSalt != null;
}
/// <summary>
/// Gets and sets the property ScheduledSplitsConfig.
/// <para>
/// An array of structures that define the traffic allocation percentages among the feature
/// variations during each step of the launch.
/// </para>
/// </summary>
public ScheduledSplitsLaunchConfig ScheduledSplitsConfig
{
get { return this._scheduledSplitsConfig; }
set { this._scheduledSplitsConfig = value; }
}
// Check to see if ScheduledSplitsConfig property is set
internal bool IsSetScheduledSplitsConfig()
{
return this._scheduledSplitsConfig != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Assigns one or more tags (key-value pairs) to the launch.
/// </para>
///
/// <para>
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values.
/// </para>
///
/// <para>
/// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly
/// as strings of characters.
/// </para>
///
/// <para>
/// You can associate as many as 50 tags with a launch.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging
/// Amazon Web Services resources</a>.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 238 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the CreateLaunch operation.
/// </summary>
public partial class CreateLaunchResponse : AmazonWebServiceResponse
{
private Launch _launch;
/// <summary>
/// Gets and sets the property Launch.
/// <para>
/// A structure that contains the configuration of the launch that was created.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Launch Launch
{
get { return this._launch; }
set { this._launch = value; }
}
// Check to see if Launch property is set
internal bool IsSetLaunch()
{
return this._launch != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the CreateProject operation.
/// Creates a project, which is the logical object in Evidently that can contain features,
/// launches, and experiments. Use projects to group similar features together.
///
///
/// <para>
/// To update an existing project, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_UpdateProject.html">UpdateProject</a>.
/// </para>
/// </summary>
public partial class CreateProjectRequest : AmazonCloudWatchEvidentlyRequest
{
private ProjectAppConfigResourceConfig _appConfigResource;
private ProjectDataDeliveryConfig _dataDelivery;
private string _description;
private string _name;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property AppConfigResource.
/// <para>
/// Use this parameter if the project will use <i>client-side evaluation powered by AppConfig</i>.
/// Client-side evaluation allows your application to assign variations to user sessions
/// locally instead of by calling the <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_EvaluateFeature.html">EvaluateFeature</a>
/// operation. This mitigates the latency and availability risks that come with an API
/// call. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Evidently-client-side-evaluation.html">
/// Client-side evaluation - powered by AppConfig.</a>
/// </para>
///
/// <para>
/// This parameter is a structure that contains information about the AppConfig application
/// and environment that will be used as for client-side evaluation.
/// </para>
///
/// <para>
/// To create a project that uses client-side evaluation, you must have the <code>evidently:ExportProjectAsConfiguration</code>
/// permission.
/// </para>
/// </summary>
public ProjectAppConfigResourceConfig AppConfigResource
{
get { return this._appConfigResource; }
set { this._appConfigResource = value; }
}
// Check to see if AppConfigResource property is set
internal bool IsSetAppConfigResource()
{
return this._appConfigResource != null;
}
/// <summary>
/// Gets and sets the property DataDelivery.
/// <para>
/// A structure that contains information about where Evidently is to store evaluation
/// events for longer term storage, if you choose to do so. If you choose not to store
/// these events, Evidently deletes them after using them to produce metrics and other
/// experiment results that you can view.
/// </para>
/// </summary>
public ProjectDataDeliveryConfig DataDelivery
{
get { return this._dataDelivery; }
set { this._dataDelivery = value; }
}
// Check to see if DataDelivery property is set
internal bool IsSetDataDelivery()
{
return this._dataDelivery != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// An optional description of the project.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=160)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name for the project.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Assigns one or more tags (key-value pairs) to the project.
/// </para>
///
/// <para>
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values.
/// </para>
///
/// <para>
/// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly
/// as strings of characters.
/// </para>
///
/// <para>
/// You can associate as many as 50 tags with a project.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging
/// Amazon Web Services resources</a>.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 180 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the CreateProject operation.
/// </summary>
public partial class CreateProjectResponse : AmazonWebServiceResponse
{
private Project _project;
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// A structure that contains information about the created project.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Project Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the CreateSegment operation.
/// Use this operation to define a <i>segment</i> of your audience. A segment is a portion
/// of your audience that share one or more characteristics. Examples could be Chrome
/// browser users, users in Europe, or Firefox browser users in Europe who also fit other
/// criteria that your application collects, such as age.
///
///
/// <para>
/// Using a segment in an experiment limits that experiment to evaluate only the users
/// who match the segment criteria. Using one or more segments in a launch allows you
/// to define different traffic splits for the different audience segments.
/// </para>
///
/// <para>
/// For more information about segment pattern syntax, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Evidently-segments.html#CloudWatch-Evidently-segments-syntax.html">
/// Segment rule pattern syntax</a>.
/// </para>
///
/// <para>
/// The pattern that you define for a segment is matched against the value of <code>evaluationContext</code>,
/// which is passed into Evidently in the <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_EvaluateFeature.html">EvaluateFeature</a>
/// operation, when Evidently assigns a feature variation to a user.
/// </para>
/// </summary>
public partial class CreateSegmentRequest : AmazonCloudWatchEvidentlyRequest
{
private string _description;
private string _name;
private string _pattern;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// An optional description for this segment.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=160)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// A name for the segment.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Pattern.
/// <para>
/// The pattern to use for the segment. For more information about pattern syntax, see
/// <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Evidently-segments.html#CloudWatch-Evidently-segments-syntax.html">
/// Segment rule pattern syntax</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string Pattern
{
get { return this._pattern; }
set { this._pattern = value; }
}
// Check to see if Pattern property is set
internal bool IsSetPattern()
{
return this._pattern != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Assigns one or more tags (key-value pairs) to the segment.
/// </para>
///
/// <para>
/// Tags can help you organize and categorize your resources. You can also use them to
/// scope user permissions by granting a user permission to access or change only resources
/// with certain tag values.
/// </para>
///
/// <para>
/// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly
/// as strings of characters.
/// </para>
///
/// <para>
/// You can associate as many as 50 tags with a segment.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging
/// Amazon Web Services resources</a>.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 161 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the CreateSegment operation.
/// </summary>
public partial class CreateSegmentResponse : AmazonWebServiceResponse
{
private Segment _segment;
/// <summary>
/// Gets and sets the property Segment.
/// <para>
/// A structure that contains the complete information about the segment that was just
/// created.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Segment Segment
{
get { return this._segment; }
set { this._segment = value; }
}
// Check to see if Segment property is set
internal bool IsSetSegment()
{
return this._segment != null;
}
}
} | 59 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the DeleteExperiment operation.
/// Deletes an Evidently experiment. The feature used for the experiment is not deleted.
///
///
/// <para>
/// To stop an experiment without deleting it, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_StopExperiment.html">StopExperiment</a>.
///
/// </para>
/// </summary>
public partial class DeleteExperimentRequest : AmazonCloudWatchEvidentlyRequest
{
private string _experiment;
private string _project;
/// <summary>
/// Gets and sets the property Experiment.
/// <para>
/// The name of the experiment to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Experiment
{
get { return this._experiment; }
set { this._experiment = value; }
}
// Check to see if Experiment property is set
internal bool IsSetExperiment()
{
return this._experiment != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that contains the experiment to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the DeleteExperiment operation.
/// </summary>
public partial class DeleteExperimentResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the DeleteFeature operation.
/// Deletes an Evidently feature.
/// </summary>
public partial class DeleteFeatureRequest : AmazonCloudWatchEvidentlyRequest
{
private string _feature;
private string _project;
/// <summary>
/// Gets and sets the property Feature.
/// <para>
/// The name of the feature to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Feature
{
get { return this._feature; }
set { this._feature = value; }
}
// Check to see if Feature property is set
internal bool IsSetFeature()
{
return this._feature != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that contains the feature to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
}
} | 79 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the DeleteFeature operation.
/// </summary>
public partial class DeleteFeatureResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the DeleteLaunch operation.
/// Deletes an Evidently launch. The feature used for the launch is not deleted.
///
///
/// <para>
/// To stop a launch without deleting it, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_StopLaunch.html">StopLaunch</a>.
///
/// </para>
/// </summary>
public partial class DeleteLaunchRequest : AmazonCloudWatchEvidentlyRequest
{
private string _launch;
private string _project;
/// <summary>
/// Gets and sets the property Launch.
/// <para>
/// The name of the launch to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Launch
{
get { return this._launch; }
set { this._launch = value; }
}
// Check to see if Launch property is set
internal bool IsSetLaunch()
{
return this._launch != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that contains the launch to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the DeleteLaunch operation.
/// </summary>
public partial class DeleteLaunchResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the DeleteProject operation.
/// Deletes an Evidently project. Before you can delete a project, you must delete all
/// the features that the project contains. To delete a feature, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_DeleteFeature.html">DeleteFeature</a>.
/// </summary>
public partial class DeleteProjectRequest : AmazonCloudWatchEvidentlyRequest
{
private string _project;
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
}
} | 60 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the DeleteProject operation.
/// </summary>
public partial class DeleteProjectResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the DeleteSegment operation.
/// Deletes a segment. You can't delete a segment that is being used in a launch or experiment,
/// even if that launch or experiment is not currently running.
/// </summary>
public partial class DeleteSegmentRequest : AmazonCloudWatchEvidentlyRequest
{
private string _segment;
/// <summary>
/// Gets and sets the property Segment.
/// <para>
/// Specifies the segment to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Segment
{
get { return this._segment; }
set { this._segment = value; }
}
// Check to see if Segment property is set
internal bool IsSetSegment()
{
return this._segment != null;
}
}
} | 60 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the DeleteSegment operation.
/// </summary>
public partial class DeleteSegmentResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the EvaluateFeature operation.
/// This operation assigns a feature variation to one given user session. You pass in
/// an <code>entityID</code> that represents the user. Evidently then checks the evaluation
/// rules and assigns the variation.
///
///
/// <para>
/// The first rules that are evaluated are the override rules. If the user's <code>entityID</code>
/// matches an override rule, the user is served the variation specified by that rule.
/// </para>
///
/// <para>
/// If there is a current launch with this feature that uses segment overrides, and if
/// the user session's <code>evaluationContext</code> matches a segment rule defined in
/// a segment override, the configuration in the segment overrides is used. For more information
/// about segments, see <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_CreateSegment.html">CreateSegment</a>
/// and <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Evidently-segments.html">Use
/// segments to focus your audience</a>.
/// </para>
///
/// <para>
/// If there is a launch with no segment overrides, the user might be assigned to a variation
/// in the launch. The chance of this depends on the percentage of users that are allocated
/// to that launch. If the user is enrolled in the launch, the variation they are served
/// depends on the allocation of the various feature variations used for the launch.
/// </para>
///
/// <para>
/// If the user is not assigned to a launch, and there is an ongoing experiment for this
/// feature, the user might be assigned to a variation in the experiment. The chance of
/// this depends on the percentage of users that are allocated to that experiment.
/// </para>
///
/// <para>
/// If the experiment uses a segment, then only user sessions with <code>evaluationContext</code>
/// values that match the segment rule are used in the experiment.
/// </para>
///
/// <para>
/// If the user is enrolled in the experiment, the variation they are served depends on
/// the allocation of the various feature variations used for the experiment.
/// </para>
///
/// <para>
/// If the user is not assigned to a launch or experiment, they are served the default
/// variation.
/// </para>
/// </summary>
public partial class EvaluateFeatureRequest : AmazonCloudWatchEvidentlyRequest
{
private string _entityId;
private string _evaluationContext;
private string _feature;
private string _project;
/// <summary>
/// Gets and sets the property EntityId.
/// <para>
/// An internal ID that represents a unique user of the application. This <code>entityID</code>
/// is checked against any override rules assigned for this feature.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=512)]
public string EntityId
{
get { return this._entityId; }
set { this._entityId = value; }
}
// Check to see if EntityId property is set
internal bool IsSetEntityId()
{
return this._entityId != null;
}
/// <summary>
/// Gets and sets the property EvaluationContext.
/// <para>
/// A JSON object of attributes that you can optionally pass in as part of the evaluation
/// event sent to Evidently from the user session. Evidently can use this value to match
/// user sessions with defined audience segments. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Evidently-segments.html">Use
/// segments to focus your audience</a>.
/// </para>
///
/// <para>
/// If you include this parameter, the value must be a JSON object. A JSON array is not
/// supported.
/// </para>
/// </summary>
public string EvaluationContext
{
get { return this._evaluationContext; }
set { this._evaluationContext = value; }
}
// Check to see if EvaluationContext property is set
internal bool IsSetEvaluationContext()
{
return this._evaluationContext != null;
}
/// <summary>
/// Gets and sets the property Feature.
/// <para>
/// The name of the feature being evaluated.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Feature
{
get { return this._feature; }
set { this._feature = value; }
}
// Check to see if Feature property is set
internal bool IsSetFeature()
{
return this._feature != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that contains this feature.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
}
} | 172 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the EvaluateFeature operation.
/// </summary>
public partial class EvaluateFeatureResponse : AmazonWebServiceResponse
{
private string _details;
private string _reason;
private VariableValue _value;
private string _variation;
/// <summary>
/// Gets and sets the property Details.
/// <para>
/// If this user was assigned to a launch or experiment, this field lists the launch or
/// experiment name.
/// </para>
/// </summary>
public string Details
{
get { return this._details; }
set { this._details = value; }
}
// Check to see if Details property is set
internal bool IsSetDetails()
{
return this._details != null;
}
/// <summary>
/// Gets and sets the property Reason.
/// <para>
/// Specifies the reason that the user session was assigned this variation. Possible values
/// include <code>DEFAULT</code>, meaning the user was served the default variation; <code>LAUNCH_RULE_MATCH</code>,
/// if the user session was enrolled in a launch; <code>EXPERIMENT_RULE_MATCH</code>,
/// if the user session was enrolled in an experiment; or <code>ENTITY_OVERRIDES_MATCH</code>,
/// if the user's <code>entityId</code> matches an override rule.
/// </para>
/// </summary>
public string Reason
{
get { return this._reason; }
set { this._reason = value; }
}
// Check to see if Reason property is set
internal bool IsSetReason()
{
return this._reason != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value assigned to this variation to differentiate it from the other variations
/// of this feature.
/// </para>
/// </summary>
public VariableValue Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
/// <summary>
/// Gets and sets the property Variation.
/// <para>
/// The name of the variation that was served to the user session.
/// </para>
/// </summary>
public string Variation
{
get { return this._variation; }
set { this._variation = value; }
}
// Check to see if Variation property is set
internal bool IsSetVariation()
{
return this._variation != null;
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This structure assigns a feature variation to one user session.
/// </summary>
public partial class EvaluationRequest
{
private string _entityId;
private string _evaluationContext;
private string _feature;
/// <summary>
/// Gets and sets the property EntityId.
/// <para>
/// An internal ID that represents a unique user session of the application. This <code>entityID</code>
/// is checked against any override rules assigned for this feature.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=512)]
public string EntityId
{
get { return this._entityId; }
set { this._entityId = value; }
}
// Check to see if EntityId property is set
internal bool IsSetEntityId()
{
return this._entityId != null;
}
/// <summary>
/// Gets and sets the property EvaluationContext.
/// <para>
/// A JSON block of attributes that you can optionally pass in. This JSON block is included
/// in the evaluation events sent to Evidently from the user session.
/// </para>
/// </summary>
public string EvaluationContext
{
get { return this._evaluationContext; }
set { this._evaluationContext = value; }
}
// Check to see if EvaluationContext property is set
internal bool IsSetEvaluationContext()
{
return this._evaluationContext != null;
}
/// <summary>
/// Gets and sets the property Feature.
/// <para>
/// The name of the feature being evaluated.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Feature
{
get { return this._feature; }
set { this._feature = value; }
}
// Check to see if Feature property is set
internal bool IsSetFeature()
{
return this._feature != null;
}
}
} | 99 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This structure displays the results of one feature evaluation assignment to one user
/// session.
/// </summary>
public partial class EvaluationResult
{
private string _details;
private string _entityId;
private string _feature;
private string _project;
private string _reason;
private VariableValue _value;
private string _variation;
/// <summary>
/// Gets and sets the property Details.
/// <para>
/// If this user was assigned to a launch or experiment, this field lists the launch or
/// experiment name.
/// </para>
/// </summary>
public string Details
{
get { return this._details; }
set { this._details = value; }
}
// Check to see if Details property is set
internal bool IsSetDetails()
{
return this._details != null;
}
/// <summary>
/// Gets and sets the property EntityId.
/// <para>
/// An internal ID that represents a unique user session of the application.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=512)]
public string EntityId
{
get { return this._entityId; }
set { this._entityId = value; }
}
// Check to see if EntityId property is set
internal bool IsSetEntityId()
{
return this._entityId != null;
}
/// <summary>
/// Gets and sets the property Feature.
/// <para>
/// The name of the feature being evaluated.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Feature
{
get { return this._feature; }
set { this._feature = value; }
}
// Check to see if Feature property is set
internal bool IsSetFeature()
{
return this._feature != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that contains the feature being evaluated.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
/// <summary>
/// Gets and sets the property Reason.
/// <para>
/// Specifies the reason that the user session was assigned this variation. Possible values
/// include <code>DEFAULT</code>, meaning the user was served the default variation; <code>LAUNCH_RULE_MATCH</code>,
/// if the user session was enrolled in a launch; or <code>EXPERIMENT_RULE_MATCH</code>,
/// if the user session was enrolled in an experiment.
/// </para>
/// </summary>
public string Reason
{
get { return this._reason; }
set { this._reason = value; }
}
// Check to see if Reason property is set
internal bool IsSetReason()
{
return this._reason != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value assigned to this variation to differentiate it from the other variations
/// of this feature.
/// </para>
/// </summary>
public VariableValue Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
/// <summary>
/// Gets and sets the property Variation.
/// <para>
/// The name of the variation that was served to the user session.
/// </para>
/// </summary>
public string Variation
{
get { return this._variation; }
set { this._variation = value; }
}
// Check to see if Variation property is set
internal bool IsSetVariation()
{
return this._variation != null;
}
}
} | 180 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// A structure that contains the information about an evaluation rule for this feature,
/// if it is used in a launch or experiment.
/// </summary>
public partial class EvaluationRule
{
private string _name;
private string _type;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the experiment or launch.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=1024)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// This value is <code>aws.evidently.splits</code> if this is an evaluation rule for
/// a launch, and it is <code>aws.evidently.onlineab</code> if this is an evaluation rule
/// for an experiment.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=1024)]
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
} | 81 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// A structure that contains the information about one evaluation event or custom event
/// sent to Evidently. This is a JSON payload. If this event specifies a pre-defined event
/// type, the payload must follow the defined event schema.
/// </summary>
public partial class Event
{
private string _data;
private DateTime? _timestamp;
private EventType _type;
/// <summary>
/// Gets and sets the property Data.
/// <para>
/// The event data.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Data
{
get { return this._data; }
set { this._data = value; }
}
// Check to see if Data property is set
internal bool IsSetData()
{
return this._data != null;
}
/// <summary>
/// Gets and sets the property Timestamp.
/// <para>
/// The timestamp of the event.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime Timestamp
{
get { return this._timestamp.GetValueOrDefault(); }
set { this._timestamp = value; }
}
// Check to see if Timestamp property is set
internal bool IsSetTimestamp()
{
return this._timestamp.HasValue;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// <code>aws.evidently.evaluation</code> specifies an evaluation event, which determines
/// which feature variation that a user sees. <code>aws.evidently.custom</code> specifies
/// a custom event, which generates metrics from user actions such as clicks and checkouts.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public EventType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
} | 102 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// A structure containing the configuration details of an experiment.
/// </summary>
public partial class Experiment
{
private string _arn;
private DateTime? _createdTime;
private string _description;
private ExperimentExecution _execution;
private DateTime? _lastUpdatedTime;
private List<MetricGoal> _metricGoals = new List<MetricGoal>();
private string _name;
private OnlineAbDefinition _onlineAbDefinition;
private string _project;
private string _randomizationSalt;
private long? _samplingRate;
private ExperimentSchedule _schedule;
private string _segment;
private ExperimentStatus _status;
private string _statusReason;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private List<Treatment> _treatments = new List<Treatment>();
private ExperimentType _type;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The ARN of the experiment.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property CreatedTime.
/// <para>
/// The date and time that the experiment is first created.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime CreatedTime
{
get { return this._createdTime.GetValueOrDefault(); }
set { this._createdTime = value; }
}
// Check to see if CreatedTime property is set
internal bool IsSetCreatedTime()
{
return this._createdTime.HasValue;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// A description of the experiment.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=160)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Execution.
/// <para>
/// A structure that contains the date and time that the experiment started and ended.
/// </para>
/// </summary>
public ExperimentExecution Execution
{
get { return this._execution; }
set { this._execution = value; }
}
// Check to see if Execution property is set
internal bool IsSetExecution()
{
return this._execution != null;
}
/// <summary>
/// Gets and sets the property LastUpdatedTime.
/// <para>
/// The date and time that the experiment was most recently updated.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime LastUpdatedTime
{
get { return this._lastUpdatedTime.GetValueOrDefault(); }
set { this._lastUpdatedTime = value; }
}
// Check to see if LastUpdatedTime property is set
internal bool IsSetLastUpdatedTime()
{
return this._lastUpdatedTime.HasValue;
}
/// <summary>
/// Gets and sets the property MetricGoals.
/// <para>
/// An array of structures that defines the metrics used for the experiment, and whether
/// a higher or lower value for each metric is the goal.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=3)]
public List<MetricGoal> MetricGoals
{
get { return this._metricGoals; }
set { this._metricGoals = value; }
}
// Check to see if MetricGoals property is set
internal bool IsSetMetricGoals()
{
return this._metricGoals != null && this._metricGoals.Count > 0;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the experiment.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property OnlineAbDefinition.
/// <para>
/// A structure that contains the configuration of which variation to use as the "control"
/// version. The "control" version is used for comparison with other variations. This
/// structure also specifies how much experiment traffic is allocated to each variation.
/// </para>
/// </summary>
public OnlineAbDefinition OnlineAbDefinition
{
get { return this._onlineAbDefinition; }
set { this._onlineAbDefinition = value; }
}
// Check to see if OnlineAbDefinition property is set
internal bool IsSetOnlineAbDefinition()
{
return this._onlineAbDefinition != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that contains this experiment.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
/// <summary>
/// Gets and sets the property RandomizationSalt.
/// <para>
/// This value is used when Evidently assigns a particular user session to the experiment.
/// It helps create a randomization ID to determine which variation the user session is
/// served. This randomization ID is a combination of the entity ID and <code>randomizationSalt</code>.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=127)]
public string RandomizationSalt
{
get { return this._randomizationSalt; }
set { this._randomizationSalt = value; }
}
// Check to see if RandomizationSalt property is set
internal bool IsSetRandomizationSalt()
{
return this._randomizationSalt != null;
}
/// <summary>
/// Gets and sets the property SamplingRate.
/// <para>
/// In thousandths of a percent, the amount of the available audience that is allocated
/// to this experiment. The available audience is the total audience minus the audience
/// that you have allocated to overrides or current launches of this feature.
/// </para>
///
/// <para>
/// This is represented in thousandths of a percent, so a value of 10,000 is 10% of the
/// available audience.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=100000)]
public long SamplingRate
{
get { return this._samplingRate.GetValueOrDefault(); }
set { this._samplingRate = value; }
}
// Check to see if SamplingRate property is set
internal bool IsSetSamplingRate()
{
return this._samplingRate.HasValue;
}
/// <summary>
/// Gets and sets the property Schedule.
/// <para>
/// A structure that contains the time and date that Evidently completed the analysis
/// of the experiment.
/// </para>
/// </summary>
public ExperimentSchedule Schedule
{
get { return this._schedule; }
set { this._schedule = value; }
}
// Check to see if Schedule property is set
internal bool IsSetSchedule()
{
return this._schedule != null;
}
/// <summary>
/// Gets and sets the property Segment.
/// <para>
/// The audience segment being used for the experiment, if a segment is being used.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=2048)]
public string Segment
{
get { return this._segment; }
set { this._segment = value; }
}
// Check to see if Segment property is set
internal bool IsSetSegment()
{
return this._segment != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The current state of the experiment.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ExperimentStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
/// <summary>
/// Gets and sets the property StatusReason.
/// <para>
/// If the experiment was stopped, this is the string that was entered by the person who
/// stopped the experiment, to explain why it was stopped.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=160)]
public string StatusReason
{
get { return this._statusReason; }
set { this._statusReason = value; }
}
// Check to see if StatusReason property is set
internal bool IsSetStatusReason()
{
return this._statusReason != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The list of tag keys and values associated with this experiment.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property Treatments.
/// <para>
/// An array of structures that describe the configuration of each feature variation used
/// in the experiment.
/// </para>
/// </summary>
[AWSProperty(Min=2, Max=5)]
public List<Treatment> Treatments
{
get { return this._treatments; }
set { this._treatments = value; }
}
// Check to see if Treatments property is set
internal bool IsSetTreatments()
{
return this._treatments != null && this._treatments.Count > 0;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The type of this experiment. Currently, this value must be <code>aws.experiment.onlineab</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ExperimentType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
} | 409 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This structure contains the date and time that the experiment started and ended.
/// </summary>
public partial class ExperimentExecution
{
private DateTime? _endedTime;
private DateTime? _startedTime;
/// <summary>
/// Gets and sets the property EndedTime.
/// <para>
/// The date and time that the experiment ended.
/// </para>
/// </summary>
public DateTime EndedTime
{
get { return this._endedTime.GetValueOrDefault(); }
set { this._endedTime = value; }
}
// Check to see if EndedTime property is set
internal bool IsSetEndedTime()
{
return this._endedTime.HasValue;
}
/// <summary>
/// Gets and sets the property StartedTime.
/// <para>
/// The date and time that the experiment started.
/// </para>
/// </summary>
public DateTime StartedTime
{
get { return this._startedTime.GetValueOrDefault(); }
set { this._startedTime = value; }
}
// Check to see if StartedTime property is set
internal bool IsSetStartedTime()
{
return this._startedTime.HasValue;
}
}
} | 76 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// A structure that contains results of an experiment.
/// </summary>
public partial class ExperimentReport
{
private string _content;
private string _metricName;
private ExperimentReportName _reportName;
private string _treatmentName;
/// <summary>
/// Gets and sets the property Content.
/// <para>
/// The content of the report.
/// </para>
/// </summary>
public string Content
{
get { return this._content; }
set { this._content = value; }
}
// Check to see if Content property is set
internal bool IsSetContent()
{
return this._content != null;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the metric that is analyzed in this experiment report.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property ReportName.
/// <para>
/// The type of analysis used for this report.
/// </para>
/// </summary>
public ExperimentReportName ReportName
{
get { return this._reportName; }
set { this._reportName = value; }
}
// Check to see if ReportName property is set
internal bool IsSetReportName()
{
return this._reportName != null;
}
/// <summary>
/// Gets and sets the property TreatmentName.
/// <para>
/// The name of the variation that this report pertains to.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=127)]
public string TreatmentName
{
get { return this._treatmentName; }
set { this._treatmentName = value; }
}
// Check to see if TreatmentName property is set
internal bool IsSetTreatmentName()
{
return this._treatmentName != null;
}
}
} | 116 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// A structure that contains experiment results for one metric that is monitored in the
/// experiment.
/// </summary>
public partial class ExperimentResultsData
{
private string _metricName;
private ExperimentResultResponseType _resultStat;
private string _treatmentName;
private List<double> _values = new List<double>();
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the metric.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property ResultStat.
/// <para>
/// The experiment statistic that these results pertain to.
/// </para>
/// </summary>
public ExperimentResultResponseType ResultStat
{
get { return this._resultStat; }
set { this._resultStat = value; }
}
// Check to see if ResultStat property is set
internal bool IsSetResultStat()
{
return this._resultStat != null;
}
/// <summary>
/// Gets and sets the property TreatmentName.
/// <para>
/// The treatment, or variation, that returned the <code>values</code> in this structure.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=127)]
public string TreatmentName
{
get { return this._treatmentName; }
set { this._treatmentName = value; }
}
// Check to see if TreatmentName property is set
internal bool IsSetTreatmentName()
{
return this._treatmentName != null;
}
/// <summary>
/// Gets and sets the property Values.
/// <para>
/// The values for the <code>metricName</code> that were recorded in the experiment.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=100800)]
public List<double> Values
{
get { return this._values; }
set { this._values = value; }
}
// Check to see if Values property is set
internal bool IsSetValues()
{
return this._values != null && this._values.Count > 0;
}
}
} | 118 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This structure contains the time and date that Evidently completed the analysis of
/// the experiment.
/// </summary>
public partial class ExperimentSchedule
{
private DateTime? _analysisCompleteTime;
/// <summary>
/// Gets and sets the property AnalysisCompleteTime.
/// <para>
/// The time and date that Evidently completed the analysis of the experiment.
/// </para>
/// </summary>
public DateTime AnalysisCompleteTime
{
get { return this._analysisCompleteTime.GetValueOrDefault(); }
set { this._analysisCompleteTime = value; }
}
// Check to see if AnalysisCompleteTime property is set
internal bool IsSetAnalysisCompleteTime()
{
return this._analysisCompleteTime.HasValue;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This structure contains information about one Evidently feature in your account.
/// </summary>
public partial class Feature
{
private string _arn;
private DateTime? _createdTime;
private string _defaultVariation;
private string _description;
private Dictionary<string, string> _entityOverrides = new Dictionary<string, string>();
private List<EvaluationRule> _evaluationRules = new List<EvaluationRule>();
private FeatureEvaluationStrategy _evaluationStrategy;
private DateTime? _lastUpdatedTime;
private string _name;
private string _project;
private FeatureStatus _status;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private VariationValueType _valueType;
private List<Variation> _variations = new List<Variation>();
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The ARN of the feature.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property CreatedTime.
/// <para>
/// The date and time that the feature is created.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime CreatedTime
{
get { return this._createdTime.GetValueOrDefault(); }
set { this._createdTime = value; }
}
// Check to see if CreatedTime property is set
internal bool IsSetCreatedTime()
{
return this._createdTime.HasValue;
}
/// <summary>
/// Gets and sets the property DefaultVariation.
/// <para>
/// The name of the variation that is used as the default variation. The default variation
/// is served to users who are not allocated to any ongoing launches or experiments of
/// this feature.
/// </para>
///
/// <para>
/// This variation must also be listed in the <code>variations</code> structure.
/// </para>
///
/// <para>
/// If you omit <code>defaultVariation</code>, the first variation listed in the <code>variations</code>
/// structure is used as the default variation.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=127)]
public string DefaultVariation
{
get { return this._defaultVariation; }
set { this._defaultVariation = value; }
}
// Check to see if DefaultVariation property is set
internal bool IsSetDefaultVariation()
{
return this._defaultVariation != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the feature.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=160)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property EntityOverrides.
/// <para>
/// A set of key-value pairs that specify users who should always be served a specific
/// variation of a feature. Each key specifies a user using their user ID, account ID,
/// or some other identifier. The value specifies the name of the variation that the user
/// is to be served.
/// </para>
///
/// <para>
/// For the override to be successful, the value of the key must match the <code>entityId</code>
/// used in the <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_EvaluateFeature.html">EvaluateFeature</a>
/// operation.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=2500)]
public Dictionary<string, string> EntityOverrides
{
get { return this._entityOverrides; }
set { this._entityOverrides = value; }
}
// Check to see if EntityOverrides property is set
internal bool IsSetEntityOverrides()
{
return this._entityOverrides != null && this._entityOverrides.Count > 0;
}
/// <summary>
/// Gets and sets the property EvaluationRules.
/// <para>
/// An array of structures that define the evaluation rules for the feature.
/// </para>
/// </summary>
public List<EvaluationRule> EvaluationRules
{
get { return this._evaluationRules; }
set { this._evaluationRules = value; }
}
// Check to see if EvaluationRules property is set
internal bool IsSetEvaluationRules()
{
return this._evaluationRules != null && this._evaluationRules.Count > 0;
}
/// <summary>
/// Gets and sets the property EvaluationStrategy.
/// <para>
/// If this value is <code>ALL_RULES</code>, the traffic allocation specified by any ongoing
/// launches or experiments is being used. If this is <code>DEFAULT_VARIATION</code>,
/// the default variation is being served to all users.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public FeatureEvaluationStrategy EvaluationStrategy
{
get { return this._evaluationStrategy; }
set { this._evaluationStrategy = value; }
}
// Check to see if EvaluationStrategy property is set
internal bool IsSetEvaluationStrategy()
{
return this._evaluationStrategy != null;
}
/// <summary>
/// Gets and sets the property LastUpdatedTime.
/// <para>
/// The date and time that the feature was most recently updated.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime LastUpdatedTime
{
get { return this._lastUpdatedTime.GetValueOrDefault(); }
set { this._lastUpdatedTime = value; }
}
// Check to see if LastUpdatedTime property is set
internal bool IsSetLastUpdatedTime()
{
return this._lastUpdatedTime.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the feature.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that contains the feature.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The current state of the feature.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public FeatureStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The list of tag keys and values associated with this feature.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property ValueType.
/// <para>
/// Defines the type of value used to define the different feature variations. For more
/// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Evidently-variationtypes.html">Variation
/// types</a>
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public VariationValueType ValueType
{
get { return this._valueType; }
set { this._valueType = value; }
}
// Check to see if ValueType property is set
internal bool IsSetValueType()
{
return this._valueType != null;
}
/// <summary>
/// Gets and sets the property Variations.
/// <para>
/// An array of structures that contain the configuration of the feature's different variations.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<Variation> Variations
{
get { return this._variations; }
set { this._variations = value; }
}
// Check to see if Variations property is set
internal bool IsSetVariations()
{
return this._variations != null && this._variations.Count > 0;
}
}
} | 340 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This structure contains information about one Evidently feature in your account.
/// </summary>
public partial class FeatureSummary
{
private string _arn;
private DateTime? _createdTime;
private string _defaultVariation;
private List<EvaluationRule> _evaluationRules = new List<EvaluationRule>();
private FeatureEvaluationStrategy _evaluationStrategy;
private DateTime? _lastUpdatedTime;
private string _name;
private string _project;
private FeatureStatus _status;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The ARN of the feature.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property CreatedTime.
/// <para>
/// The date and time that the feature is created.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime CreatedTime
{
get { return this._createdTime.GetValueOrDefault(); }
set { this._createdTime = value; }
}
// Check to see if CreatedTime property is set
internal bool IsSetCreatedTime()
{
return this._createdTime.HasValue;
}
/// <summary>
/// Gets and sets the property DefaultVariation.
/// <para>
/// The name of the variation that is used as the default variation. The default variation
/// is served to users who are not allocated to any ongoing launches or experiments of
/// this feature.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=127)]
public string DefaultVariation
{
get { return this._defaultVariation; }
set { this._defaultVariation = value; }
}
// Check to see if DefaultVariation property is set
internal bool IsSetDefaultVariation()
{
return this._defaultVariation != null;
}
/// <summary>
/// Gets and sets the property EvaluationRules.
/// <para>
/// An array of structures that define
/// </para>
/// </summary>
public List<EvaluationRule> EvaluationRules
{
get { return this._evaluationRules; }
set { this._evaluationRules = value; }
}
// Check to see if EvaluationRules property is set
internal bool IsSetEvaluationRules()
{
return this._evaluationRules != null && this._evaluationRules.Count > 0;
}
/// <summary>
/// Gets and sets the property EvaluationStrategy.
/// <para>
/// If this value is <code>ALL_RULES</code>, the traffic allocation specified by any ongoing
/// launches or experiments is being used. If this is <code>DEFAULT_VARIATION</code>,
/// the default variation is being served to all users.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public FeatureEvaluationStrategy EvaluationStrategy
{
get { return this._evaluationStrategy; }
set { this._evaluationStrategy = value; }
}
// Check to see if EvaluationStrategy property is set
internal bool IsSetEvaluationStrategy()
{
return this._evaluationStrategy != null;
}
/// <summary>
/// Gets and sets the property LastUpdatedTime.
/// <para>
/// The date and time that the feature was most recently updated.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime LastUpdatedTime
{
get { return this._lastUpdatedTime.GetValueOrDefault(); }
set { this._lastUpdatedTime = value; }
}
// Check to see if LastUpdatedTime property is set
internal bool IsSetLastUpdatedTime()
{
return this._lastUpdatedTime.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the feature.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that contains the feature.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The current state of the feature.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public FeatureStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The list of tag keys and values associated with this feature.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 240 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the GetExperiment operation.
/// Returns the details about one experiment. You must already know the experiment name.
/// To retrieve a list of experiments in your account, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_ListExperiments.html">ListExperiments</a>.
/// </summary>
public partial class GetExperimentRequest : AmazonCloudWatchEvidentlyRequest
{
private string _experiment;
private string _project;
/// <summary>
/// Gets and sets the property Experiment.
/// <para>
/// The name of the experiment that you want to see the details of.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Experiment
{
get { return this._experiment; }
set { this._experiment = value; }
}
// Check to see if Experiment property is set
internal bool IsSetExperiment()
{
return this._experiment != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that contains the experiment.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
}
} | 80 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the GetExperiment operation.
/// </summary>
public partial class GetExperimentResponse : AmazonWebServiceResponse
{
private Experiment _experiment;
/// <summary>
/// Gets and sets the property Experiment.
/// <para>
/// A structure containing the configuration details of the experiment.
/// </para>
/// </summary>
public Experiment Experiment
{
get { return this._experiment; }
set { this._experiment = value; }
}
// Check to see if Experiment property is set
internal bool IsSetExperiment()
{
return this._experiment != null;
}
}
} | 57 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the GetExperimentResults operation.
/// Retrieves the results of a running or completed experiment. No results are available
/// until there have been 100 events for each variation and at least 10 minutes have passed
/// since the start of the experiment. To increase the statistical power, Evidently performs
/// an additional offline p-value analysis at the end of the experiment. Offline p-value
/// analysis can detect statistical significance in some cases where the anytime p-values
/// used during the experiment do not find statistical significance.
///
///
/// <para>
/// Experiment results are available up to 63 days after the start of the experiment.
/// They are not available after that because of CloudWatch data retention policies.
/// </para>
/// </summary>
public partial class GetExperimentResultsRequest : AmazonCloudWatchEvidentlyRequest
{
private ExperimentBaseStat _baseStat;
private DateTime? _endTime;
private string _experiment;
private List<string> _metricNames = new List<string>();
private long? _period;
private string _project;
private List<string> _reportNames = new List<string>();
private List<string> _resultStats = new List<string>();
private DateTime? _startTime;
private List<string> _treatmentNames = new List<string>();
/// <summary>
/// Gets and sets the property BaseStat.
/// <para>
/// The statistic used to calculate experiment results. Currently the only valid value
/// is <code>mean</code>, which uses the mean of the collected values as the statistic.
/// </para>
/// </summary>
public ExperimentBaseStat BaseStat
{
get { return this._baseStat; }
set { this._baseStat = value; }
}
// Check to see if BaseStat property is set
internal bool IsSetBaseStat()
{
return this._baseStat != null;
}
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// The date and time that the experiment ended, if it is completed. This must be no longer
/// than 30 days after the experiment start time.
/// </para>
/// </summary>
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
/// <summary>
/// Gets and sets the property Experiment.
/// <para>
/// The name of the experiment to retrieve the results of.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Experiment
{
get { return this._experiment; }
set { this._experiment = value; }
}
// Check to see if Experiment property is set
internal bool IsSetExperiment()
{
return this._experiment != null;
}
/// <summary>
/// Gets and sets the property MetricNames.
/// <para>
/// The names of the experiment metrics that you want to see the results of.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1)]
public List<string> MetricNames
{
get { return this._metricNames; }
set { this._metricNames = value; }
}
// Check to see if MetricNames property is set
internal bool IsSetMetricNames()
{
return this._metricNames != null && this._metricNames.Count > 0;
}
/// <summary>
/// Gets and sets the property Period.
/// <para>
/// In seconds, the amount of time to aggregate results together.
/// </para>
/// </summary>
[AWSProperty(Min=300, Max=90000)]
public long Period
{
get { return this._period.GetValueOrDefault(); }
set { this._period = value; }
}
// Check to see if Period property is set
internal bool IsSetPeriod()
{
return this._period.HasValue;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that contains the experiment that you want to see the
/// results of.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
/// <summary>
/// Gets and sets the property ReportNames.
/// <para>
/// The names of the report types that you want to see. Currently, <code>BayesianInference</code>
/// is the only valid value.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=5)]
public List<string> ReportNames
{
get { return this._reportNames; }
set { this._reportNames = value; }
}
// Check to see if ReportNames property is set
internal bool IsSetReportNames()
{
return this._reportNames != null && this._reportNames.Count > 0;
}
/// <summary>
/// Gets and sets the property ResultStats.
/// <para>
/// The statistics that you want to see in the returned results.
/// </para>
/// <ul> <li>
/// <para>
/// <code>PValue</code> specifies to use p-values for the results. A p-value is used
/// in hypothesis testing to measure how often you are willing to make a mistake in rejecting
/// the null hypothesis. A general practice is to reject the null hypothesis and declare
/// that the results are statistically significant when the p-value is less than 0.05.
/// </para>
/// </li> <li>
/// <para>
/// <code>ConfidenceInterval</code> specifies a confidence interval for the results.
/// The confidence interval represents the range of values for the chosen metric that
/// is likely to contain the true difference between the <code>baseStat</code> of a variation
/// and the baseline. Evidently returns the 95% confidence interval.
/// </para>
/// </li> <li>
/// <para>
/// <code>TreatmentEffect</code> is the difference in the statistic specified by the
/// <code>baseStat</code> parameter between each variation and the default variation.
///
/// </para>
/// </li> <li>
/// <para>
/// <code>BaseStat</code> returns the statistical values collected for the metric for
/// each variation. The statistic uses the same statistic specified in the <code>baseStat</code>
/// parameter. Therefore, if <code>baseStat</code> is <code>mean</code>, this returns
/// the mean of the values collected for each variation.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Min=0, Max=5)]
public List<string> ResultStats
{
get { return this._resultStats; }
set { this._resultStats = value; }
}
// Check to see if ResultStats property is set
internal bool IsSetResultStats()
{
return this._resultStats != null && this._resultStats.Count > 0;
}
/// <summary>
/// Gets and sets the property StartTime.
/// <para>
/// The date and time that the experiment started.
/// </para>
/// </summary>
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
/// <summary>
/// Gets and sets the property TreatmentNames.
/// <para>
/// The names of the experiment treatments that you want to see the results for.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=5)]
public List<string> TreatmentNames
{
get { return this._treatmentNames; }
set { this._treatmentNames = value; }
}
// Check to see if TreatmentNames property is set
internal bool IsSetTreatmentNames()
{
return this._treatmentNames != null && this._treatmentNames.Count > 0;
}
}
} | 279 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the GetExperimentResults operation.
/// </summary>
public partial class GetExperimentResultsResponse : AmazonWebServiceResponse
{
private string _details;
private List<ExperimentReport> _reports = new List<ExperimentReport>();
private List<ExperimentResultsData> _resultsData = new List<ExperimentResultsData>();
private List<DateTime> _timestamps = new List<DateTime>();
/// <summary>
/// Gets and sets the property Details.
/// <para>
/// If the experiment doesn't yet have enough events to provide valid results, this field
/// is returned with the message <code>Not enough events to generate results</code>. If
/// there are enough events to provide valid results, this field is not returned.
/// </para>
/// </summary>
public string Details
{
get { return this._details; }
set { this._details = value; }
}
// Check to see if Details property is set
internal bool IsSetDetails()
{
return this._details != null;
}
/// <summary>
/// Gets and sets the property Reports.
/// <para>
/// An array of structures that include the reports that you requested.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=1000)]
public List<ExperimentReport> Reports
{
get { return this._reports; }
set { this._reports = value; }
}
// Check to see if Reports property is set
internal bool IsSetReports()
{
return this._reports != null && this._reports.Count > 0;
}
/// <summary>
/// Gets and sets the property ResultsData.
/// <para>
/// An array of structures that include experiment results including metric names and
/// values.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=1000)]
public List<ExperimentResultsData> ResultsData
{
get { return this._resultsData; }
set { this._resultsData = value; }
}
// Check to see if ResultsData property is set
internal bool IsSetResultsData()
{
return this._resultsData != null && this._resultsData.Count > 0;
}
/// <summary>
/// Gets and sets the property Timestamps.
/// <para>
/// The timestamps of each result returned.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=100800)]
public List<DateTime> Timestamps
{
get { return this._timestamps; }
set { this._timestamps = value; }
}
// Check to see if Timestamps property is set
internal bool IsSetTimestamps()
{
return this._timestamps != null && this._timestamps.Count > 0;
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the GetFeature operation.
/// Returns the details about one feature. You must already know the feature name. To
/// retrieve a list of features in your account, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_ListFeatures.html">ListFeatures</a>.
/// </summary>
public partial class GetFeatureRequest : AmazonCloudWatchEvidentlyRequest
{
private string _feature;
private string _project;
/// <summary>
/// Gets and sets the property Feature.
/// <para>
/// The name of the feature that you want to retrieve information for.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Feature
{
get { return this._feature; }
set { this._feature = value; }
}
// Check to see if Feature property is set
internal bool IsSetFeature()
{
return this._feature != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that contains the feature.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
}
} | 80 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the GetFeature operation.
/// </summary>
public partial class GetFeatureResponse : AmazonWebServiceResponse
{
private Feature _feature;
/// <summary>
/// Gets and sets the property Feature.
/// <para>
/// A structure containing the configuration details of the feature.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Feature Feature
{
get { return this._feature; }
set { this._feature = value; }
}
// Check to see if Feature property is set
internal bool IsSetFeature()
{
return this._feature != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the GetLaunch operation.
/// Returns the details about one launch. You must already know the launch name. To retrieve
/// a list of launches in your account, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_ListLaunches.html">ListLaunches</a>.
/// </summary>
public partial class GetLaunchRequest : AmazonCloudWatchEvidentlyRequest
{
private string _launch;
private string _project;
/// <summary>
/// Gets and sets the property Launch.
/// <para>
/// The name of the launch that you want to see the details of.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Launch
{
get { return this._launch; }
set { this._launch = value; }
}
// Check to see if Launch property is set
internal bool IsSetLaunch()
{
return this._launch != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that contains the launch.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
}
} | 80 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the GetLaunch operation.
/// </summary>
public partial class GetLaunchResponse : AmazonWebServiceResponse
{
private Launch _launch;
/// <summary>
/// Gets and sets the property Launch.
/// <para>
/// A structure containing the configuration details of the launch.
/// </para>
/// </summary>
public Launch Launch
{
get { return this._launch; }
set { this._launch = value; }
}
// Check to see if Launch property is set
internal bool IsSetLaunch()
{
return this._launch != null;
}
}
} | 57 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the GetProject operation.
/// Returns the details about one launch. You must already know the project name. To retrieve
/// a list of projects in your account, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_ListProjects.html">ListProjects</a>.
/// </summary>
public partial class GetProjectRequest : AmazonCloudWatchEvidentlyRequest
{
private string _project;
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that you want to see the details of.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
}
} | 60 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the GetProject operation.
/// </summary>
public partial class GetProjectResponse : AmazonWebServiceResponse
{
private Project _project;
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// A structure containing the configuration details of the project.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Project Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the GetSegment operation.
/// Returns information about the specified segment. Specify the segment you want to view
/// by specifying its ARN.
/// </summary>
public partial class GetSegmentRequest : AmazonCloudWatchEvidentlyRequest
{
private string _segment;
/// <summary>
/// Gets and sets the property Segment.
/// <para>
/// The ARN of the segment to return information for.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Segment
{
get { return this._segment; }
set { this._segment = value; }
}
// Check to see if Segment property is set
internal bool IsSetSegment()
{
return this._segment != null;
}
}
} | 60 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the GetSegment operation.
/// </summary>
public partial class GetSegmentResponse : AmazonWebServiceResponse
{
private Segment _segment;
/// <summary>
/// Gets and sets the property Segment.
/// <para>
/// A structure that contains the complete information about the segment.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Segment Segment
{
get { return this._segment; }
set { this._segment = value; }
}
// Check to see if Segment property is set
internal bool IsSetSegment()
{
return this._segment != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Unexpected error while processing the request. Retry the request.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InternalServerException : AmazonCloudWatchEvidentlyException
{
/// <summary>
/// Constructs a new InternalServerException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InternalServerException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InternalServerException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="innerException"></param>
public InternalServerException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServerException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServerException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the InternalServerException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected InternalServerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This structure contains the configuration details of one Evidently launch.
/// </summary>
public partial class Launch
{
private string _arn;
private DateTime? _createdTime;
private string _description;
private LaunchExecution _execution;
private List<LaunchGroup> _groups = new List<LaunchGroup>();
private DateTime? _lastUpdatedTime;
private List<MetricMonitor> _metricMonitors = new List<MetricMonitor>();
private string _name;
private string _project;
private string _randomizationSalt;
private ScheduledSplitsLaunchDefinition _scheduledSplitsDefinition;
private LaunchStatus _status;
private string _statusReason;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private LaunchType _type;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The ARN of the launch.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property CreatedTime.
/// <para>
/// The date and time that the launch is created.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime CreatedTime
{
get { return this._createdTime.GetValueOrDefault(); }
set { this._createdTime = value; }
}
// Check to see if CreatedTime property is set
internal bool IsSetCreatedTime()
{
return this._createdTime.HasValue;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the launch.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=160)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Execution.
/// <para>
/// A structure that contains information about the start and end times of the launch.
/// </para>
/// </summary>
public LaunchExecution Execution
{
get { return this._execution; }
set { this._execution = value; }
}
// Check to see if Execution property is set
internal bool IsSetExecution()
{
return this._execution != null;
}
/// <summary>
/// Gets and sets the property Groups.
/// <para>
/// An array of structures that define the feature variations that are being used in the
/// launch.
/// </para>
/// </summary>
public List<LaunchGroup> Groups
{
get { return this._groups; }
set { this._groups = value; }
}
// Check to see if Groups property is set
internal bool IsSetGroups()
{
return this._groups != null && this._groups.Count > 0;
}
/// <summary>
/// Gets and sets the property LastUpdatedTime.
/// <para>
/// The date and time that the launch was most recently updated.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime LastUpdatedTime
{
get { return this._lastUpdatedTime.GetValueOrDefault(); }
set { this._lastUpdatedTime = value; }
}
// Check to see if LastUpdatedTime property is set
internal bool IsSetLastUpdatedTime()
{
return this._lastUpdatedTime.HasValue;
}
/// <summary>
/// Gets and sets the property MetricMonitors.
/// <para>
/// An array of structures that define the metrics that are being used to monitor the
/// launch performance.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=3)]
public List<MetricMonitor> MetricMonitors
{
get { return this._metricMonitors; }
set { this._metricMonitors = value; }
}
// Check to see if MetricMonitors property is set
internal bool IsSetMetricMonitors()
{
return this._metricMonitors != null && this._metricMonitors.Count > 0;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the launch.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project that contains the launch.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
/// <summary>
/// Gets and sets the property RandomizationSalt.
/// <para>
/// This value is used when Evidently assigns a particular user session to the launch,
/// to help create a randomization ID to determine which variation the user session is
/// served. This randomization ID is a combination of the entity ID and <code>randomizationSalt</code>.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=127)]
public string RandomizationSalt
{
get { return this._randomizationSalt; }
set { this._randomizationSalt = value; }
}
// Check to see if RandomizationSalt property is set
internal bool IsSetRandomizationSalt()
{
return this._randomizationSalt != null;
}
/// <summary>
/// Gets and sets the property ScheduledSplitsDefinition.
/// <para>
/// An array of structures that define the traffic allocation percentages among the feature
/// variations during each step of the launch.
/// </para>
/// </summary>
public ScheduledSplitsLaunchDefinition ScheduledSplitsDefinition
{
get { return this._scheduledSplitsDefinition; }
set { this._scheduledSplitsDefinition = value; }
}
// Check to see if ScheduledSplitsDefinition property is set
internal bool IsSetScheduledSplitsDefinition()
{
return this._scheduledSplitsDefinition != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The current state of the launch.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public LaunchStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
/// <summary>
/// Gets and sets the property StatusReason.
/// <para>
/// If the launch was stopped, this is the string that was entered by the person who stopped
/// the launch, to explain why it was stopped.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=160)]
public string StatusReason
{
get { return this._statusReason; }
set { this._statusReason = value; }
}
// Check to see if StatusReason property is set
internal bool IsSetStatusReason()
{
return this._statusReason != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The list of tag keys and values associated with this launch.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The type of launch.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public LaunchType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
} | 340 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This structure contains information about the start and end times of the launch.
/// </summary>
public partial class LaunchExecution
{
private DateTime? _endedTime;
private DateTime? _startedTime;
/// <summary>
/// Gets and sets the property EndedTime.
/// <para>
/// The date and time that the launch ended.
/// </para>
/// </summary>
public DateTime EndedTime
{
get { return this._endedTime.GetValueOrDefault(); }
set { this._endedTime = value; }
}
// Check to see if EndedTime property is set
internal bool IsSetEndedTime()
{
return this._endedTime.HasValue;
}
/// <summary>
/// Gets and sets the property StartedTime.
/// <para>
/// The date and time that the launch started.
/// </para>
/// </summary>
public DateTime StartedTime
{
get { return this._startedTime.GetValueOrDefault(); }
set { this._startedTime = value; }
}
// Check to see if StartedTime property is set
internal bool IsSetStartedTime()
{
return this._startedTime.HasValue;
}
}
} | 76 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// A structure that defines one launch group in a launch. A launch group is a variation
/// of the feature that you are including in the launch.
/// </summary>
public partial class LaunchGroup
{
private string _description;
private Dictionary<string, string> _featureVariations = new Dictionary<string, string>();
private string _name;
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// A description of the launch group.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=160)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property FeatureVariations.
/// <para>
/// The feature variation for this launch group. This is a key-value pair.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Dictionary<string, string> FeatureVariations
{
get { return this._featureVariations; }
set { this._featureVariations = value; }
}
// Check to see if FeatureVariations property is set
internal bool IsSetFeatureVariations()
{
return this._featureVariations != null && this._featureVariations.Count > 0;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the launch group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
} | 99 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// A structure that defines one launch group in a launch. A launch group is a variation
/// of the feature that you are including in the launch.
/// </summary>
public partial class LaunchGroupConfig
{
private string _description;
private string _feature;
private string _name;
private string _variation;
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// A description of the launch group.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=160)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Feature.
/// <para>
/// The feature that this launch is using.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Feature
{
get { return this._feature; }
set { this._feature = value; }
}
// Check to see if Feature property is set
internal bool IsSetFeature()
{
return this._feature != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// A name for this launch group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Variation.
/// <para>
/// The feature variation to use for this launch group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=127)]
public string Variation
{
get { return this._variation; }
set { this._variation = value; }
}
// Check to see if Variation property is set
internal bool IsSetVariation()
{
return this._variation != null;
}
}
} | 119 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the ListExperiments operation.
/// Returns configuration details about all the experiments in the specified project.
/// </summary>
public partial class ListExperimentsRequest : AmazonCloudWatchEvidentlyRequest
{
private int? _maxResults;
private string _nextToken;
private string _project;
private ExperimentStatus _status;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to include in the response.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token to use when requesting the next set of results. You received this token
/// from a previous <code>ListExperiments</code> operation.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=8192)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project to return the experiment list from.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// Use this optional parameter to limit the returned results to only the experiments
/// with the status that you specify here.
/// </para>
/// </summary>
public ExperimentStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the ListExperiments operation.
/// </summary>
public partial class ListExperimentsResponse : AmazonWebServiceResponse
{
private List<Experiment> _experiments = new List<Experiment>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Experiments.
/// <para>
/// An array of structures that contain the configuration details of the experiments in
/// the specified project.
/// </para>
/// </summary>
public List<Experiment> Experiments
{
get { return this._experiments; }
set { this._experiments = value; }
}
// Check to see if Experiments property is set
internal bool IsSetExperiments()
{
return this._experiments != null && this._experiments.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token to use in a subsequent <code>ListExperiments</code> operation to return
/// the next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=8192)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 79 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the ListFeatures operation.
/// Returns configuration details about all the features in the specified project.
/// </summary>
public partial class ListFeaturesRequest : AmazonCloudWatchEvidentlyRequest
{
private int? _maxResults;
private string _nextToken;
private string _project;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to include in the response.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token to use when requesting the next set of results. You received this token
/// from a previous <code>ListFeatures</code> operation.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=8192)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project to return the feature list from.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
}
} | 100 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// This is the response object from the ListFeatures operation.
/// </summary>
public partial class ListFeaturesResponse : AmazonWebServiceResponse
{
private List<FeatureSummary> _features = new List<FeatureSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Features.
/// <para>
/// An array of structures that contain the configuration details of the features in the
/// specified project.
/// </para>
/// </summary>
public List<FeatureSummary> Features
{
get { return this._features; }
set { this._features = value; }
}
// Check to see if Features property is set
internal bool IsSetFeatures()
{
return this._features != null && this._features.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token to use in a subsequent <code>ListFeatures</code> operation to return the
/// next set of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=8192)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 79 |
aws-sdk-net | aws | C# | /*
* 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 evidently-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvidently.Model
{
/// <summary>
/// Container for the parameters to the ListLaunches operation.
/// Returns configuration details about all the launches in the specified project.
/// </summary>
public partial class ListLaunchesRequest : AmazonCloudWatchEvidentlyRequest
{
private int? _maxResults;
private string _nextToken;
private string _project;
private LaunchStatus _status;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to include in the response.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token to use when requesting the next set of results. You received this token
/// from a previous <code>ListLaunches</code> operation.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=8192)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property Project.
/// <para>
/// The name or ARN of the project to return the launch list from.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2048)]
public string Project
{
get { return this._project; }
set { this._project = value; }
}
// Check to see if Project property is set
internal bool IsSetProject()
{
return this._project != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// Use this optional parameter to limit the returned results to only the launches with
/// the status that you specify here.
/// </para>
/// </summary>
public LaunchStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
} | 120 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.