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.
Find-CTEvent-EndTime <DateTime>-EventCategory <EventCategory>-LookupAttribute <LookupAttribute[]>-StartTime <DateTime>-MaxResult <Int32>-NextToken <String>-Select <String>-NoAutoIteration <SwitchParameter>-ClientConfig <AmazonCloudTrailConfig>
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | LookupAttributes |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | MaxResults |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
Find-CTEventReturns all events that have occurred over the last seven days. The cmdlet by default automatically makes multiple calls to deliver all events, exiting when the service indicates no further data is available.
Find-CTEvent -Region eu-central-1Returns all events that have occurred over the last seven days specifying a region that is not the current shell default.
Find-CTEvent -LookupAttribute @{ AttributeKey="EventName"; AttributeValue="RunInstances" }Returns all events that are associated with the RunInstances API call.
Find-CTEvent -MaxResult 5Returns the first 5 available events. The token to use to retrieve further events is attached as a note property named 'NextToken' to the$AWSHistory.LastServiceResponse
member.
Find-CTEvent -MaxResult 10 -NextToken $AWSHistory.LastServiceResponse.NextTokenReturns the next 10 events using the 'next page' token from a previous call to indicate where to start returning events from in the sequence.
$nextToken = $null
do
{
Find-CTEvent -MaxResult 5 -NextToken $nextToken
$nextToken = $AWSHistory.LastServiceResponse.NextToken
} while ($nextToken -ne $null)This example shows how to loop through the available events using manual paging, fetching a maximum of 5 events per call.
AWS Tools for PowerShell: 2.x.y.z