AWS powershell documentation change
Summary
Updated all references from AWS Tools for PowerShell V4 to V5, including code example headers and API documentation links.
Security assessment
The changes are version updates (V4 to V5) for documentation consistency and API reference links. No security-related content modifications, vulnerability fixes, or new security features were introduced.
Diff
diff --git a/powershell/v5/userguide/powershell_iam_code_examples.md b/powershell/v5/userguide/powershell_iam_code_examples.md index 3fdd649fb..6dbd69917 100644 --- a//powershell/v5/userguide/powershell_iam_code_examples.md +++ b//powershell/v5/userguide/powershell_iam_code_examples.md @@ -13 +13 @@ For information about breaking changes and migrating your applications, see the -# IAM examples using Tools for PowerShell V4 +# IAM examples using Tools for PowerShell V5 @@ -15 +15 @@ For information about breaking changes and migrating your applications, see the -The following code examples show you how to perform actions and implement common scenarios by using the AWS Tools for PowerShell V4 with IAM. +The following code examples show you how to perform actions and implement common scenarios by using the AWS Tools for PowerShell V5 with IAM. @@ -32 +32 @@ The following code example shows how to use `Add-IAMClientIDToOpenIDConnectProvi -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -41 +41 @@ The following code example shows how to use `Add-IAMClientIDToOpenIDConnectProvi - * For API details, see [AddClientIdToOpenIdConnectProvider](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [AddClientIdToOpenIdConnectProvider](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -48 +48 @@ The following code example shows how to use `Add-IAMRoleTag`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -57 +57 @@ The following code example shows how to use `Add-IAMRoleTag`. - * For API details, see [TagRole](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [TagRole](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -64 +64 @@ The following code example shows how to use `Add-IAMRoleToInstanceProfile`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -73 +73 @@ The following code example shows how to use `Add-IAMRoleToInstanceProfile`. - * For API details, see [AddRoleToInstanceProfile](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [AddRoleToInstanceProfile](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -80 +80 @@ The following code example shows how to use `Add-IAMUserTag`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -89 +89 @@ The following code example shows how to use `Add-IAMUserTag`. - * For API details, see [TagUser](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [TagUser](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -96 +96 @@ The following code example shows how to use `Add-IAMUserToGroup`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -105 +105 @@ The following code example shows how to use `Add-IAMUserToGroup`. - * For API details, see [AddUserToGroup](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [AddUserToGroup](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -112 +112 @@ The following code example shows how to use `Disable-IAMMFADevice`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -127 +127 @@ The following code example shows how to use `Disable-IAMMFADevice`. - * For API details, see [DeactivateMfaDevice](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [DeactivateMfaDevice](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -134 +134 @@ The following code example shows how to use `Edit-IAMPassword`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -143 +143 @@ The following code example shows how to use `Edit-IAMPassword`. - * For API details, see [ChangePassword](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [ChangePassword](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -150 +150 @@ The following code example shows how to use `Enable-IAMMFADevice`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -167 +167 @@ The following code example shows how to use `Enable-IAMMFADevice`. - * For API details, see [EnableMfaDevice](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [EnableMfaDevice](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -174 +174 @@ The following code example shows how to use `Get-IAMAccessKey`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -191 +191 @@ The following code example shows how to use `Get-IAMAccessKey`. - * For API details, see [ListAccessKeys](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [ListAccessKeys](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -198 +198 @@ The following code example shows how to use `Get-IAMAccessKeyLastUsed`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -207 +207 @@ The following code example shows how to use `Get-IAMAccessKeyLastUsed`. - * For API details, see [GetAccessKeyLastUsed](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [GetAccessKeyLastUsed](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -214 +214 @@ The following code example shows how to use `Get-IAMAccountAlias`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -228 +228 @@ The following code example shows how to use `Get-IAMAccountAlias`. - * For API details, see [ListAccountAliases](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [ListAccountAliases](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -235 +235 @@ The following code example shows how to use `Get-IAMAccountAuthorizationDetail`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -285 +285 @@ The following code example shows how to use `Get-IAMAccountAuthorizationDetail`. - * For API details, see [GetAccountAuthorizationDetails](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [GetAccountAuthorizationDetails](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -292 +292 @@ The following code example shows how to use `Get-IAMAccountPasswordPolicy`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -315 +315 @@ The following code example shows how to use `Get-IAMAccountPasswordPolicy`. - * For API details, see [GetAccountPasswordPolicy](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [GetAccountPasswordPolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -322 +322 @@ The following code example shows how to use `Get-IAMAccountSummary`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -369 +369 @@ The following code example shows how to use `Get-IAMAccountSummary`. - * For API details, see [GetAccountSummary](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [GetAccountSummary](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -376 +376 @@ The following code example shows how to use `Get-IAMAttachedGroupPolicyList`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -393 +393 @@ The following code example shows how to use `Get-IAMAttachedGroupPolicyList`. - * For API details, see [ListAttachedGroupPolicies](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [ListAttachedGroupPolicies](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -400 +400 @@ The following code example shows how to use `Get-IAMAttachedRolePolicyList`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -416 +416 @@ The following code example shows how to use `Get-IAMAttachedRolePolicyList`. - * For API details, see [ListAttachedRolePolicies](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [ListAttachedRolePolicies](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -423 +423 @@ The following code example shows how to use `Get-IAMAttachedUserPolicyList`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -439 +439 @@ The following code example shows how to use `Get-IAMAttachedUserPolicyList`. - * For API details, see [ListAttachedUserPolicies](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [ListAttachedUserPolicies](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -446 +446 @@ The following code example shows how to use `Get-IAMContextKeysForCustomPolicy`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -457 +457 @@ The following code example shows how to use `Get-IAMContextKeysForCustomPolicy`. - * For API details, see [GetContextKeysForCustomPolicy](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [GetContextKeysForCustomPolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -464 +464 @@ The following code example shows how to use `Get-IAMContextKeysForPrincipalPolic -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -475 +475 @@ The following code example shows how to use `Get-IAMContextKeysForPrincipalPolic - * For API details, see [GetContextKeysForPrincipalPolicy](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [GetContextKeysForPrincipalPolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -482 +482 @@ The following code example shows how to use `Get-IAMCredentialReport`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -509 +509 @@ The following code example shows how to use `Get-IAMCredentialReport`. - * For API details, see [GetCredentialReport](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [GetCredentialReport](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -516 +516 @@ The following code example shows how to use `Get-IAMEntitiesForPolicy`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -534 +534 @@ The following code example shows how to use `Get-IAMEntitiesForPolicy`. - * For API details, see [ListEntitiesForPolicy](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [ListEntitiesForPolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -541 +541 @@ The following code example shows how to use `Get-IAMGroup`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -592 +592 @@ The following code example shows how to use `Get-IAMGroup`. - * For API details, see [GetGroup](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [GetGroup](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -599 +599 @@ The following code example shows how to use `Get-IAMGroupForUser`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -629 +629 @@ The following code example shows how to use `Get-IAMGroupForUser`. - * For API details, see [ListGroupsForUser](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [ListGroupsForUser](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -636 +636 @@ The following code example shows how to use `Get-IAMGroupList`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -666 +666 @@ The following code example shows how to use `Get-IAMGroupList`. - * For API details, see [ListGroups](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [ListGroups](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -673 +673 @@ The following code example shows how to use `Get-IAMGroupPolicy`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -703 +703 @@ The following code example shows how to use `Get-IAMGroupPolicy`. - * For API details, see [GetGroupPolicy](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [GetGroupPolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -710 +710 @@ The following code example shows how to use `Get-IAMGroupPolicyList`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -725 +725 @@ The following code example shows how to use `Get-IAMGroupPolicyList`. - * For API details, see [ListGroupPolicies](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [ListGroupPolicies](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -732 +732 @@ The following code example shows how to use `Get-IAMInstanceProfile`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -751 +751 @@ The following code example shows how to use `Get-IAMInstanceProfile`. - * For API details, see [GetInstanceProfile](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [GetInstanceProfile](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -758 +758 @@ The following code example shows how to use `Get-IAMInstanceProfileForRole`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -777 +777 @@ The following code example shows how to use `Get-IAMInstanceProfileForRole`. - * For API details, see [ListInstanceProfilesForRole](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [ListInstanceProfilesForRole](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -784 +784 @@ The following code example shows how to use `Get-IAMInstanceProfileList`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -803 +803 @@ The following code example shows how to use `Get-IAMInstanceProfileList`. - * For API details, see [ListInstanceProfiles](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [ListInstanceProfiles](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -810 +810 @@ The following code example shows how to use `Get-IAMLoginProfile`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -826 +826 @@ The following code example shows how to use `Get-IAMLoginProfile`. - * For API details, see [GetLoginProfile](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [GetLoginProfile](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -833 +833 @@ The following code example shows how to use `Get-IAMMFADevice`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -849 +849 @@ The following code example shows how to use `Get-IAMMFADevice`. - * For API details, see [ListMfaDevices](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. + * For API details, see [ListMfaDevices](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. @@ -856 +856 @@ The following code example shows how to use `Get-IAMOpenIDConnectProvider`. -**Tools for PowerShell V4** +**Tools for PowerShell V5** @@ -872 +872 @@ The following code example shows how to use `Get-IAMOpenIDConnectProvider`.