AWS Tools for Windows PowerShell
Command 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.

Synopsis

Configures how the $AWSHistory session variable records AWS cmdlet processing.

Syntax

Set-AWSHistoryConfiguration
-MaxCmdletHistory <Nullable<Int32>>
-MaxServiceCallHistory <Nullable<Int32>>
-RecordServiceRequests <SwitchParameter>

Description

Configures the $AWSHistory instance for the current session. A history buffer size of 0 disables overall AWS cmdlet activity recording and clears any data currently in the buffer. If the new size is smaller than the current data in the buffer, older records are deleted. By default, only service responses are recorded for a cmdlet. Use the -EnableRequestRecording switch to turn on tracing of service requests in the buffer.

Parameters

-MaxCmdletHistory <Nullable<Int32>>
The maximum number of AWS cmdlet invocations that will be held in the history buffer.
Required?False
Position?Named
Accept pipeline input?False
-MaxServiceCallHistory <Nullable<Int32>>
The maximum number of service responses (and requests, if enabled) that will be recorded for a single AWS cmdlet.
Required?False
Position?Named
Accept pipeline input?False
-RecordServiceRequests <SwitchParameter>
If set, also records the service requests that a cmdlet makes. Default: Off.
Required?False
Position?Named
Accept pipeline input?False

Inputs

This cmdlet does not accept pipeline input.

Outputs

None
This cmdlet does not generate any output.

Supported Version

AWS Tools for PowerShell: 2.x.y.z