get_segment
(**kwargs)¶Returns information about the specified segment. Specify the segment you want to view by specifying its ARN.
See also: AWS API Documentation
Request Syntax
response = client.get_segment(
segment='string'
)
[REQUIRED]
The ARN of the segment to return information for.
{
'segment': {
'arn': 'string',
'createdTime': datetime(2015, 1, 1),
'description': 'string',
'experimentCount': 123,
'lastUpdatedTime': datetime(2015, 1, 1),
'launchCount': 123,
'name': 'string',
'pattern': 'string',
'tags': {
'string': 'string'
}
}
}
Response Structure
A structure that contains the complete information about the segment.
The ARN of the segment.
The date and time that this segment was created.
The customer-created description for this segment.
The number of experiments that this segment is used in. This count includes all current experiments, not just those that are currently running.
The date and time that this segment was most recently updated.
The number of launches that this segment is used in. This count includes all current launches, not just those that are currently running.
The name of the segment.
The pattern that defines the attributes to use to evalute whether a user session will be in the segment. For more information about the pattern syntax, see Segment rule pattern syntax.
The list of tag keys and values associated with this launch.
Exceptions
CloudWatchEvidently.Client.exceptions.ThrottlingException
CloudWatchEvidently.Client.exceptions.ValidationException
CloudWatchEvidently.Client.exceptions.ResourceNotFoundException
CloudWatchEvidently.Client.exceptions.AccessDeniedException