libZSservicesZSamazonka-iamZSamazonka-iam
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IAM.SetSecurityTokenServicePreferences

Description

Sets the specified version of the global endpoint token as the token version used for the Amazon Web Services account.

By default, Security Token Service (STS) is available as a global service, and all STS requests go to a single endpoint at https://sts.amazonaws.com. Amazon Web Services recommends using Regional STS endpoints to reduce latency, build in redundancy, and increase session token availability. For information about Regional endpoints for STS, see Security Token Service endpoints and quotas in the Amazon Web Services General Reference.

If you make an STS call to the global endpoint, the resulting session tokens might be valid in some Regions but not others. It depends on the version that is set in this operation. 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.

To view the current session token version, see the GlobalEndpointTokenVersion entry in the response of the GetAccountSummary operation.

Synopsis

Creating a Request

data SetSecurityTokenServicePreferences Source #

Constructors

SetSecurityTokenServicePreferences' 

Fields

Instances

Instances details
Eq SetSecurityTokenServicePreferences Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

Read SetSecurityTokenServicePreferences Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

Show SetSecurityTokenServicePreferences Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

Generic SetSecurityTokenServicePreferences Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

Associated Types

type Rep SetSecurityTokenServicePreferences :: Type -> Type #

NFData SetSecurityTokenServicePreferences Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

Hashable SetSecurityTokenServicePreferences Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

AWSRequest SetSecurityTokenServicePreferences Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

ToHeaders SetSecurityTokenServicePreferences Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

ToPath SetSecurityTokenServicePreferences Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

ToQuery SetSecurityTokenServicePreferences Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

type Rep SetSecurityTokenServicePreferences Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

type Rep SetSecurityTokenServicePreferences = D1 ('MetaData "SetSecurityTokenServicePreferences" "Amazonka.IAM.SetSecurityTokenServicePreferences" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "SetSecurityTokenServicePreferences'" 'PrefixI 'True) (S1 ('MetaSel ('Just "globalEndpointTokenVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 GlobalEndpointTokenVersion)))
type AWSResponse SetSecurityTokenServicePreferences Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

newSetSecurityTokenServicePreferences Source #

Create a value of SetSecurityTokenServicePreferences with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:globalEndpointTokenVersion:SetSecurityTokenServicePreferences', setSecurityTokenServicePreferences_globalEndpointTokenVersion - 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.

Request Lenses

setSecurityTokenServicePreferences_globalEndpointTokenVersion :: Lens' SetSecurityTokenServicePreferences GlobalEndpointTokenVersion Source #

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.

Destructuring the Response

data SetSecurityTokenServicePreferencesResponse Source #

Instances

Instances details
Eq SetSecurityTokenServicePreferencesResponse Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

Read SetSecurityTokenServicePreferencesResponse Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

Show SetSecurityTokenServicePreferencesResponse Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

Generic SetSecurityTokenServicePreferencesResponse Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

NFData SetSecurityTokenServicePreferencesResponse Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

type Rep SetSecurityTokenServicePreferencesResponse Source # 
Instance details

Defined in Amazonka.IAM.SetSecurityTokenServicePreferences

type Rep SetSecurityTokenServicePreferencesResponse = D1 ('MetaData "SetSecurityTokenServicePreferencesResponse" "Amazonka.IAM.SetSecurityTokenServicePreferences" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "SetSecurityTokenServicePreferencesResponse'" 'PrefixI 'False) (U1 :: Type -> Type))