Sets the specified version of the global endpoint token as the token version used for the Amazon Web Services account.
See https://www.paws-r-sdk.com/docs/iam_set_security_token_service_preferences/ for full documentation.
iam_set_security_token_service_preferences(GlobalEndpointTokenVersion)
[required] The version of the global endpoint token. Version 1 tokens are valid only in Amazon Web Services Regions that are available by default. These tokens do not work in manually enabled Regions, such as Asia Pacific (Hong Kong). Version 2 tokens are valid in all Regions. However, version 2 tokens are longer and might affect systems where you temporarily store tokens.
For information, see Activating and deactivating STS in an Amazon Web Services Region in the IAM User Guide.