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 <Int32>
-MaxServiceCallHistory <Int32>
-RecordServiceRequests <SwitchParameter>
-IncludeSensitiveData <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

-IncludeSensitiveData <SwitchParameter>
If set, record the service requests and responses that contain sensitive data. Default: Off.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-MaxCmdletHistory <Int32>
The maximum number of AWS cmdlet invocations that will be held in the history buffer.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-MaxServiceCallHistory <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?True (ByPropertyName)
-RecordServiceRequests <SwitchParameter>
If set, also records the service requests that a cmdlet makes. Default: Off.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)

Outputs

None
This cmdlet does not generate any output.

Supported Version

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