This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-iam/include/aws/iam/model/SetSecurityTokenServicePreferencesRequest.h

114 lines
5.9 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iam/IAM_EXPORTS.h>
#include <aws/iam/IAMRequest.h>
#include <aws/iam/model/GlobalEndpointTokenVersion.h>
#include <utility>
namespace Aws
{
namespace IAM
{
namespace Model
{
/**
*/
class AWS_IAM_API SetSecurityTokenServicePreferencesRequest : public IAMRequest
{
public:
SetSecurityTokenServicePreferencesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "SetSecurityTokenServicePreferences"; }
Aws::String SerializePayload() const override;
protected:
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
public:
/**
* <p>The version of the global endpoint token. Version 1 tokens are valid only in
* AWS 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.</p> <p>For information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html">Activating
* and Deactivating STS in an AWS Region</a> in the <i>IAM User Guide</i>.</p>
*/
inline const GlobalEndpointTokenVersion& GetGlobalEndpointTokenVersion() const{ return m_globalEndpointTokenVersion; }
/**
* <p>The version of the global endpoint token. Version 1 tokens are valid only in
* AWS 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.</p> <p>For information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html">Activating
* and Deactivating STS in an AWS Region</a> in the <i>IAM User Guide</i>.</p>
*/
inline bool GlobalEndpointTokenVersionHasBeenSet() const { return m_globalEndpointTokenVersionHasBeenSet; }
/**
* <p>The version of the global endpoint token. Version 1 tokens are valid only in
* AWS 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.</p> <p>For information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html">Activating
* and Deactivating STS in an AWS Region</a> in the <i>IAM User Guide</i>.</p>
*/
inline void SetGlobalEndpointTokenVersion(const GlobalEndpointTokenVersion& value) { m_globalEndpointTokenVersionHasBeenSet = true; m_globalEndpointTokenVersion = value; }
/**
* <p>The version of the global endpoint token. Version 1 tokens are valid only in
* AWS 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.</p> <p>For information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html">Activating
* and Deactivating STS in an AWS Region</a> in the <i>IAM User Guide</i>.</p>
*/
inline void SetGlobalEndpointTokenVersion(GlobalEndpointTokenVersion&& value) { m_globalEndpointTokenVersionHasBeenSet = true; m_globalEndpointTokenVersion = std::move(value); }
/**
* <p>The version of the global endpoint token. Version 1 tokens are valid only in
* AWS 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.</p> <p>For information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html">Activating
* and Deactivating STS in an AWS Region</a> in the <i>IAM User Guide</i>.</p>
*/
inline SetSecurityTokenServicePreferencesRequest& WithGlobalEndpointTokenVersion(const GlobalEndpointTokenVersion& value) { SetGlobalEndpointTokenVersion(value); return *this;}
/**
* <p>The version of the global endpoint token. Version 1 tokens are valid only in
* AWS 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.</p> <p>For information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html">Activating
* and Deactivating STS in an AWS Region</a> in the <i>IAM User Guide</i>.</p>
*/
inline SetSecurityTokenServicePreferencesRequest& WithGlobalEndpointTokenVersion(GlobalEndpointTokenVersion&& value) { SetGlobalEndpointTokenVersion(std::move(value)); return *this;}
private:
GlobalEndpointTokenVersion m_globalEndpointTokenVersion;
bool m_globalEndpointTokenVersionHasBeenSet;
};
} // namespace Model
} // namespace IAM
} // namespace Aws