AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to DeleteSegmentAsync.

Namespace: Amazon.CloudWatchEvidently
Assembly: AWSSDK.CloudWatchEvidently.dll
Version: 3.x.y.z

Syntax

C#
public virtual DeleteSegmentResponse DeleteSegment(
         DeleteSegmentRequest request
)

Parameters

request
Type: Amazon.CloudWatchEvidently.Model.DeleteSegmentRequest

Container for the necessary parameters to execute the DeleteSegment service method.

Return Value


The response from the DeleteSegment service method, as returned by CloudWatchEvidently.

Exceptions

ExceptionCondition
AccessDeniedException You do not have sufficient permissions to perform this action.
ConflictException A resource was in an inconsistent state during an update or a deletion.
ResourceNotFoundException The request references a resource that does not exist.
ThrottlingException The request was denied because of request throttling. Retry the request.
ValidationException The value of a parameter in the request caused an error.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also