### Update AWS Tools Modules Source: https://github.com/aws/aws-tools-for-powershell/blob/main/generator/AWSPSGeneratorLib/HelpMaterials/WebHelp/StaticContent/items/Update-AWSToolsModule.html This example updates all installed AWS.Tools modules to the latest version and uninstalls older versions. ```powershell Update-AWSToolsModule -CleanUp ``` -------------------------------- ### Install-AWSToolsModule Cmdlet Source: https://github.com/aws/aws-tools-for-powershell/blob/main/generator/AWSPSGeneratorLib/HelpMaterials/WebHelp/StaticContent/items/Install-AWSToolsModule.html The Install-AWSToolsModule cmdlet installs AWS.Tools modules. It can install specific versions, update existing modules, and manage installation scope. ```APIDOC ## Install-AWSToolsModule ### Description Installs AWS.Tools modules using Install-Module. By default, it also updates all other currently installed AWS.Tools modules to the version being installed, unless -SkipUpdate is specified. ### Method Cmdlet ### Endpoint N/A (Local PowerShell Cmdlet) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Parameters - **Name** (String[]) - Required - Specifies names of the AWS.Tools modules to install. Names can be provided with or without the "AWS.Tools." prefix (e.g., "AWS.Tools.Common" or "Common"). Accepts pipeline input. - **RequiredVersion** (Version) - Optional - Specifies the exact version number of the module to install. - **MinimumVersion** (Version) - Optional - Specifies the minimum version of the modules to install. - **MaximumVersion** (Version) - Optional - Specifies the maximum version of the modules to install. - **CleanUp** (SwitchParameter) - Optional - Specifies that, after a successful install, all other versions of the AWS Tools modules should be uninstalled. - **SkipUpdate** (SwitchParameter) - Optional - Disables the default behavior of updating all currently installed AWS.Tools modules. - **SkipPublisherCheck** (SwitchParameter) - Optional - Allows skipping the publisher validation check. - **Scope** (String) - Optional - Specifies the installation scope. Acceptable values are "AllUsers" (installs to $env:ProgramFiles\PowerShell\Modules) or "CurrentUser" (installs to $home\Documents\PowerShell\Modules). Defaults to "CurrentUser" if not specified. - **AllowClobber** (SwitchParameter) - Optional - Overrides warning messages about installation conflicts with existing commands. - **Proxy** (System.Uri) - Optional - Specifies a proxy server for the request. - **ProxyCredential** (PSCredential) - Optional - Specifies a user account that has permission to use the proxy server. - **Force** (SwitchParameter) - Optional - Forces an install of each specified module without a prompt for confirmation. - **WhatIf** (SwitchParameter) - Optional - Shows what would happen if the cmdlet runs. Use this parameter to view what changes would occur without actually making the changes. - **Confirm** (SwitchParameter) - Optional - Prompts you for confirmation before running the cmdlet. Use this parameter to prevent unwanted operations. ### Request Example ```powershell Install-AWSToolsModule -Name "AWS.Tools.S3", "AWS.Tools.EC2" -RequiredVersion "4.0.0.0" ``` ### Response #### Success Response (0) No specific success response body is defined, but the cmdlet completes without error. #### Response Example (No specific output, success is indicated by the absence of errors.) ### Error Handling Errors will be reported by PowerShell if the installation fails due to network issues, insufficient permissions, or invalid parameters. ```