feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace CognitoIdentityProviderEndpoint
{
AWS_COGNITOIDENTITYPROVIDER_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace CognitoIdentityProviderEndpoint
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_COGNITOIDENTITYPROVIDER_API CognitoIdentityProviderErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,107 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
namespace CognitoIdentityProvider
{
enum class CognitoIdentityProviderErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
ALIAS_EXISTS= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
CODE_DELIVERY_FAILURE,
CODE_MISMATCH,
CONCURRENT_MODIFICATION,
DUPLICATE_PROVIDER,
ENABLE_SOFTWARE_TOKEN_M_F_A,
EXPIRED_CODE,
GROUP_EXISTS,
INTERNAL_ERROR,
INVALID_EMAIL_ROLE_ACCESS_POLICY,
INVALID_LAMBDA_RESPONSE,
INVALID_O_AUTH_FLOW,
INVALID_PARAMETER,
INVALID_PASSWORD,
INVALID_SMS_ROLE_ACCESS_POLICY,
INVALID_SMS_ROLE_TRUST_RELATIONSHIP,
INVALID_USER_POOL_CONFIGURATION,
LIMIT_EXCEEDED,
M_F_A_METHOD_NOT_FOUND,
NOT_AUTHORIZED,
PASSWORD_RESET_REQUIRED,
PRECONDITION_NOT_MET,
SCOPE_DOES_NOT_EXIST,
SOFTWARE_TOKEN_M_F_A_NOT_FOUND,
TOO_MANY_FAILED_ATTEMPTS,
TOO_MANY_REQUESTS,
UNEXPECTED_LAMBDA,
UNSUPPORTED_IDENTITY_PROVIDER,
UNSUPPORTED_USER_STATE,
USERNAME_EXISTS,
USER_IMPORT_IN_PROGRESS,
USER_LAMBDA_VALIDATION,
USER_NOT_CONFIRMED,
USER_NOT_FOUND,
USER_POOL_ADD_ON_NOT_ENABLED,
USER_POOL_TAGGING
};
class AWS_COGNITOIDENTITYPROVIDER_API CognitoIdentityProviderError : public Aws::Client::AWSError<CognitoIdentityProviderErrors>
{
public:
CognitoIdentityProviderError() {}
CognitoIdentityProviderError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<CognitoIdentityProviderErrors>(rhs) {}
CognitoIdentityProviderError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<CognitoIdentityProviderErrors>(rhs) {}
CognitoIdentityProviderError(const Aws::Client::AWSError<CognitoIdentityProviderErrors>& rhs) : Aws::Client::AWSError<CognitoIdentityProviderErrors>(rhs) {}
CognitoIdentityProviderError(Aws::Client::AWSError<CognitoIdentityProviderErrors>&& rhs) : Aws::Client::AWSError<CognitoIdentityProviderErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace CognitoIdentityProviderErrorMapper
{
AWS_COGNITOIDENTITYPROVIDER_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace CognitoIdentityProvider
{
class AWS_COGNITOIDENTITYPROVIDER_API CognitoIdentityProviderRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~CognitoIdentityProviderRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2016-04-18"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_COGNITOIDENTITYPROVIDER_EXPORTS
#define AWS_COGNITOIDENTITYPROVIDER_API __declspec(dllexport)
#else
#define AWS_COGNITOIDENTITYPROVIDER_API __declspec(dllimport)
#endif /* AWS_COGNITOIDENTITYPROVIDER_EXPORTS */
#else
#define AWS_COGNITOIDENTITYPROVIDER_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_COGNITOIDENTITYPROVIDER_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,90 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/cognito-idp/model/RecoveryOptionType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The data type for <code>AccountRecoverySetting</code>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AccountRecoverySettingType">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AccountRecoverySettingType
{
public:
AccountRecoverySettingType();
AccountRecoverySettingType(Aws::Utils::Json::JsonView jsonValue);
AccountRecoverySettingType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The list of <code>RecoveryOptionTypes</code>.</p>
*/
inline const Aws::Vector<RecoveryOptionType>& GetRecoveryMechanisms() const{ return m_recoveryMechanisms; }
/**
* <p>The list of <code>RecoveryOptionTypes</code>.</p>
*/
inline bool RecoveryMechanismsHasBeenSet() const { return m_recoveryMechanismsHasBeenSet; }
/**
* <p>The list of <code>RecoveryOptionTypes</code>.</p>
*/
inline void SetRecoveryMechanisms(const Aws::Vector<RecoveryOptionType>& value) { m_recoveryMechanismsHasBeenSet = true; m_recoveryMechanisms = value; }
/**
* <p>The list of <code>RecoveryOptionTypes</code>.</p>
*/
inline void SetRecoveryMechanisms(Aws::Vector<RecoveryOptionType>&& value) { m_recoveryMechanismsHasBeenSet = true; m_recoveryMechanisms = std::move(value); }
/**
* <p>The list of <code>RecoveryOptionTypes</code>.</p>
*/
inline AccountRecoverySettingType& WithRecoveryMechanisms(const Aws::Vector<RecoveryOptionType>& value) { SetRecoveryMechanisms(value); return *this;}
/**
* <p>The list of <code>RecoveryOptionTypes</code>.</p>
*/
inline AccountRecoverySettingType& WithRecoveryMechanisms(Aws::Vector<RecoveryOptionType>&& value) { SetRecoveryMechanisms(std::move(value)); return *this;}
/**
* <p>The list of <code>RecoveryOptionTypes</code>.</p>
*/
inline AccountRecoverySettingType& AddRecoveryMechanisms(const RecoveryOptionType& value) { m_recoveryMechanismsHasBeenSet = true; m_recoveryMechanisms.push_back(value); return *this; }
/**
* <p>The list of <code>RecoveryOptionTypes</code>.</p>
*/
inline AccountRecoverySettingType& AddRecoveryMechanisms(RecoveryOptionType&& value) { m_recoveryMechanismsHasBeenSet = true; m_recoveryMechanisms.push_back(std::move(value)); return *this; }
private:
Aws::Vector<RecoveryOptionType> m_recoveryMechanisms;
bool m_recoveryMechanismsHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/model/AccountTakeoverEventActionType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Account takeover action type.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AccountTakeoverActionType">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AccountTakeoverActionType
{
public:
AccountTakeoverActionType();
AccountTakeoverActionType(Aws::Utils::Json::JsonView jsonValue);
AccountTakeoverActionType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Flag specifying whether to send a notification.</p>
*/
inline bool GetNotify() const{ return m_notify; }
/**
* <p>Flag specifying whether to send a notification.</p>
*/
inline bool NotifyHasBeenSet() const { return m_notifyHasBeenSet; }
/**
* <p>Flag specifying whether to send a notification.</p>
*/
inline void SetNotify(bool value) { m_notifyHasBeenSet = true; m_notify = value; }
/**
* <p>Flag specifying whether to send a notification.</p>
*/
inline AccountTakeoverActionType& WithNotify(bool value) { SetNotify(value); return *this;}
/**
* <p>The event action.</p> <ul> <li> <p> <code>BLOCK</code> Choosing this action
* will block the request.</p> </li> <li> <p> <code>MFA_IF_CONFIGURED</code> Throw
* MFA challenge if user has configured it, else allow the request.</p> </li> <li>
* <p> <code>MFA_REQUIRED</code> Throw MFA challenge if user has configured it,
* else block the request.</p> </li> <li> <p> <code>NO_ACTION</code> Allow the user
* sign-in.</p> </li> </ul>
*/
inline const AccountTakeoverEventActionType& GetEventAction() const{ return m_eventAction; }
/**
* <p>The event action.</p> <ul> <li> <p> <code>BLOCK</code> Choosing this action
* will block the request.</p> </li> <li> <p> <code>MFA_IF_CONFIGURED</code> Throw
* MFA challenge if user has configured it, else allow the request.</p> </li> <li>
* <p> <code>MFA_REQUIRED</code> Throw MFA challenge if user has configured it,
* else block the request.</p> </li> <li> <p> <code>NO_ACTION</code> Allow the user
* sign-in.</p> </li> </ul>
*/
inline bool EventActionHasBeenSet() const { return m_eventActionHasBeenSet; }
/**
* <p>The event action.</p> <ul> <li> <p> <code>BLOCK</code> Choosing this action
* will block the request.</p> </li> <li> <p> <code>MFA_IF_CONFIGURED</code> Throw
* MFA challenge if user has configured it, else allow the request.</p> </li> <li>
* <p> <code>MFA_REQUIRED</code> Throw MFA challenge if user has configured it,
* else block the request.</p> </li> <li> <p> <code>NO_ACTION</code> Allow the user
* sign-in.</p> </li> </ul>
*/
inline void SetEventAction(const AccountTakeoverEventActionType& value) { m_eventActionHasBeenSet = true; m_eventAction = value; }
/**
* <p>The event action.</p> <ul> <li> <p> <code>BLOCK</code> Choosing this action
* will block the request.</p> </li> <li> <p> <code>MFA_IF_CONFIGURED</code> Throw
* MFA challenge if user has configured it, else allow the request.</p> </li> <li>
* <p> <code>MFA_REQUIRED</code> Throw MFA challenge if user has configured it,
* else block the request.</p> </li> <li> <p> <code>NO_ACTION</code> Allow the user
* sign-in.</p> </li> </ul>
*/
inline void SetEventAction(AccountTakeoverEventActionType&& value) { m_eventActionHasBeenSet = true; m_eventAction = std::move(value); }
/**
* <p>The event action.</p> <ul> <li> <p> <code>BLOCK</code> Choosing this action
* will block the request.</p> </li> <li> <p> <code>MFA_IF_CONFIGURED</code> Throw
* MFA challenge if user has configured it, else allow the request.</p> </li> <li>
* <p> <code>MFA_REQUIRED</code> Throw MFA challenge if user has configured it,
* else block the request.</p> </li> <li> <p> <code>NO_ACTION</code> Allow the user
* sign-in.</p> </li> </ul>
*/
inline AccountTakeoverActionType& WithEventAction(const AccountTakeoverEventActionType& value) { SetEventAction(value); return *this;}
/**
* <p>The event action.</p> <ul> <li> <p> <code>BLOCK</code> Choosing this action
* will block the request.</p> </li> <li> <p> <code>MFA_IF_CONFIGURED</code> Throw
* MFA challenge if user has configured it, else allow the request.</p> </li> <li>
* <p> <code>MFA_REQUIRED</code> Throw MFA challenge if user has configured it,
* else block the request.</p> </li> <li> <p> <code>NO_ACTION</code> Allow the user
* sign-in.</p> </li> </ul>
*/
inline AccountTakeoverActionType& WithEventAction(AccountTakeoverEventActionType&& value) { SetEventAction(std::move(value)); return *this;}
private:
bool m_notify;
bool m_notifyHasBeenSet;
AccountTakeoverEventActionType m_eventAction;
bool m_eventActionHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,146 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/model/AccountTakeoverActionType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Account takeover actions type.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AccountTakeoverActionsType">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AccountTakeoverActionsType
{
public:
AccountTakeoverActionsType();
AccountTakeoverActionsType(Aws::Utils::Json::JsonView jsonValue);
AccountTakeoverActionsType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Action to take for a low risk.</p>
*/
inline const AccountTakeoverActionType& GetLowAction() const{ return m_lowAction; }
/**
* <p>Action to take for a low risk.</p>
*/
inline bool LowActionHasBeenSet() const { return m_lowActionHasBeenSet; }
/**
* <p>Action to take for a low risk.</p>
*/
inline void SetLowAction(const AccountTakeoverActionType& value) { m_lowActionHasBeenSet = true; m_lowAction = value; }
/**
* <p>Action to take for a low risk.</p>
*/
inline void SetLowAction(AccountTakeoverActionType&& value) { m_lowActionHasBeenSet = true; m_lowAction = std::move(value); }
/**
* <p>Action to take for a low risk.</p>
*/
inline AccountTakeoverActionsType& WithLowAction(const AccountTakeoverActionType& value) { SetLowAction(value); return *this;}
/**
* <p>Action to take for a low risk.</p>
*/
inline AccountTakeoverActionsType& WithLowAction(AccountTakeoverActionType&& value) { SetLowAction(std::move(value)); return *this;}
/**
* <p>Action to take for a medium risk.</p>
*/
inline const AccountTakeoverActionType& GetMediumAction() const{ return m_mediumAction; }
/**
* <p>Action to take for a medium risk.</p>
*/
inline bool MediumActionHasBeenSet() const { return m_mediumActionHasBeenSet; }
/**
* <p>Action to take for a medium risk.</p>
*/
inline void SetMediumAction(const AccountTakeoverActionType& value) { m_mediumActionHasBeenSet = true; m_mediumAction = value; }
/**
* <p>Action to take for a medium risk.</p>
*/
inline void SetMediumAction(AccountTakeoverActionType&& value) { m_mediumActionHasBeenSet = true; m_mediumAction = std::move(value); }
/**
* <p>Action to take for a medium risk.</p>
*/
inline AccountTakeoverActionsType& WithMediumAction(const AccountTakeoverActionType& value) { SetMediumAction(value); return *this;}
/**
* <p>Action to take for a medium risk.</p>
*/
inline AccountTakeoverActionsType& WithMediumAction(AccountTakeoverActionType&& value) { SetMediumAction(std::move(value)); return *this;}
/**
* <p>Action to take for a high risk.</p>
*/
inline const AccountTakeoverActionType& GetHighAction() const{ return m_highAction; }
/**
* <p>Action to take for a high risk.</p>
*/
inline bool HighActionHasBeenSet() const { return m_highActionHasBeenSet; }
/**
* <p>Action to take for a high risk.</p>
*/
inline void SetHighAction(const AccountTakeoverActionType& value) { m_highActionHasBeenSet = true; m_highAction = value; }
/**
* <p>Action to take for a high risk.</p>
*/
inline void SetHighAction(AccountTakeoverActionType&& value) { m_highActionHasBeenSet = true; m_highAction = std::move(value); }
/**
* <p>Action to take for a high risk.</p>
*/
inline AccountTakeoverActionsType& WithHighAction(const AccountTakeoverActionType& value) { SetHighAction(value); return *this;}
/**
* <p>Action to take for a high risk.</p>
*/
inline AccountTakeoverActionsType& WithHighAction(AccountTakeoverActionType&& value) { SetHighAction(std::move(value)); return *this;}
private:
AccountTakeoverActionType m_lowAction;
bool m_lowActionHasBeenSet;
AccountTakeoverActionType m_mediumAction;
bool m_mediumActionHasBeenSet;
AccountTakeoverActionType m_highAction;
bool m_highActionHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
enum class AccountTakeoverEventActionType
{
NOT_SET,
BLOCK,
MFA_IF_CONFIGURED,
MFA_REQUIRED,
NO_ACTION
};
namespace AccountTakeoverEventActionTypeMapper
{
AWS_COGNITOIDENTITYPROVIDER_API AccountTakeoverEventActionType GetAccountTakeoverEventActionTypeForName(const Aws::String& name);
AWS_COGNITOIDENTITYPROVIDER_API Aws::String GetNameForAccountTakeoverEventActionType(AccountTakeoverEventActionType value);
} // namespace AccountTakeoverEventActionTypeMapper
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,114 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/model/NotifyConfigurationType.h>
#include <aws/cognito-idp/model/AccountTakeoverActionsType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Configuration for mitigation actions and notification for different levels of
* risk detected for a potential account takeover.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AccountTakeoverRiskConfigurationType">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AccountTakeoverRiskConfigurationType
{
public:
AccountTakeoverRiskConfigurationType();
AccountTakeoverRiskConfigurationType(Aws::Utils::Json::JsonView jsonValue);
AccountTakeoverRiskConfigurationType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The notify configuration used to construct email notifications.</p>
*/
inline const NotifyConfigurationType& GetNotifyConfiguration() const{ return m_notifyConfiguration; }
/**
* <p>The notify configuration used to construct email notifications.</p>
*/
inline bool NotifyConfigurationHasBeenSet() const { return m_notifyConfigurationHasBeenSet; }
/**
* <p>The notify configuration used to construct email notifications.</p>
*/
inline void SetNotifyConfiguration(const NotifyConfigurationType& value) { m_notifyConfigurationHasBeenSet = true; m_notifyConfiguration = value; }
/**
* <p>The notify configuration used to construct email notifications.</p>
*/
inline void SetNotifyConfiguration(NotifyConfigurationType&& value) { m_notifyConfigurationHasBeenSet = true; m_notifyConfiguration = std::move(value); }
/**
* <p>The notify configuration used to construct email notifications.</p>
*/
inline AccountTakeoverRiskConfigurationType& WithNotifyConfiguration(const NotifyConfigurationType& value) { SetNotifyConfiguration(value); return *this;}
/**
* <p>The notify configuration used to construct email notifications.</p>
*/
inline AccountTakeoverRiskConfigurationType& WithNotifyConfiguration(NotifyConfigurationType&& value) { SetNotifyConfiguration(std::move(value)); return *this;}
/**
* <p>Account takeover risk configuration actions</p>
*/
inline const AccountTakeoverActionsType& GetActions() const{ return m_actions; }
/**
* <p>Account takeover risk configuration actions</p>
*/
inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
/**
* <p>Account takeover risk configuration actions</p>
*/
inline void SetActions(const AccountTakeoverActionsType& value) { m_actionsHasBeenSet = true; m_actions = value; }
/**
* <p>Account takeover risk configuration actions</p>
*/
inline void SetActions(AccountTakeoverActionsType&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
/**
* <p>Account takeover risk configuration actions</p>
*/
inline AccountTakeoverRiskConfigurationType& WithActions(const AccountTakeoverActionsType& value) { SetActions(value); return *this;}
/**
* <p>Account takeover risk configuration actions</p>
*/
inline AccountTakeoverRiskConfigurationType& WithActions(AccountTakeoverActionsType&& value) { SetActions(std::move(value)); return *this;}
private:
NotifyConfigurationType m_notifyConfiguration;
bool m_notifyConfigurationHasBeenSet;
AccountTakeoverActionsType m_actions;
bool m_actionsHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,143 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/cognito-idp/model/SchemaAttributeType.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the request to add custom attributes.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AddCustomAttributesRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AddCustomAttributesRequest : public CognitoIdentityProviderRequest
{
public:
AddCustomAttributesRequest();
// 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 "AddCustomAttributes"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for the user pool where you want to add custom
* attributes.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool where you want to add custom
* attributes.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool where you want to add custom
* attributes.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool where you want to add custom
* attributes.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool where you want to add custom
* attributes.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool where you want to add custom
* attributes.</p>
*/
inline AddCustomAttributesRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool where you want to add custom
* attributes.</p>
*/
inline AddCustomAttributesRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool where you want to add custom
* attributes.</p>
*/
inline AddCustomAttributesRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>An array of custom attributes, such as Mutable and Name.</p>
*/
inline const Aws::Vector<SchemaAttributeType>& GetCustomAttributes() const{ return m_customAttributes; }
/**
* <p>An array of custom attributes, such as Mutable and Name.</p>
*/
inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
/**
* <p>An array of custom attributes, such as Mutable and Name.</p>
*/
inline void SetCustomAttributes(const Aws::Vector<SchemaAttributeType>& value) { m_customAttributesHasBeenSet = true; m_customAttributes = value; }
/**
* <p>An array of custom attributes, such as Mutable and Name.</p>
*/
inline void SetCustomAttributes(Aws::Vector<SchemaAttributeType>&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = std::move(value); }
/**
* <p>An array of custom attributes, such as Mutable and Name.</p>
*/
inline AddCustomAttributesRequest& WithCustomAttributes(const Aws::Vector<SchemaAttributeType>& value) { SetCustomAttributes(value); return *this;}
/**
* <p>An array of custom attributes, such as Mutable and Name.</p>
*/
inline AddCustomAttributesRequest& WithCustomAttributes(Aws::Vector<SchemaAttributeType>&& value) { SetCustomAttributes(std::move(value)); return *this;}
/**
* <p>An array of custom attributes, such as Mutable and Name.</p>
*/
inline AddCustomAttributesRequest& AddCustomAttributes(const SchemaAttributeType& value) { m_customAttributesHasBeenSet = true; m_customAttributes.push_back(value); return *this; }
/**
* <p>An array of custom attributes, such as Mutable and Name.</p>
*/
inline AddCustomAttributesRequest& AddCustomAttributes(SchemaAttributeType&& value) { m_customAttributesHasBeenSet = true; m_customAttributes.push_back(std::move(value)); return *this; }
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::Vector<SchemaAttributeType> m_customAttributes;
bool m_customAttributesHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the response from the server for the request to add custom
* attributes.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AddCustomAttributesResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AddCustomAttributesResult
{
public:
AddCustomAttributesResult();
AddCustomAttributesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AddCustomAttributesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,173 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminAddUserToGroupRequest : public CognitoIdentityProviderRequest
{
public:
AdminAddUserToGroupRequest();
// 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 "AdminAddUserToGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for the user pool.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline AdminAddUserToGroupRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline AdminAddUserToGroupRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline AdminAddUserToGroupRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The username for the user.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The username for the user.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The username for the user.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The username for the user.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The username for the user.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The username for the user.</p>
*/
inline AdminAddUserToGroupRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The username for the user.</p>
*/
inline AdminAddUserToGroupRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The username for the user.</p>
*/
inline AdminAddUserToGroupRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>The group name.</p>
*/
inline const Aws::String& GetGroupName() const{ return m_groupName; }
/**
* <p>The group name.</p>
*/
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
/**
* <p>The group name.</p>
*/
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
/**
* <p>The group name.</p>
*/
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
/**
* <p>The group name.</p>
*/
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
/**
* <p>The group name.</p>
*/
inline AdminAddUserToGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
/**
* <p>The group name.</p>
*/
inline AdminAddUserToGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
/**
* <p>The group name.</p>
*/
inline AdminAddUserToGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::String m_groupName;
bool m_groupNameHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,463 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the request to confirm user registration.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminConfirmSignUpRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminConfirmSignUpRequest : public CognitoIdentityProviderRequest
{
public:
AdminConfirmSignUpRequest();
// 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 "AdminConfirmSignUp"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for which you want to confirm user registration.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for which you want to confirm user registration.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for which you want to confirm user registration.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for which you want to confirm user registration.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for which you want to confirm user registration.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for which you want to confirm user registration.</p>
*/
inline AdminConfirmSignUpRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for which you want to confirm user registration.</p>
*/
inline AdminConfirmSignUpRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for which you want to confirm user registration.</p>
*/
inline AdminConfirmSignUpRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user name for which you want to confirm user registration.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name for which you want to confirm user registration.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name for which you want to confirm user registration.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name for which you want to confirm user registration.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name for which you want to confirm user registration.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name for which you want to confirm user registration.</p>
*/
inline AdminConfirmSignUpRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name for which you want to confirm user registration.</p>
*/
inline AdminConfirmSignUpRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name for which you want to confirm user registration.</p>
*/
inline AdminConfirmSignUpRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>If your user pool configuration
* includes triggers, the AdminConfirmSignUp API action invokes the AWS Lambda
* function that is specified for the <i>post confirmation</i> trigger. When Amazon
* Cognito invokes this function, it passes a JSON payload, which the function
* receives as input. In this payload, the <code>clientMetadata</code> attribute
* provides the data that you assigned to the ClientMetadata parameter in your
* AdminConfirmSignUp request. In your function code in AWS Lambda, you can process
* the ClientMetadata value to enhance your workflow for your specific needs.</p>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>If your user pool configuration
* includes triggers, the AdminConfirmSignUp API action invokes the AWS Lambda
* function that is specified for the <i>post confirmation</i> trigger. When Amazon
* Cognito invokes this function, it passes a JSON payload, which the function
* receives as input. In this payload, the <code>clientMetadata</code> attribute
* provides the data that you assigned to the ClientMetadata parameter in your
* AdminConfirmSignUp request. In your function code in AWS Lambda, you can process
* the ClientMetadata value to enhance your workflow for your specific needs.</p>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>If your user pool configuration
* includes triggers, the AdminConfirmSignUp API action invokes the AWS Lambda
* function that is specified for the <i>post confirmation</i> trigger. When Amazon
* Cognito invokes this function, it passes a JSON payload, which the function
* receives as input. In this payload, the <code>clientMetadata</code> attribute
* provides the data that you assigned to the ClientMetadata parameter in your
* AdminConfirmSignUp request. In your function code in AWS Lambda, you can process
* the ClientMetadata value to enhance your workflow for your specific needs.</p>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>If your user pool configuration
* includes triggers, the AdminConfirmSignUp API action invokes the AWS Lambda
* function that is specified for the <i>post confirmation</i> trigger. When Amazon
* Cognito invokes this function, it passes a JSON payload, which the function
* receives as input. In this payload, the <code>clientMetadata</code> attribute
* provides the data that you assigned to the ClientMetadata parameter in your
* AdminConfirmSignUp request. In your function code in AWS Lambda, you can process
* the ClientMetadata value to enhance your workflow for your specific needs.</p>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>If your user pool configuration
* includes triggers, the AdminConfirmSignUp API action invokes the AWS Lambda
* function that is specified for the <i>post confirmation</i> trigger. When Amazon
* Cognito invokes this function, it passes a JSON payload, which the function
* receives as input. In this payload, the <code>clientMetadata</code> attribute
* provides the data that you assigned to the ClientMetadata parameter in your
* AdminConfirmSignUp request. In your function code in AWS Lambda, you can process
* the ClientMetadata value to enhance your workflow for your specific needs.</p>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminConfirmSignUpRequest& WithClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetClientMetadata(value); return *this;}
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>If your user pool configuration
* includes triggers, the AdminConfirmSignUp API action invokes the AWS Lambda
* function that is specified for the <i>post confirmation</i> trigger. When Amazon
* Cognito invokes this function, it passes a JSON payload, which the function
* receives as input. In this payload, the <code>clientMetadata</code> attribute
* provides the data that you assigned to the ClientMetadata parameter in your
* AdminConfirmSignUp request. In your function code in AWS Lambda, you can process
* the ClientMetadata value to enhance your workflow for your specific needs.</p>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminConfirmSignUpRequest& WithClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetClientMetadata(std::move(value)); return *this;}
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>If your user pool configuration
* includes triggers, the AdminConfirmSignUp API action invokes the AWS Lambda
* function that is specified for the <i>post confirmation</i> trigger. When Amazon
* Cognito invokes this function, it passes a JSON payload, which the function
* receives as input. In this payload, the <code>clientMetadata</code> attribute
* provides the data that you assigned to the ClientMetadata parameter in your
* AdminConfirmSignUp request. In your function code in AWS Lambda, you can process
* the ClientMetadata value to enhance your workflow for your specific needs.</p>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminConfirmSignUpRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>If your user pool configuration
* includes triggers, the AdminConfirmSignUp API action invokes the AWS Lambda
* function that is specified for the <i>post confirmation</i> trigger. When Amazon
* Cognito invokes this function, it passes a JSON payload, which the function
* receives as input. In this payload, the <code>clientMetadata</code> attribute
* provides the data that you assigned to the ClientMetadata parameter in your
* AdminConfirmSignUp request. In your function code in AWS Lambda, you can process
* the ClientMetadata value to enhance your workflow for your specific needs.</p>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminConfirmSignUpRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>If your user pool configuration
* includes triggers, the AdminConfirmSignUp API action invokes the AWS Lambda
* function that is specified for the <i>post confirmation</i> trigger. When Amazon
* Cognito invokes this function, it passes a JSON payload, which the function
* receives as input. In this payload, the <code>clientMetadata</code> attribute
* provides the data that you assigned to the ClientMetadata parameter in your
* AdminConfirmSignUp request. In your function code in AWS Lambda, you can process
* the ClientMetadata value to enhance your workflow for your specific needs.</p>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminConfirmSignUpRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>If your user pool configuration
* includes triggers, the AdminConfirmSignUp API action invokes the AWS Lambda
* function that is specified for the <i>post confirmation</i> trigger. When Amazon
* Cognito invokes this function, it passes a JSON payload, which the function
* receives as input. In this payload, the <code>clientMetadata</code> attribute
* provides the data that you assigned to the ClientMetadata parameter in your
* AdminConfirmSignUp request. In your function code in AWS Lambda, you can process
* the ClientMetadata value to enhance your workflow for your specific needs.</p>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminConfirmSignUpRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>If your user pool configuration
* includes triggers, the AdminConfirmSignUp API action invokes the AWS Lambda
* function that is specified for the <i>post confirmation</i> trigger. When Amazon
* Cognito invokes this function, it passes a JSON payload, which the function
* receives as input. In this payload, the <code>clientMetadata</code> attribute
* provides the data that you assigned to the ClientMetadata parameter in your
* AdminConfirmSignUp request. In your function code in AWS Lambda, you can process
* the ClientMetadata value to enhance your workflow for your specific needs.</p>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminConfirmSignUpRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>If your user pool configuration
* includes triggers, the AdminConfirmSignUp API action invokes the AWS Lambda
* function that is specified for the <i>post confirmation</i> trigger. When Amazon
* Cognito invokes this function, it passes a JSON payload, which the function
* receives as input. In this payload, the <code>clientMetadata</code> attribute
* provides the data that you assigned to the ClientMetadata parameter in your
* AdminConfirmSignUp request. In your function code in AWS Lambda, you can process
* the ClientMetadata value to enhance your workflow for your specific needs.</p>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminConfirmSignUpRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>If your user pool configuration
* includes triggers, the AdminConfirmSignUp API action invokes the AWS Lambda
* function that is specified for the <i>post confirmation</i> trigger. When Amazon
* Cognito invokes this function, it passes a JSON payload, which the function
* receives as input. In this payload, the <code>clientMetadata</code> attribute
* provides the data that you assigned to the ClientMetadata parameter in your
* AdminConfirmSignUp request. In your function code in AWS Lambda, you can process
* the ClientMetadata value to enhance your workflow for your specific needs.</p>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminConfirmSignUpRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_clientMetadata;
bool m_clientMetadataHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the response from the server for the request to confirm
* registration.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminConfirmSignUpResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminConfirmSignUpResult
{
public:
AdminConfirmSignUpResult();
AdminConfirmSignUpResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminConfirmSignUpResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,181 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/model/MessageTemplateType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The configuration for creating a new user profile.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminCreateUserConfigType">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminCreateUserConfigType
{
public:
AdminCreateUserConfigType();
AdminCreateUserConfigType(Aws::Utils::Json::JsonView jsonValue);
AdminCreateUserConfigType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Set to <code>True</code> if only the administrator is allowed to create user
* profiles. Set to <code>False</code> if users can sign themselves up via an
* app.</p>
*/
inline bool GetAllowAdminCreateUserOnly() const{ return m_allowAdminCreateUserOnly; }
/**
* <p>Set to <code>True</code> if only the administrator is allowed to create user
* profiles. Set to <code>False</code> if users can sign themselves up via an
* app.</p>
*/
inline bool AllowAdminCreateUserOnlyHasBeenSet() const { return m_allowAdminCreateUserOnlyHasBeenSet; }
/**
* <p>Set to <code>True</code> if only the administrator is allowed to create user
* profiles. Set to <code>False</code> if users can sign themselves up via an
* app.</p>
*/
inline void SetAllowAdminCreateUserOnly(bool value) { m_allowAdminCreateUserOnlyHasBeenSet = true; m_allowAdminCreateUserOnly = value; }
/**
* <p>Set to <code>True</code> if only the administrator is allowed to create user
* profiles. Set to <code>False</code> if users can sign themselves up via an
* app.</p>
*/
inline AdminCreateUserConfigType& WithAllowAdminCreateUserOnly(bool value) { SetAllowAdminCreateUserOnly(value); return *this;}
/**
* <p>The user account expiration limit, in days, after which the account is no
* longer usable. To reset the account after that time limit, you must call
* <code>AdminCreateUser</code> again, specifying <code>"RESEND"</code> for the
* <code>MessageAction</code> parameter. The default value for this parameter is 7.
* </p> <p>If you set a value for <code>TemporaryPasswordValidityDays</code>
* in <code>PasswordPolicy</code>, that value will be used and
* <code>UnusedAccountValidityDays</code> will be deprecated for that user pool.
* </p>
*/
inline int GetUnusedAccountValidityDays() const{ return m_unusedAccountValidityDays; }
/**
* <p>The user account expiration limit, in days, after which the account is no
* longer usable. To reset the account after that time limit, you must call
* <code>AdminCreateUser</code> again, specifying <code>"RESEND"</code> for the
* <code>MessageAction</code> parameter. The default value for this parameter is 7.
* </p> <p>If you set a value for <code>TemporaryPasswordValidityDays</code>
* in <code>PasswordPolicy</code>, that value will be used and
* <code>UnusedAccountValidityDays</code> will be deprecated for that user pool.
* </p>
*/
inline bool UnusedAccountValidityDaysHasBeenSet() const { return m_unusedAccountValidityDaysHasBeenSet; }
/**
* <p>The user account expiration limit, in days, after which the account is no
* longer usable. To reset the account after that time limit, you must call
* <code>AdminCreateUser</code> again, specifying <code>"RESEND"</code> for the
* <code>MessageAction</code> parameter. The default value for this parameter is 7.
* </p> <p>If you set a value for <code>TemporaryPasswordValidityDays</code>
* in <code>PasswordPolicy</code>, that value will be used and
* <code>UnusedAccountValidityDays</code> will be deprecated for that user pool.
* </p>
*/
inline void SetUnusedAccountValidityDays(int value) { m_unusedAccountValidityDaysHasBeenSet = true; m_unusedAccountValidityDays = value; }
/**
* <p>The user account expiration limit, in days, after which the account is no
* longer usable. To reset the account after that time limit, you must call
* <code>AdminCreateUser</code> again, specifying <code>"RESEND"</code> for the
* <code>MessageAction</code> parameter. The default value for this parameter is 7.
* </p> <p>If you set a value for <code>TemporaryPasswordValidityDays</code>
* in <code>PasswordPolicy</code>, that value will be used and
* <code>UnusedAccountValidityDays</code> will be deprecated for that user pool.
* </p>
*/
inline AdminCreateUserConfigType& WithUnusedAccountValidityDays(int value) { SetUnusedAccountValidityDays(value); return *this;}
/**
* <p>The message template to be used for the welcome message to new users.</p>
* <p>See also <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-customizations.html#cognito-user-pool-settings-user-invitation-message-customization">Customizing
* User Invitation Messages</a>.</p>
*/
inline const MessageTemplateType& GetInviteMessageTemplate() const{ return m_inviteMessageTemplate; }
/**
* <p>The message template to be used for the welcome message to new users.</p>
* <p>See also <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-customizations.html#cognito-user-pool-settings-user-invitation-message-customization">Customizing
* User Invitation Messages</a>.</p>
*/
inline bool InviteMessageTemplateHasBeenSet() const { return m_inviteMessageTemplateHasBeenSet; }
/**
* <p>The message template to be used for the welcome message to new users.</p>
* <p>See also <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-customizations.html#cognito-user-pool-settings-user-invitation-message-customization">Customizing
* User Invitation Messages</a>.</p>
*/
inline void SetInviteMessageTemplate(const MessageTemplateType& value) { m_inviteMessageTemplateHasBeenSet = true; m_inviteMessageTemplate = value; }
/**
* <p>The message template to be used for the welcome message to new users.</p>
* <p>See also <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-customizations.html#cognito-user-pool-settings-user-invitation-message-customization">Customizing
* User Invitation Messages</a>.</p>
*/
inline void SetInviteMessageTemplate(MessageTemplateType&& value) { m_inviteMessageTemplateHasBeenSet = true; m_inviteMessageTemplate = std::move(value); }
/**
* <p>The message template to be used for the welcome message to new users.</p>
* <p>See also <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-customizations.html#cognito-user-pool-settings-user-invitation-message-customization">Customizing
* User Invitation Messages</a>.</p>
*/
inline AdminCreateUserConfigType& WithInviteMessageTemplate(const MessageTemplateType& value) { SetInviteMessageTemplate(value); return *this;}
/**
* <p>The message template to be used for the welcome message to new users.</p>
* <p>See also <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-customizations.html#cognito-user-pool-settings-user-invitation-message-customization">Customizing
* User Invitation Messages</a>.</p>
*/
inline AdminCreateUserConfigType& WithInviteMessageTemplate(MessageTemplateType&& value) { SetInviteMessageTemplate(std::move(value)); return *this;}
private:
bool m_allowAdminCreateUserOnly;
bool m_allowAdminCreateUserOnlyHasBeenSet;
int m_unusedAccountValidityDays;
bool m_unusedAccountValidityDaysHasBeenSet;
MessageTemplateType m_inviteMessageTemplate;
bool m_inviteMessageTemplateHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/model/UserType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the response from the server to the request to create the
* user.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminCreateUserResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminCreateUserResult
{
public:
AdminCreateUserResult();
AdminCreateUserResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminCreateUserResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The newly created user.</p>
*/
inline const UserType& GetUser() const{ return m_user; }
/**
* <p>The newly created user.</p>
*/
inline void SetUser(const UserType& value) { m_user = value; }
/**
* <p>The newly created user.</p>
*/
inline void SetUser(UserType&& value) { m_user = std::move(value); }
/**
* <p>The newly created user.</p>
*/
inline AdminCreateUserResult& WithUser(const UserType& value) { SetUser(value); return *this;}
/**
* <p>The newly created user.</p>
*/
inline AdminCreateUserResult& WithUser(UserType&& value) { SetUser(std::move(value)); return *this;}
private:
UserType m_user;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,209 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the request to delete user attributes as an
* administrator.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserAttributesRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminDeleteUserAttributesRequest : public CognitoIdentityProviderRequest
{
public:
AdminDeleteUserAttributesRequest();
// 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 "AdminDeleteUserAttributes"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for the user pool where you want to delete user
* attributes.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool where you want to delete user
* attributes.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool where you want to delete user
* attributes.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool where you want to delete user
* attributes.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool where you want to delete user
* attributes.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool where you want to delete user
* attributes.</p>
*/
inline AdminDeleteUserAttributesRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool where you want to delete user
* attributes.</p>
*/
inline AdminDeleteUserAttributesRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool where you want to delete user
* attributes.</p>
*/
inline AdminDeleteUserAttributesRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user name of the user from which you would like to delete attributes.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name of the user from which you would like to delete attributes.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name of the user from which you would like to delete attributes.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name of the user from which you would like to delete attributes.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name of the user from which you would like to delete attributes.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name of the user from which you would like to delete attributes.</p>
*/
inline AdminDeleteUserAttributesRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name of the user from which you would like to delete attributes.</p>
*/
inline AdminDeleteUserAttributesRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name of the user from which you would like to delete attributes.</p>
*/
inline AdminDeleteUserAttributesRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>An array of strings representing the user attribute names you wish to
* delete.</p> <p>For custom attributes, you must prepend the <code>custom:</code>
* prefix to the attribute name.</p>
*/
inline const Aws::Vector<Aws::String>& GetUserAttributeNames() const{ return m_userAttributeNames; }
/**
* <p>An array of strings representing the user attribute names you wish to
* delete.</p> <p>For custom attributes, you must prepend the <code>custom:</code>
* prefix to the attribute name.</p>
*/
inline bool UserAttributeNamesHasBeenSet() const { return m_userAttributeNamesHasBeenSet; }
/**
* <p>An array of strings representing the user attribute names you wish to
* delete.</p> <p>For custom attributes, you must prepend the <code>custom:</code>
* prefix to the attribute name.</p>
*/
inline void SetUserAttributeNames(const Aws::Vector<Aws::String>& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames = value; }
/**
* <p>An array of strings representing the user attribute names you wish to
* delete.</p> <p>For custom attributes, you must prepend the <code>custom:</code>
* prefix to the attribute name.</p>
*/
inline void SetUserAttributeNames(Aws::Vector<Aws::String>&& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames = std::move(value); }
/**
* <p>An array of strings representing the user attribute names you wish to
* delete.</p> <p>For custom attributes, you must prepend the <code>custom:</code>
* prefix to the attribute name.</p>
*/
inline AdminDeleteUserAttributesRequest& WithUserAttributeNames(const Aws::Vector<Aws::String>& value) { SetUserAttributeNames(value); return *this;}
/**
* <p>An array of strings representing the user attribute names you wish to
* delete.</p> <p>For custom attributes, you must prepend the <code>custom:</code>
* prefix to the attribute name.</p>
*/
inline AdminDeleteUserAttributesRequest& WithUserAttributeNames(Aws::Vector<Aws::String>&& value) { SetUserAttributeNames(std::move(value)); return *this;}
/**
* <p>An array of strings representing the user attribute names you wish to
* delete.</p> <p>For custom attributes, you must prepend the <code>custom:</code>
* prefix to the attribute name.</p>
*/
inline AdminDeleteUserAttributesRequest& AddUserAttributeNames(const Aws::String& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames.push_back(value); return *this; }
/**
* <p>An array of strings representing the user attribute names you wish to
* delete.</p> <p>For custom attributes, you must prepend the <code>custom:</code>
* prefix to the attribute name.</p>
*/
inline AdminDeleteUserAttributesRequest& AddUserAttributeNames(Aws::String&& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames.push_back(std::move(value)); return *this; }
/**
* <p>An array of strings representing the user attribute names you wish to
* delete.</p> <p>For custom attributes, you must prepend the <code>custom:</code>
* prefix to the attribute name.</p>
*/
inline AdminDeleteUserAttributesRequest& AddUserAttributeNames(const char* value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames.push_back(value); return *this; }
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::Vector<Aws::String> m_userAttributeNames;
bool m_userAttributeNamesHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the response received from the server for a request to delete user
* attributes.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserAttributesResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminDeleteUserAttributesResult
{
public:
AdminDeleteUserAttributesResult();
AdminDeleteUserAttributesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminDeleteUserAttributesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the request to delete a user as an administrator.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminDeleteUserRequest : public CognitoIdentityProviderRequest
{
public:
AdminDeleteUserRequest();
// 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 "AdminDeleteUser"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for the user pool where you want to delete the user.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool where you want to delete the user.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool where you want to delete the user.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool where you want to delete the user.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool where you want to delete the user.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool where you want to delete the user.</p>
*/
inline AdminDeleteUserRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool where you want to delete the user.</p>
*/
inline AdminDeleteUserRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool where you want to delete the user.</p>
*/
inline AdminDeleteUserRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user name of the user you wish to delete.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name of the user you wish to delete.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name of the user you wish to delete.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name of the user you wish to delete.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name of the user you wish to delete.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name of the user you wish to delete.</p>
*/
inline AdminDeleteUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name of the user you wish to delete.</p>
*/
inline AdminDeleteUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name of the user you wish to delete.</p>
*/
inline AdminDeleteUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,120 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cognito-idp/model/ProviderUserIdentifierType.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminDisableProviderForUserRequest : public CognitoIdentityProviderRequest
{
public:
AdminDisableProviderForUserRequest();
// 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 "AdminDisableProviderForUser"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for the user pool.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline AdminDisableProviderForUserRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline AdminDisableProviderForUserRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline AdminDisableProviderForUserRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user to be disabled.</p>
*/
inline const ProviderUserIdentifierType& GetUser() const{ return m_user; }
/**
* <p>The user to be disabled.</p>
*/
inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
/**
* <p>The user to be disabled.</p>
*/
inline void SetUser(const ProviderUserIdentifierType& value) { m_userHasBeenSet = true; m_user = value; }
/**
* <p>The user to be disabled.</p>
*/
inline void SetUser(ProviderUserIdentifierType&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
/**
* <p>The user to be disabled.</p>
*/
inline AdminDisableProviderForUserRequest& WithUser(const ProviderUserIdentifierType& value) { SetUser(value); return *this;}
/**
* <p>The user to be disabled.</p>
*/
inline AdminDisableProviderForUserRequest& WithUser(ProviderUserIdentifierType&& value) { SetUser(std::move(value)); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
ProviderUserIdentifierType m_user;
bool m_userHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
class AWS_COGNITOIDENTITYPROVIDER_API AdminDisableProviderForUserResult
{
public:
AdminDisableProviderForUserResult();
AdminDisableProviderForUserResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminDisableProviderForUserResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the request to disable any user as an administrator.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableUserRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminDisableUserRequest : public CognitoIdentityProviderRequest
{
public:
AdminDisableUserRequest();
// 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 "AdminDisableUser"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for the user pool where you want to disable the user.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool where you want to disable the user.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool where you want to disable the user.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool where you want to disable the user.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool where you want to disable the user.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool where you want to disable the user.</p>
*/
inline AdminDisableUserRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool where you want to disable the user.</p>
*/
inline AdminDisableUserRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool where you want to disable the user.</p>
*/
inline AdminDisableUserRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user name of the user you wish to disable.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name of the user you wish to disable.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name of the user you wish to disable.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name of the user you wish to disable.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name of the user you wish to disable.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name of the user you wish to disable.</p>
*/
inline AdminDisableUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name of the user you wish to disable.</p>
*/
inline AdminDisableUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name of the user you wish to disable.</p>
*/
inline AdminDisableUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the response received from the server to disable the user as an
* administrator.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableUserResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminDisableUserResult
{
public:
AdminDisableUserResult();
AdminDisableUserResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminDisableUserResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the request that enables the user as an
* administrator.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminEnableUserRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminEnableUserRequest : public CognitoIdentityProviderRequest
{
public:
AdminEnableUserRequest();
// 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 "AdminEnableUser"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for the user pool where you want to enable the user.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool where you want to enable the user.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool where you want to enable the user.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool where you want to enable the user.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool where you want to enable the user.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool where you want to enable the user.</p>
*/
inline AdminEnableUserRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool where you want to enable the user.</p>
*/
inline AdminEnableUserRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool where you want to enable the user.</p>
*/
inline AdminEnableUserRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user name of the user you wish to enable.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name of the user you wish to enable.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name of the user you wish to enable.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name of the user you wish to enable.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name of the user you wish to enable.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name of the user you wish to enable.</p>
*/
inline AdminEnableUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name of the user you wish to enable.</p>
*/
inline AdminEnableUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name of the user you wish to enable.</p>
*/
inline AdminEnableUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the response from the server for the request to enable a user as
* an administrator.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminEnableUserResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminEnableUserResult
{
public:
AdminEnableUserResult();
AdminEnableUserResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminEnableUserResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Sends the forgot device request, as an administrator.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminForgetDeviceRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminForgetDeviceRequest : public CognitoIdentityProviderRequest
{
public:
AdminForgetDeviceRequest();
// 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 "AdminForgetDevice"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID.</p>
*/
inline AdminForgetDeviceRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminForgetDeviceRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminForgetDeviceRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user name.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name.</p>
*/
inline AdminForgetDeviceRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name.</p>
*/
inline AdminForgetDeviceRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name.</p>
*/
inline AdminForgetDeviceRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>The device key.</p>
*/
inline const Aws::String& GetDeviceKey() const{ return m_deviceKey; }
/**
* <p>The device key.</p>
*/
inline bool DeviceKeyHasBeenSet() const { return m_deviceKeyHasBeenSet; }
/**
* <p>The device key.</p>
*/
inline void SetDeviceKey(const Aws::String& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = value; }
/**
* <p>The device key.</p>
*/
inline void SetDeviceKey(Aws::String&& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = std::move(value); }
/**
* <p>The device key.</p>
*/
inline void SetDeviceKey(const char* value) { m_deviceKeyHasBeenSet = true; m_deviceKey.assign(value); }
/**
* <p>The device key.</p>
*/
inline AdminForgetDeviceRequest& WithDeviceKey(const Aws::String& value) { SetDeviceKey(value); return *this;}
/**
* <p>The device key.</p>
*/
inline AdminForgetDeviceRequest& WithDeviceKey(Aws::String&& value) { SetDeviceKey(std::move(value)); return *this;}
/**
* <p>The device key.</p>
*/
inline AdminForgetDeviceRequest& WithDeviceKey(const char* value) { SetDeviceKey(value); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::String m_deviceKey;
bool m_deviceKeyHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the request to get the device, as an administrator.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetDeviceRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminGetDeviceRequest : public CognitoIdentityProviderRequest
{
public:
AdminGetDeviceRequest();
// 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 "AdminGetDevice"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The device key.</p>
*/
inline const Aws::String& GetDeviceKey() const{ return m_deviceKey; }
/**
* <p>The device key.</p>
*/
inline bool DeviceKeyHasBeenSet() const { return m_deviceKeyHasBeenSet; }
/**
* <p>The device key.</p>
*/
inline void SetDeviceKey(const Aws::String& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = value; }
/**
* <p>The device key.</p>
*/
inline void SetDeviceKey(Aws::String&& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = std::move(value); }
/**
* <p>The device key.</p>
*/
inline void SetDeviceKey(const char* value) { m_deviceKeyHasBeenSet = true; m_deviceKey.assign(value); }
/**
* <p>The device key.</p>
*/
inline AdminGetDeviceRequest& WithDeviceKey(const Aws::String& value) { SetDeviceKey(value); return *this;}
/**
* <p>The device key.</p>
*/
inline AdminGetDeviceRequest& WithDeviceKey(Aws::String&& value) { SetDeviceKey(std::move(value)); return *this;}
/**
* <p>The device key.</p>
*/
inline AdminGetDeviceRequest& WithDeviceKey(const char* value) { SetDeviceKey(value); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID.</p>
*/
inline AdminGetDeviceRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminGetDeviceRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminGetDeviceRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user name.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name.</p>
*/
inline AdminGetDeviceRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name.</p>
*/
inline AdminGetDeviceRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name.</p>
*/
inline AdminGetDeviceRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
private:
Aws::String m_deviceKey;
bool m_deviceKeyHasBeenSet;
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/model/DeviceType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Gets the device response, as an administrator.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetDeviceResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminGetDeviceResult
{
public:
AdminGetDeviceResult();
AdminGetDeviceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminGetDeviceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The device.</p>
*/
inline const DeviceType& GetDevice() const{ return m_device; }
/**
* <p>The device.</p>
*/
inline void SetDevice(const DeviceType& value) { m_device = value; }
/**
* <p>The device.</p>
*/
inline void SetDevice(DeviceType&& value) { m_device = std::move(value); }
/**
* <p>The device.</p>
*/
inline AdminGetDeviceResult& WithDevice(const DeviceType& value) { SetDevice(value); return *this;}
/**
* <p>The device.</p>
*/
inline AdminGetDeviceResult& WithDevice(DeviceType&& value) { SetDevice(std::move(value)); return *this;}
private:
DeviceType m_device;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the request to get the specified user as an
* administrator.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetUserRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminGetUserRequest : public CognitoIdentityProviderRequest
{
public:
AdminGetUserRequest();
// 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 "AdminGetUser"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for the user pool where you want to get information about
* the user.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool where you want to get information about
* the user.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool where you want to get information about
* the user.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool where you want to get information about
* the user.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool where you want to get information about
* the user.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool where you want to get information about
* the user.</p>
*/
inline AdminGetUserRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool where you want to get information about
* the user.</p>
*/
inline AdminGetUserRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool where you want to get information about
* the user.</p>
*/
inline AdminGetUserRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user name of the user you wish to retrieve.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name of the user you wish to retrieve.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name of the user you wish to retrieve.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name of the user you wish to retrieve.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name of the user you wish to retrieve.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name of the user you wish to retrieve.</p>
*/
inline AdminGetUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name of the user you wish to retrieve.</p>
*/
inline AdminGetUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name of the user you wish to retrieve.</p>
*/
inline AdminGetUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,421 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <aws/cognito-idp/model/UserStatusType.h>
#include <aws/cognito-idp/model/AttributeType.h>
#include <aws/cognito-idp/model/MFAOptionType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the response from the server from the request to get the specified
* user as an administrator.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetUserResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminGetUserResult
{
public:
AdminGetUserResult();
AdminGetUserResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminGetUserResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The user name of the user about whom you are receiving information.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name of the user about whom you are receiving information.</p>
*/
inline void SetUsername(const Aws::String& value) { m_username = value; }
/**
* <p>The user name of the user about whom you are receiving information.</p>
*/
inline void SetUsername(Aws::String&& value) { m_username = std::move(value); }
/**
* <p>The user name of the user about whom you are receiving information.</p>
*/
inline void SetUsername(const char* value) { m_username.assign(value); }
/**
* <p>The user name of the user about whom you are receiving information.</p>
*/
inline AdminGetUserResult& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name of the user about whom you are receiving information.</p>
*/
inline AdminGetUserResult& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name of the user about whom you are receiving information.</p>
*/
inline AdminGetUserResult& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>An array of name-value pairs representing user attributes.</p>
*/
inline const Aws::Vector<AttributeType>& GetUserAttributes() const{ return m_userAttributes; }
/**
* <p>An array of name-value pairs representing user attributes.</p>
*/
inline void SetUserAttributes(const Aws::Vector<AttributeType>& value) { m_userAttributes = value; }
/**
* <p>An array of name-value pairs representing user attributes.</p>
*/
inline void SetUserAttributes(Aws::Vector<AttributeType>&& value) { m_userAttributes = std::move(value); }
/**
* <p>An array of name-value pairs representing user attributes.</p>
*/
inline AdminGetUserResult& WithUserAttributes(const Aws::Vector<AttributeType>& value) { SetUserAttributes(value); return *this;}
/**
* <p>An array of name-value pairs representing user attributes.</p>
*/
inline AdminGetUserResult& WithUserAttributes(Aws::Vector<AttributeType>&& value) { SetUserAttributes(std::move(value)); return *this;}
/**
* <p>An array of name-value pairs representing user attributes.</p>
*/
inline AdminGetUserResult& AddUserAttributes(const AttributeType& value) { m_userAttributes.push_back(value); return *this; }
/**
* <p>An array of name-value pairs representing user attributes.</p>
*/
inline AdminGetUserResult& AddUserAttributes(AttributeType&& value) { m_userAttributes.push_back(std::move(value)); return *this; }
/**
* <p>The date the user was created.</p>
*/
inline const Aws::Utils::DateTime& GetUserCreateDate() const{ return m_userCreateDate; }
/**
* <p>The date the user was created.</p>
*/
inline void SetUserCreateDate(const Aws::Utils::DateTime& value) { m_userCreateDate = value; }
/**
* <p>The date the user was created.</p>
*/
inline void SetUserCreateDate(Aws::Utils::DateTime&& value) { m_userCreateDate = std::move(value); }
/**
* <p>The date the user was created.</p>
*/
inline AdminGetUserResult& WithUserCreateDate(const Aws::Utils::DateTime& value) { SetUserCreateDate(value); return *this;}
/**
* <p>The date the user was created.</p>
*/
inline AdminGetUserResult& WithUserCreateDate(Aws::Utils::DateTime&& value) { SetUserCreateDate(std::move(value)); return *this;}
/**
* <p>The date the user was last modified.</p>
*/
inline const Aws::Utils::DateTime& GetUserLastModifiedDate() const{ return m_userLastModifiedDate; }
/**
* <p>The date the user was last modified.</p>
*/
inline void SetUserLastModifiedDate(const Aws::Utils::DateTime& value) { m_userLastModifiedDate = value; }
/**
* <p>The date the user was last modified.</p>
*/
inline void SetUserLastModifiedDate(Aws::Utils::DateTime&& value) { m_userLastModifiedDate = std::move(value); }
/**
* <p>The date the user was last modified.</p>
*/
inline AdminGetUserResult& WithUserLastModifiedDate(const Aws::Utils::DateTime& value) { SetUserLastModifiedDate(value); return *this;}
/**
* <p>The date the user was last modified.</p>
*/
inline AdminGetUserResult& WithUserLastModifiedDate(Aws::Utils::DateTime&& value) { SetUserLastModifiedDate(std::move(value)); return *this;}
/**
* <p>Indicates that the status is enabled.</p>
*/
inline bool GetEnabled() const{ return m_enabled; }
/**
* <p>Indicates that the status is enabled.</p>
*/
inline void SetEnabled(bool value) { m_enabled = value; }
/**
* <p>Indicates that the status is enabled.</p>
*/
inline AdminGetUserResult& WithEnabled(bool value) { SetEnabled(value); return *this;}
/**
* <p>The user status. Can be one of the following:</p> <ul> <li> <p>UNCONFIRMED -
* User has been created but not confirmed.</p> </li> <li> <p>CONFIRMED - User has
* been confirmed.</p> </li> <li> <p>ARCHIVED - User is no longer active.</p> </li>
* <li> <p>COMPROMISED - User is disabled due to a potential security threat.</p>
* </li> <li> <p>UNKNOWN - User status is not known.</p> </li> <li>
* <p>RESET_REQUIRED - User is confirmed, but the user must request a code and
* reset his or her password before he or she can sign in.</p> </li> <li>
* <p>FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using
* a temporary password, but on first sign-in, the user must change his or her
* password to a new value before doing anything else. </p> </li> </ul>
*/
inline const UserStatusType& GetUserStatus() const{ return m_userStatus; }
/**
* <p>The user status. Can be one of the following:</p> <ul> <li> <p>UNCONFIRMED -
* User has been created but not confirmed.</p> </li> <li> <p>CONFIRMED - User has
* been confirmed.</p> </li> <li> <p>ARCHIVED - User is no longer active.</p> </li>
* <li> <p>COMPROMISED - User is disabled due to a potential security threat.</p>
* </li> <li> <p>UNKNOWN - User status is not known.</p> </li> <li>
* <p>RESET_REQUIRED - User is confirmed, but the user must request a code and
* reset his or her password before he or she can sign in.</p> </li> <li>
* <p>FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using
* a temporary password, but on first sign-in, the user must change his or her
* password to a new value before doing anything else. </p> </li> </ul>
*/
inline void SetUserStatus(const UserStatusType& value) { m_userStatus = value; }
/**
* <p>The user status. Can be one of the following:</p> <ul> <li> <p>UNCONFIRMED -
* User has been created but not confirmed.</p> </li> <li> <p>CONFIRMED - User has
* been confirmed.</p> </li> <li> <p>ARCHIVED - User is no longer active.</p> </li>
* <li> <p>COMPROMISED - User is disabled due to a potential security threat.</p>
* </li> <li> <p>UNKNOWN - User status is not known.</p> </li> <li>
* <p>RESET_REQUIRED - User is confirmed, but the user must request a code and
* reset his or her password before he or she can sign in.</p> </li> <li>
* <p>FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using
* a temporary password, but on first sign-in, the user must change his or her
* password to a new value before doing anything else. </p> </li> </ul>
*/
inline void SetUserStatus(UserStatusType&& value) { m_userStatus = std::move(value); }
/**
* <p>The user status. Can be one of the following:</p> <ul> <li> <p>UNCONFIRMED -
* User has been created but not confirmed.</p> </li> <li> <p>CONFIRMED - User has
* been confirmed.</p> </li> <li> <p>ARCHIVED - User is no longer active.</p> </li>
* <li> <p>COMPROMISED - User is disabled due to a potential security threat.</p>
* </li> <li> <p>UNKNOWN - User status is not known.</p> </li> <li>
* <p>RESET_REQUIRED - User is confirmed, but the user must request a code and
* reset his or her password before he or she can sign in.</p> </li> <li>
* <p>FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using
* a temporary password, but on first sign-in, the user must change his or her
* password to a new value before doing anything else. </p> </li> </ul>
*/
inline AdminGetUserResult& WithUserStatus(const UserStatusType& value) { SetUserStatus(value); return *this;}
/**
* <p>The user status. Can be one of the following:</p> <ul> <li> <p>UNCONFIRMED -
* User has been created but not confirmed.</p> </li> <li> <p>CONFIRMED - User has
* been confirmed.</p> </li> <li> <p>ARCHIVED - User is no longer active.</p> </li>
* <li> <p>COMPROMISED - User is disabled due to a potential security threat.</p>
* </li> <li> <p>UNKNOWN - User status is not known.</p> </li> <li>
* <p>RESET_REQUIRED - User is confirmed, but the user must request a code and
* reset his or her password before he or she can sign in.</p> </li> <li>
* <p>FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using
* a temporary password, but on first sign-in, the user must change his or her
* password to a new value before doing anything else. </p> </li> </ul>
*/
inline AdminGetUserResult& WithUserStatus(UserStatusType&& value) { SetUserStatus(std::move(value)); return *this;}
/**
* <p> <i>This response parameter is no longer supported.</i> It provides
* information only about SMS MFA configurations. It doesn't provide information
* about TOTP software token MFA configurations. To look up information about
* either type of MFA configuration, use UserMFASettingList instead.</p>
*/
inline const Aws::Vector<MFAOptionType>& GetMFAOptions() const{ return m_mFAOptions; }
/**
* <p> <i>This response parameter is no longer supported.</i> It provides
* information only about SMS MFA configurations. It doesn't provide information
* about TOTP software token MFA configurations. To look up information about
* either type of MFA configuration, use UserMFASettingList instead.</p>
*/
inline void SetMFAOptions(const Aws::Vector<MFAOptionType>& value) { m_mFAOptions = value; }
/**
* <p> <i>This response parameter is no longer supported.</i> It provides
* information only about SMS MFA configurations. It doesn't provide information
* about TOTP software token MFA configurations. To look up information about
* either type of MFA configuration, use UserMFASettingList instead.</p>
*/
inline void SetMFAOptions(Aws::Vector<MFAOptionType>&& value) { m_mFAOptions = std::move(value); }
/**
* <p> <i>This response parameter is no longer supported.</i> It provides
* information only about SMS MFA configurations. It doesn't provide information
* about TOTP software token MFA configurations. To look up information about
* either type of MFA configuration, use UserMFASettingList instead.</p>
*/
inline AdminGetUserResult& WithMFAOptions(const Aws::Vector<MFAOptionType>& value) { SetMFAOptions(value); return *this;}
/**
* <p> <i>This response parameter is no longer supported.</i> It provides
* information only about SMS MFA configurations. It doesn't provide information
* about TOTP software token MFA configurations. To look up information about
* either type of MFA configuration, use UserMFASettingList instead.</p>
*/
inline AdminGetUserResult& WithMFAOptions(Aws::Vector<MFAOptionType>&& value) { SetMFAOptions(std::move(value)); return *this;}
/**
* <p> <i>This response parameter is no longer supported.</i> It provides
* information only about SMS MFA configurations. It doesn't provide information
* about TOTP software token MFA configurations. To look up information about
* either type of MFA configuration, use UserMFASettingList instead.</p>
*/
inline AdminGetUserResult& AddMFAOptions(const MFAOptionType& value) { m_mFAOptions.push_back(value); return *this; }
/**
* <p> <i>This response parameter is no longer supported.</i> It provides
* information only about SMS MFA configurations. It doesn't provide information
* about TOTP software token MFA configurations. To look up information about
* either type of MFA configuration, use UserMFASettingList instead.</p>
*/
inline AdminGetUserResult& AddMFAOptions(MFAOptionType&& value) { m_mFAOptions.push_back(std::move(value)); return *this; }
/**
* <p>The user's preferred MFA setting.</p>
*/
inline const Aws::String& GetPreferredMfaSetting() const{ return m_preferredMfaSetting; }
/**
* <p>The user's preferred MFA setting.</p>
*/
inline void SetPreferredMfaSetting(const Aws::String& value) { m_preferredMfaSetting = value; }
/**
* <p>The user's preferred MFA setting.</p>
*/
inline void SetPreferredMfaSetting(Aws::String&& value) { m_preferredMfaSetting = std::move(value); }
/**
* <p>The user's preferred MFA setting.</p>
*/
inline void SetPreferredMfaSetting(const char* value) { m_preferredMfaSetting.assign(value); }
/**
* <p>The user's preferred MFA setting.</p>
*/
inline AdminGetUserResult& WithPreferredMfaSetting(const Aws::String& value) { SetPreferredMfaSetting(value); return *this;}
/**
* <p>The user's preferred MFA setting.</p>
*/
inline AdminGetUserResult& WithPreferredMfaSetting(Aws::String&& value) { SetPreferredMfaSetting(std::move(value)); return *this;}
/**
* <p>The user's preferred MFA setting.</p>
*/
inline AdminGetUserResult& WithPreferredMfaSetting(const char* value) { SetPreferredMfaSetting(value); return *this;}
/**
* <p>The MFA options that are enabled for the user. The possible values in this
* list are <code>SMS_MFA</code> and <code>SOFTWARE_TOKEN_MFA</code>.</p>
*/
inline const Aws::Vector<Aws::String>& GetUserMFASettingList() const{ return m_userMFASettingList; }
/**
* <p>The MFA options that are enabled for the user. The possible values in this
* list are <code>SMS_MFA</code> and <code>SOFTWARE_TOKEN_MFA</code>.</p>
*/
inline void SetUserMFASettingList(const Aws::Vector<Aws::String>& value) { m_userMFASettingList = value; }
/**
* <p>The MFA options that are enabled for the user. The possible values in this
* list are <code>SMS_MFA</code> and <code>SOFTWARE_TOKEN_MFA</code>.</p>
*/
inline void SetUserMFASettingList(Aws::Vector<Aws::String>&& value) { m_userMFASettingList = std::move(value); }
/**
* <p>The MFA options that are enabled for the user. The possible values in this
* list are <code>SMS_MFA</code> and <code>SOFTWARE_TOKEN_MFA</code>.</p>
*/
inline AdminGetUserResult& WithUserMFASettingList(const Aws::Vector<Aws::String>& value) { SetUserMFASettingList(value); return *this;}
/**
* <p>The MFA options that are enabled for the user. The possible values in this
* list are <code>SMS_MFA</code> and <code>SOFTWARE_TOKEN_MFA</code>.</p>
*/
inline AdminGetUserResult& WithUserMFASettingList(Aws::Vector<Aws::String>&& value) { SetUserMFASettingList(std::move(value)); return *this;}
/**
* <p>The MFA options that are enabled for the user. The possible values in this
* list are <code>SMS_MFA</code> and <code>SOFTWARE_TOKEN_MFA</code>.</p>
*/
inline AdminGetUserResult& AddUserMFASettingList(const Aws::String& value) { m_userMFASettingList.push_back(value); return *this; }
/**
* <p>The MFA options that are enabled for the user. The possible values in this
* list are <code>SMS_MFA</code> and <code>SOFTWARE_TOKEN_MFA</code>.</p>
*/
inline AdminGetUserResult& AddUserMFASettingList(Aws::String&& value) { m_userMFASettingList.push_back(std::move(value)); return *this; }
/**
* <p>The MFA options that are enabled for the user. The possible values in this
* list are <code>SMS_MFA</code> and <code>SOFTWARE_TOKEN_MFA</code>.</p>
*/
inline AdminGetUserResult& AddUserMFASettingList(const char* value) { m_userMFASettingList.push_back(value); return *this; }
private:
Aws::String m_username;
Aws::Vector<AttributeType> m_userAttributes;
Aws::Utils::DateTime m_userCreateDate;
Aws::Utils::DateTime m_userLastModifiedDate;
bool m_enabled;
UserStatusType m_userStatus;
Aws::Vector<MFAOptionType> m_mFAOptions;
Aws::String m_preferredMfaSetting;
Aws::Vector<Aws::String> m_userMFASettingList;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,500 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/model/ChallengeNameType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/cognito-idp/model/AuthenticationResultType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Initiates the authentication response, as an administrator.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminInitiateAuthResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminInitiateAuthResult
{
public:
AdminInitiateAuthResult();
AdminInitiateAuthResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminInitiateAuthResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The name of the challenge which you are responding to with this call. This is
* returned to you in the <code>AdminInitiateAuth</code> response if you need to
* pass another challenge.</p> <ul> <li> <p> <code>MFA_SETUP</code>: If MFA is
* required, users who do not have at least one of the MFA methods set up are
* presented with an <code>MFA_SETUP</code> challenge. The user must set up at
* least one MFA type to continue to authenticate.</p> </li> <li> <p>
* <code>SELECT_MFA_TYPE</code>: Selects the MFA type. Valid MFA options are
* <code>SMS_MFA</code> for text SMS MFA, and <code>SOFTWARE_TOKEN_MFA</code> for
* TOTP software token MFA.</p> </li> <li> <p> <code>SMS_MFA</code>: Next challenge
* is to supply an <code>SMS_MFA_CODE</code>, delivered via SMS.</p> </li> <li> <p>
* <code>PASSWORD_VERIFIER</code>: Next challenge is to supply
* <code>PASSWORD_CLAIM_SIGNATURE</code>, <code>PASSWORD_CLAIM_SECRET_BLOCK</code>,
* and <code>TIMESTAMP</code> after the client-side SRP calculations.</p> </li>
* <li> <p> <code>CUSTOM_CHALLENGE</code>: This is returned if your custom
* authentication flow determines that the user should pass another challenge
* before tokens are issued.</p> </li> <li> <p> <code>DEVICE_SRP_AUTH</code>: If
* device tracking was enabled on your user pool and the previous challenges were
* passed, this challenge is returned so that Amazon Cognito can start tracking
* this device.</p> </li> <li> <p> <code>DEVICE_PASSWORD_VERIFIER</code>: Similar
* to <code>PASSWORD_VERIFIER</code>, but for devices only.</p> </li> <li> <p>
* <code>ADMIN_NO_SRP_AUTH</code>: This is returned if you need to authenticate
* with <code>USERNAME</code> and <code>PASSWORD</code> directly. An app client
* must be enabled to use this flow.</p> </li> <li> <p>
* <code>NEW_PASSWORD_REQUIRED</code>: For users which are required to change their
* passwords after successful first login. This challenge should be passed with
* <code>NEW_PASSWORD</code> and any other required attributes.</p> </li> </ul>
*/
inline const ChallengeNameType& GetChallengeName() const{ return m_challengeName; }
/**
* <p>The name of the challenge which you are responding to with this call. This is
* returned to you in the <code>AdminInitiateAuth</code> response if you need to
* pass another challenge.</p> <ul> <li> <p> <code>MFA_SETUP</code>: If MFA is
* required, users who do not have at least one of the MFA methods set up are
* presented with an <code>MFA_SETUP</code> challenge. The user must set up at
* least one MFA type to continue to authenticate.</p> </li> <li> <p>
* <code>SELECT_MFA_TYPE</code>: Selects the MFA type. Valid MFA options are
* <code>SMS_MFA</code> for text SMS MFA, and <code>SOFTWARE_TOKEN_MFA</code> for
* TOTP software token MFA.</p> </li> <li> <p> <code>SMS_MFA</code>: Next challenge
* is to supply an <code>SMS_MFA_CODE</code>, delivered via SMS.</p> </li> <li> <p>
* <code>PASSWORD_VERIFIER</code>: Next challenge is to supply
* <code>PASSWORD_CLAIM_SIGNATURE</code>, <code>PASSWORD_CLAIM_SECRET_BLOCK</code>,
* and <code>TIMESTAMP</code> after the client-side SRP calculations.</p> </li>
* <li> <p> <code>CUSTOM_CHALLENGE</code>: This is returned if your custom
* authentication flow determines that the user should pass another challenge
* before tokens are issued.</p> </li> <li> <p> <code>DEVICE_SRP_AUTH</code>: If
* device tracking was enabled on your user pool and the previous challenges were
* passed, this challenge is returned so that Amazon Cognito can start tracking
* this device.</p> </li> <li> <p> <code>DEVICE_PASSWORD_VERIFIER</code>: Similar
* to <code>PASSWORD_VERIFIER</code>, but for devices only.</p> </li> <li> <p>
* <code>ADMIN_NO_SRP_AUTH</code>: This is returned if you need to authenticate
* with <code>USERNAME</code> and <code>PASSWORD</code> directly. An app client
* must be enabled to use this flow.</p> </li> <li> <p>
* <code>NEW_PASSWORD_REQUIRED</code>: For users which are required to change their
* passwords after successful first login. This challenge should be passed with
* <code>NEW_PASSWORD</code> and any other required attributes.</p> </li> </ul>
*/
inline void SetChallengeName(const ChallengeNameType& value) { m_challengeName = value; }
/**
* <p>The name of the challenge which you are responding to with this call. This is
* returned to you in the <code>AdminInitiateAuth</code> response if you need to
* pass another challenge.</p> <ul> <li> <p> <code>MFA_SETUP</code>: If MFA is
* required, users who do not have at least one of the MFA methods set up are
* presented with an <code>MFA_SETUP</code> challenge. The user must set up at
* least one MFA type to continue to authenticate.</p> </li> <li> <p>
* <code>SELECT_MFA_TYPE</code>: Selects the MFA type. Valid MFA options are
* <code>SMS_MFA</code> for text SMS MFA, and <code>SOFTWARE_TOKEN_MFA</code> for
* TOTP software token MFA.</p> </li> <li> <p> <code>SMS_MFA</code>: Next challenge
* is to supply an <code>SMS_MFA_CODE</code>, delivered via SMS.</p> </li> <li> <p>
* <code>PASSWORD_VERIFIER</code>: Next challenge is to supply
* <code>PASSWORD_CLAIM_SIGNATURE</code>, <code>PASSWORD_CLAIM_SECRET_BLOCK</code>,
* and <code>TIMESTAMP</code> after the client-side SRP calculations.</p> </li>
* <li> <p> <code>CUSTOM_CHALLENGE</code>: This is returned if your custom
* authentication flow determines that the user should pass another challenge
* before tokens are issued.</p> </li> <li> <p> <code>DEVICE_SRP_AUTH</code>: If
* device tracking was enabled on your user pool and the previous challenges were
* passed, this challenge is returned so that Amazon Cognito can start tracking
* this device.</p> </li> <li> <p> <code>DEVICE_PASSWORD_VERIFIER</code>: Similar
* to <code>PASSWORD_VERIFIER</code>, but for devices only.</p> </li> <li> <p>
* <code>ADMIN_NO_SRP_AUTH</code>: This is returned if you need to authenticate
* with <code>USERNAME</code> and <code>PASSWORD</code> directly. An app client
* must be enabled to use this flow.</p> </li> <li> <p>
* <code>NEW_PASSWORD_REQUIRED</code>: For users which are required to change their
* passwords after successful first login. This challenge should be passed with
* <code>NEW_PASSWORD</code> and any other required attributes.</p> </li> </ul>
*/
inline void SetChallengeName(ChallengeNameType&& value) { m_challengeName = std::move(value); }
/**
* <p>The name of the challenge which you are responding to with this call. This is
* returned to you in the <code>AdminInitiateAuth</code> response if you need to
* pass another challenge.</p> <ul> <li> <p> <code>MFA_SETUP</code>: If MFA is
* required, users who do not have at least one of the MFA methods set up are
* presented with an <code>MFA_SETUP</code> challenge. The user must set up at
* least one MFA type to continue to authenticate.</p> </li> <li> <p>
* <code>SELECT_MFA_TYPE</code>: Selects the MFA type. Valid MFA options are
* <code>SMS_MFA</code> for text SMS MFA, and <code>SOFTWARE_TOKEN_MFA</code> for
* TOTP software token MFA.</p> </li> <li> <p> <code>SMS_MFA</code>: Next challenge
* is to supply an <code>SMS_MFA_CODE</code>, delivered via SMS.</p> </li> <li> <p>
* <code>PASSWORD_VERIFIER</code>: Next challenge is to supply
* <code>PASSWORD_CLAIM_SIGNATURE</code>, <code>PASSWORD_CLAIM_SECRET_BLOCK</code>,
* and <code>TIMESTAMP</code> after the client-side SRP calculations.</p> </li>
* <li> <p> <code>CUSTOM_CHALLENGE</code>: This is returned if your custom
* authentication flow determines that the user should pass another challenge
* before tokens are issued.</p> </li> <li> <p> <code>DEVICE_SRP_AUTH</code>: If
* device tracking was enabled on your user pool and the previous challenges were
* passed, this challenge is returned so that Amazon Cognito can start tracking
* this device.</p> </li> <li> <p> <code>DEVICE_PASSWORD_VERIFIER</code>: Similar
* to <code>PASSWORD_VERIFIER</code>, but for devices only.</p> </li> <li> <p>
* <code>ADMIN_NO_SRP_AUTH</code>: This is returned if you need to authenticate
* with <code>USERNAME</code> and <code>PASSWORD</code> directly. An app client
* must be enabled to use this flow.</p> </li> <li> <p>
* <code>NEW_PASSWORD_REQUIRED</code>: For users which are required to change their
* passwords after successful first login. This challenge should be passed with
* <code>NEW_PASSWORD</code> and any other required attributes.</p> </li> </ul>
*/
inline AdminInitiateAuthResult& WithChallengeName(const ChallengeNameType& value) { SetChallengeName(value); return *this;}
/**
* <p>The name of the challenge which you are responding to with this call. This is
* returned to you in the <code>AdminInitiateAuth</code> response if you need to
* pass another challenge.</p> <ul> <li> <p> <code>MFA_SETUP</code>: If MFA is
* required, users who do not have at least one of the MFA methods set up are
* presented with an <code>MFA_SETUP</code> challenge. The user must set up at
* least one MFA type to continue to authenticate.</p> </li> <li> <p>
* <code>SELECT_MFA_TYPE</code>: Selects the MFA type. Valid MFA options are
* <code>SMS_MFA</code> for text SMS MFA, and <code>SOFTWARE_TOKEN_MFA</code> for
* TOTP software token MFA.</p> </li> <li> <p> <code>SMS_MFA</code>: Next challenge
* is to supply an <code>SMS_MFA_CODE</code>, delivered via SMS.</p> </li> <li> <p>
* <code>PASSWORD_VERIFIER</code>: Next challenge is to supply
* <code>PASSWORD_CLAIM_SIGNATURE</code>, <code>PASSWORD_CLAIM_SECRET_BLOCK</code>,
* and <code>TIMESTAMP</code> after the client-side SRP calculations.</p> </li>
* <li> <p> <code>CUSTOM_CHALLENGE</code>: This is returned if your custom
* authentication flow determines that the user should pass another challenge
* before tokens are issued.</p> </li> <li> <p> <code>DEVICE_SRP_AUTH</code>: If
* device tracking was enabled on your user pool and the previous challenges were
* passed, this challenge is returned so that Amazon Cognito can start tracking
* this device.</p> </li> <li> <p> <code>DEVICE_PASSWORD_VERIFIER</code>: Similar
* to <code>PASSWORD_VERIFIER</code>, but for devices only.</p> </li> <li> <p>
* <code>ADMIN_NO_SRP_AUTH</code>: This is returned if you need to authenticate
* with <code>USERNAME</code> and <code>PASSWORD</code> directly. An app client
* must be enabled to use this flow.</p> </li> <li> <p>
* <code>NEW_PASSWORD_REQUIRED</code>: For users which are required to change their
* passwords after successful first login. This challenge should be passed with
* <code>NEW_PASSWORD</code> and any other required attributes.</p> </li> </ul>
*/
inline AdminInitiateAuthResult& WithChallengeName(ChallengeNameType&& value) { SetChallengeName(std::move(value)); return *this;}
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. If <code>AdminInitiateAuth</code> or
* <code>AdminRespondToAuthChallenge</code> API call determines that the caller
* needs to go through another challenge, they return a session with other
* challenge parameters. This session should be passed as it is to the next
* <code>AdminRespondToAuthChallenge</code> API call.</p>
*/
inline const Aws::String& GetSession() const{ return m_session; }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. If <code>AdminInitiateAuth</code> or
* <code>AdminRespondToAuthChallenge</code> API call determines that the caller
* needs to go through another challenge, they return a session with other
* challenge parameters. This session should be passed as it is to the next
* <code>AdminRespondToAuthChallenge</code> API call.</p>
*/
inline void SetSession(const Aws::String& value) { m_session = value; }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. If <code>AdminInitiateAuth</code> or
* <code>AdminRespondToAuthChallenge</code> API call determines that the caller
* needs to go through another challenge, they return a session with other
* challenge parameters. This session should be passed as it is to the next
* <code>AdminRespondToAuthChallenge</code> API call.</p>
*/
inline void SetSession(Aws::String&& value) { m_session = std::move(value); }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. If <code>AdminInitiateAuth</code> or
* <code>AdminRespondToAuthChallenge</code> API call determines that the caller
* needs to go through another challenge, they return a session with other
* challenge parameters. This session should be passed as it is to the next
* <code>AdminRespondToAuthChallenge</code> API call.</p>
*/
inline void SetSession(const char* value) { m_session.assign(value); }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. If <code>AdminInitiateAuth</code> or
* <code>AdminRespondToAuthChallenge</code> API call determines that the caller
* needs to go through another challenge, they return a session with other
* challenge parameters. This session should be passed as it is to the next
* <code>AdminRespondToAuthChallenge</code> API call.</p>
*/
inline AdminInitiateAuthResult& WithSession(const Aws::String& value) { SetSession(value); return *this;}
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. If <code>AdminInitiateAuth</code> or
* <code>AdminRespondToAuthChallenge</code> API call determines that the caller
* needs to go through another challenge, they return a session with other
* challenge parameters. This session should be passed as it is to the next
* <code>AdminRespondToAuthChallenge</code> API call.</p>
*/
inline AdminInitiateAuthResult& WithSession(Aws::String&& value) { SetSession(std::move(value)); return *this;}
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. If <code>AdminInitiateAuth</code> or
* <code>AdminRespondToAuthChallenge</code> API call determines that the caller
* needs to go through another challenge, they return a session with other
* challenge parameters. This session should be passed as it is to the next
* <code>AdminRespondToAuthChallenge</code> API call.</p>
*/
inline AdminInitiateAuthResult& WithSession(const char* value) { SetSession(value); return *this;}
/**
* <p>The challenge parameters. These are returned to you in the
* <code>AdminInitiateAuth</code> response if you need to pass another challenge.
* The responses in this parameter should be used to compute inputs to the next
* call (<code>AdminRespondToAuthChallenge</code>).</p> <p>All challenges require
* <code>USERNAME</code> and <code>SECRET_HASH</code> (if applicable).</p> <p>The
* value of the <code>USER_ID_FOR_SRP</code> attribute will be the user's actual
* username, not an alias (such as email address or phone number), even if you
* specified an alias in your call to <code>AdminInitiateAuth</code>. This is
* because, in the <code>AdminRespondToAuthChallenge</code> API
* <code>ChallengeResponses</code>, the <code>USERNAME</code> attribute cannot be
* an alias.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetChallengeParameters() const{ return m_challengeParameters; }
/**
* <p>The challenge parameters. These are returned to you in the
* <code>AdminInitiateAuth</code> response if you need to pass another challenge.
* The responses in this parameter should be used to compute inputs to the next
* call (<code>AdminRespondToAuthChallenge</code>).</p> <p>All challenges require
* <code>USERNAME</code> and <code>SECRET_HASH</code> (if applicable).</p> <p>The
* value of the <code>USER_ID_FOR_SRP</code> attribute will be the user's actual
* username, not an alias (such as email address or phone number), even if you
* specified an alias in your call to <code>AdminInitiateAuth</code>. This is
* because, in the <code>AdminRespondToAuthChallenge</code> API
* <code>ChallengeResponses</code>, the <code>USERNAME</code> attribute cannot be
* an alias.</p>
*/
inline void SetChallengeParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_challengeParameters = value; }
/**
* <p>The challenge parameters. These are returned to you in the
* <code>AdminInitiateAuth</code> response if you need to pass another challenge.
* The responses in this parameter should be used to compute inputs to the next
* call (<code>AdminRespondToAuthChallenge</code>).</p> <p>All challenges require
* <code>USERNAME</code> and <code>SECRET_HASH</code> (if applicable).</p> <p>The
* value of the <code>USER_ID_FOR_SRP</code> attribute will be the user's actual
* username, not an alias (such as email address or phone number), even if you
* specified an alias in your call to <code>AdminInitiateAuth</code>. This is
* because, in the <code>AdminRespondToAuthChallenge</code> API
* <code>ChallengeResponses</code>, the <code>USERNAME</code> attribute cannot be
* an alias.</p>
*/
inline void SetChallengeParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_challengeParameters = std::move(value); }
/**
* <p>The challenge parameters. These are returned to you in the
* <code>AdminInitiateAuth</code> response if you need to pass another challenge.
* The responses in this parameter should be used to compute inputs to the next
* call (<code>AdminRespondToAuthChallenge</code>).</p> <p>All challenges require
* <code>USERNAME</code> and <code>SECRET_HASH</code> (if applicable).</p> <p>The
* value of the <code>USER_ID_FOR_SRP</code> attribute will be the user's actual
* username, not an alias (such as email address or phone number), even if you
* specified an alias in your call to <code>AdminInitiateAuth</code>. This is
* because, in the <code>AdminRespondToAuthChallenge</code> API
* <code>ChallengeResponses</code>, the <code>USERNAME</code> attribute cannot be
* an alias.</p>
*/
inline AdminInitiateAuthResult& WithChallengeParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetChallengeParameters(value); return *this;}
/**
* <p>The challenge parameters. These are returned to you in the
* <code>AdminInitiateAuth</code> response if you need to pass another challenge.
* The responses in this parameter should be used to compute inputs to the next
* call (<code>AdminRespondToAuthChallenge</code>).</p> <p>All challenges require
* <code>USERNAME</code> and <code>SECRET_HASH</code> (if applicable).</p> <p>The
* value of the <code>USER_ID_FOR_SRP</code> attribute will be the user's actual
* username, not an alias (such as email address or phone number), even if you
* specified an alias in your call to <code>AdminInitiateAuth</code>. This is
* because, in the <code>AdminRespondToAuthChallenge</code> API
* <code>ChallengeResponses</code>, the <code>USERNAME</code> attribute cannot be
* an alias.</p>
*/
inline AdminInitiateAuthResult& WithChallengeParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetChallengeParameters(std::move(value)); return *this;}
/**
* <p>The challenge parameters. These are returned to you in the
* <code>AdminInitiateAuth</code> response if you need to pass another challenge.
* The responses in this parameter should be used to compute inputs to the next
* call (<code>AdminRespondToAuthChallenge</code>).</p> <p>All challenges require
* <code>USERNAME</code> and <code>SECRET_HASH</code> (if applicable).</p> <p>The
* value of the <code>USER_ID_FOR_SRP</code> attribute will be the user's actual
* username, not an alias (such as email address or phone number), even if you
* specified an alias in your call to <code>AdminInitiateAuth</code>. This is
* because, in the <code>AdminRespondToAuthChallenge</code> API
* <code>ChallengeResponses</code>, the <code>USERNAME</code> attribute cannot be
* an alias.</p>
*/
inline AdminInitiateAuthResult& AddChallengeParameters(const Aws::String& key, const Aws::String& value) { m_challengeParameters.emplace(key, value); return *this; }
/**
* <p>The challenge parameters. These are returned to you in the
* <code>AdminInitiateAuth</code> response if you need to pass another challenge.
* The responses in this parameter should be used to compute inputs to the next
* call (<code>AdminRespondToAuthChallenge</code>).</p> <p>All challenges require
* <code>USERNAME</code> and <code>SECRET_HASH</code> (if applicable).</p> <p>The
* value of the <code>USER_ID_FOR_SRP</code> attribute will be the user's actual
* username, not an alias (such as email address or phone number), even if you
* specified an alias in your call to <code>AdminInitiateAuth</code>. This is
* because, in the <code>AdminRespondToAuthChallenge</code> API
* <code>ChallengeResponses</code>, the <code>USERNAME</code> attribute cannot be
* an alias.</p>
*/
inline AdminInitiateAuthResult& AddChallengeParameters(Aws::String&& key, const Aws::String& value) { m_challengeParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The challenge parameters. These are returned to you in the
* <code>AdminInitiateAuth</code> response if you need to pass another challenge.
* The responses in this parameter should be used to compute inputs to the next
* call (<code>AdminRespondToAuthChallenge</code>).</p> <p>All challenges require
* <code>USERNAME</code> and <code>SECRET_HASH</code> (if applicable).</p> <p>The
* value of the <code>USER_ID_FOR_SRP</code> attribute will be the user's actual
* username, not an alias (such as email address or phone number), even if you
* specified an alias in your call to <code>AdminInitiateAuth</code>. This is
* because, in the <code>AdminRespondToAuthChallenge</code> API
* <code>ChallengeResponses</code>, the <code>USERNAME</code> attribute cannot be
* an alias.</p>
*/
inline AdminInitiateAuthResult& AddChallengeParameters(const Aws::String& key, Aws::String&& value) { m_challengeParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The challenge parameters. These are returned to you in the
* <code>AdminInitiateAuth</code> response if you need to pass another challenge.
* The responses in this parameter should be used to compute inputs to the next
* call (<code>AdminRespondToAuthChallenge</code>).</p> <p>All challenges require
* <code>USERNAME</code> and <code>SECRET_HASH</code> (if applicable).</p> <p>The
* value of the <code>USER_ID_FOR_SRP</code> attribute will be the user's actual
* username, not an alias (such as email address or phone number), even if you
* specified an alias in your call to <code>AdminInitiateAuth</code>. This is
* because, in the <code>AdminRespondToAuthChallenge</code> API
* <code>ChallengeResponses</code>, the <code>USERNAME</code> attribute cannot be
* an alias.</p>
*/
inline AdminInitiateAuthResult& AddChallengeParameters(Aws::String&& key, Aws::String&& value) { m_challengeParameters.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The challenge parameters. These are returned to you in the
* <code>AdminInitiateAuth</code> response if you need to pass another challenge.
* The responses in this parameter should be used to compute inputs to the next
* call (<code>AdminRespondToAuthChallenge</code>).</p> <p>All challenges require
* <code>USERNAME</code> and <code>SECRET_HASH</code> (if applicable).</p> <p>The
* value of the <code>USER_ID_FOR_SRP</code> attribute will be the user's actual
* username, not an alias (such as email address or phone number), even if you
* specified an alias in your call to <code>AdminInitiateAuth</code>. This is
* because, in the <code>AdminRespondToAuthChallenge</code> API
* <code>ChallengeResponses</code>, the <code>USERNAME</code> attribute cannot be
* an alias.</p>
*/
inline AdminInitiateAuthResult& AddChallengeParameters(const char* key, Aws::String&& value) { m_challengeParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The challenge parameters. These are returned to you in the
* <code>AdminInitiateAuth</code> response if you need to pass another challenge.
* The responses in this parameter should be used to compute inputs to the next
* call (<code>AdminRespondToAuthChallenge</code>).</p> <p>All challenges require
* <code>USERNAME</code> and <code>SECRET_HASH</code> (if applicable).</p> <p>The
* value of the <code>USER_ID_FOR_SRP</code> attribute will be the user's actual
* username, not an alias (such as email address or phone number), even if you
* specified an alias in your call to <code>AdminInitiateAuth</code>. This is
* because, in the <code>AdminRespondToAuthChallenge</code> API
* <code>ChallengeResponses</code>, the <code>USERNAME</code> attribute cannot be
* an alias.</p>
*/
inline AdminInitiateAuthResult& AddChallengeParameters(Aws::String&& key, const char* value) { m_challengeParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The challenge parameters. These are returned to you in the
* <code>AdminInitiateAuth</code> response if you need to pass another challenge.
* The responses in this parameter should be used to compute inputs to the next
* call (<code>AdminRespondToAuthChallenge</code>).</p> <p>All challenges require
* <code>USERNAME</code> and <code>SECRET_HASH</code> (if applicable).</p> <p>The
* value of the <code>USER_ID_FOR_SRP</code> attribute will be the user's actual
* username, not an alias (such as email address or phone number), even if you
* specified an alias in your call to <code>AdminInitiateAuth</code>. This is
* because, in the <code>AdminRespondToAuthChallenge</code> API
* <code>ChallengeResponses</code>, the <code>USERNAME</code> attribute cannot be
* an alias.</p>
*/
inline AdminInitiateAuthResult& AddChallengeParameters(const char* key, const char* value) { m_challengeParameters.emplace(key, value); return *this; }
/**
* <p>The result of the authentication response. This is only returned if the
* caller does not need to pass another challenge. If the caller does need to pass
* another challenge before it gets tokens, <code>ChallengeName</code>,
* <code>ChallengeParameters</code>, and <code>Session</code> are returned.</p>
*/
inline const AuthenticationResultType& GetAuthenticationResult() const{ return m_authenticationResult; }
/**
* <p>The result of the authentication response. This is only returned if the
* caller does not need to pass another challenge. If the caller does need to pass
* another challenge before it gets tokens, <code>ChallengeName</code>,
* <code>ChallengeParameters</code>, and <code>Session</code> are returned.</p>
*/
inline void SetAuthenticationResult(const AuthenticationResultType& value) { m_authenticationResult = value; }
/**
* <p>The result of the authentication response. This is only returned if the
* caller does not need to pass another challenge. If the caller does need to pass
* another challenge before it gets tokens, <code>ChallengeName</code>,
* <code>ChallengeParameters</code>, and <code>Session</code> are returned.</p>
*/
inline void SetAuthenticationResult(AuthenticationResultType&& value) { m_authenticationResult = std::move(value); }
/**
* <p>The result of the authentication response. This is only returned if the
* caller does not need to pass another challenge. If the caller does need to pass
* another challenge before it gets tokens, <code>ChallengeName</code>,
* <code>ChallengeParameters</code>, and <code>Session</code> are returned.</p>
*/
inline AdminInitiateAuthResult& WithAuthenticationResult(const AuthenticationResultType& value) { SetAuthenticationResult(value); return *this;}
/**
* <p>The result of the authentication response. This is only returned if the
* caller does not need to pass another challenge. If the caller does need to pass
* another challenge before it gets tokens, <code>ChallengeName</code>,
* <code>ChallengeParameters</code>, and <code>Session</code> are returned.</p>
*/
inline AdminInitiateAuthResult& WithAuthenticationResult(AuthenticationResultType&& value) { SetAuthenticationResult(std::move(value)); return *this;}
private:
ChallengeNameType m_challengeName;
Aws::String m_session;
Aws::Map<Aws::String, Aws::String> m_challengeParameters;
AuthenticationResultType m_authenticationResult;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,328 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cognito-idp/model/ProviderUserIdentifierType.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminLinkProviderForUserRequest : public CognitoIdentityProviderRequest
{
public:
AdminLinkProviderForUserRequest();
// 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 "AdminLinkProviderForUser"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for the user pool.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline AdminLinkProviderForUserRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline AdminLinkProviderForUserRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline AdminLinkProviderForUserRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The existing user in the user pool to be linked to the external identity
* provider user account. Can be a native (Username + Password) Cognito User Pools
* user or a federated user (for example, a SAML or Facebook user). If the user
* doesn't exist, an exception is thrown. This is the user that is returned when
* the new user (with the linked identity provider attribute) signs in.</p> <p>For
* a native username + password user, the <code>ProviderAttributeValue</code> for
* the <code>DestinationUser</code> should be the username in the user pool. For a
* federated user, it should be the provider-specific <code>user_id</code>.</p>
* <p>The <code>ProviderAttributeName</code> of the <code>DestinationUser</code> is
* ignored.</p> <p>The <code>ProviderName</code> should be set to
* <code>Cognito</code> for users in Cognito user pools.</p>
*/
inline const ProviderUserIdentifierType& GetDestinationUser() const{ return m_destinationUser; }
/**
* <p>The existing user in the user pool to be linked to the external identity
* provider user account. Can be a native (Username + Password) Cognito User Pools
* user or a federated user (for example, a SAML or Facebook user). If the user
* doesn't exist, an exception is thrown. This is the user that is returned when
* the new user (with the linked identity provider attribute) signs in.</p> <p>For
* a native username + password user, the <code>ProviderAttributeValue</code> for
* the <code>DestinationUser</code> should be the username in the user pool. For a
* federated user, it should be the provider-specific <code>user_id</code>.</p>
* <p>The <code>ProviderAttributeName</code> of the <code>DestinationUser</code> is
* ignored.</p> <p>The <code>ProviderName</code> should be set to
* <code>Cognito</code> for users in Cognito user pools.</p>
*/
inline bool DestinationUserHasBeenSet() const { return m_destinationUserHasBeenSet; }
/**
* <p>The existing user in the user pool to be linked to the external identity
* provider user account. Can be a native (Username + Password) Cognito User Pools
* user or a federated user (for example, a SAML or Facebook user). If the user
* doesn't exist, an exception is thrown. This is the user that is returned when
* the new user (with the linked identity provider attribute) signs in.</p> <p>For
* a native username + password user, the <code>ProviderAttributeValue</code> for
* the <code>DestinationUser</code> should be the username in the user pool. For a
* federated user, it should be the provider-specific <code>user_id</code>.</p>
* <p>The <code>ProviderAttributeName</code> of the <code>DestinationUser</code> is
* ignored.</p> <p>The <code>ProviderName</code> should be set to
* <code>Cognito</code> for users in Cognito user pools.</p>
*/
inline void SetDestinationUser(const ProviderUserIdentifierType& value) { m_destinationUserHasBeenSet = true; m_destinationUser = value; }
/**
* <p>The existing user in the user pool to be linked to the external identity
* provider user account. Can be a native (Username + Password) Cognito User Pools
* user or a federated user (for example, a SAML or Facebook user). If the user
* doesn't exist, an exception is thrown. This is the user that is returned when
* the new user (with the linked identity provider attribute) signs in.</p> <p>For
* a native username + password user, the <code>ProviderAttributeValue</code> for
* the <code>DestinationUser</code> should be the username in the user pool. For a
* federated user, it should be the provider-specific <code>user_id</code>.</p>
* <p>The <code>ProviderAttributeName</code> of the <code>DestinationUser</code> is
* ignored.</p> <p>The <code>ProviderName</code> should be set to
* <code>Cognito</code> for users in Cognito user pools.</p>
*/
inline void SetDestinationUser(ProviderUserIdentifierType&& value) { m_destinationUserHasBeenSet = true; m_destinationUser = std::move(value); }
/**
* <p>The existing user in the user pool to be linked to the external identity
* provider user account. Can be a native (Username + Password) Cognito User Pools
* user or a federated user (for example, a SAML or Facebook user). If the user
* doesn't exist, an exception is thrown. This is the user that is returned when
* the new user (with the linked identity provider attribute) signs in.</p> <p>For
* a native username + password user, the <code>ProviderAttributeValue</code> for
* the <code>DestinationUser</code> should be the username in the user pool. For a
* federated user, it should be the provider-specific <code>user_id</code>.</p>
* <p>The <code>ProviderAttributeName</code> of the <code>DestinationUser</code> is
* ignored.</p> <p>The <code>ProviderName</code> should be set to
* <code>Cognito</code> for users in Cognito user pools.</p>
*/
inline AdminLinkProviderForUserRequest& WithDestinationUser(const ProviderUserIdentifierType& value) { SetDestinationUser(value); return *this;}
/**
* <p>The existing user in the user pool to be linked to the external identity
* provider user account. Can be a native (Username + Password) Cognito User Pools
* user or a federated user (for example, a SAML or Facebook user). If the user
* doesn't exist, an exception is thrown. This is the user that is returned when
* the new user (with the linked identity provider attribute) signs in.</p> <p>For
* a native username + password user, the <code>ProviderAttributeValue</code> for
* the <code>DestinationUser</code> should be the username in the user pool. For a
* federated user, it should be the provider-specific <code>user_id</code>.</p>
* <p>The <code>ProviderAttributeName</code> of the <code>DestinationUser</code> is
* ignored.</p> <p>The <code>ProviderName</code> should be set to
* <code>Cognito</code> for users in Cognito user pools.</p>
*/
inline AdminLinkProviderForUserRequest& WithDestinationUser(ProviderUserIdentifierType&& value) { SetDestinationUser(std::move(value)); return *this;}
/**
* <p>An external identity provider account for a user who does not currently exist
* yet in the user pool. This user must be a federated user (for example, a SAML or
* Facebook user), not another native user.</p> <p>If the <code>SourceUser</code>
* is a federated social identity provider user (Facebook, Google, or Login with
* Amazon), you must set the <code>ProviderAttributeName</code> to
* <code>Cognito_Subject</code>. For social identity providers, the
* <code>ProviderName</code> will be <code>Facebook</code>, <code>Google</code>, or
* <code>LoginWithAmazon</code>, and Cognito will automatically parse the Facebook,
* Google, and Login with Amazon tokens for <code>id</code>, <code>sub</code>, and
* <code>user_id</code>, respectively. The <code>ProviderAttributeValue</code> for
* the user must be the same value as the <code>id</code>, <code>sub</code>, or
* <code>user_id</code> value found in the social identity provider token.</p> <p/>
* <p>For SAML, the <code>ProviderAttributeName</code> can be any value that
* matches a claim in the SAML assertion. If you wish to link SAML users based on
* the subject of the SAML assertion, you should map the subject to a claim through
* the SAML identity provider and submit that claim name as the
* <code>ProviderAttributeName</code>. If you set
* <code>ProviderAttributeName</code> to <code>Cognito_Subject</code>, Cognito will
* automatically parse the default unique identifier found in the subject from the
* SAML token.</p>
*/
inline const ProviderUserIdentifierType& GetSourceUser() const{ return m_sourceUser; }
/**
* <p>An external identity provider account for a user who does not currently exist
* yet in the user pool. This user must be a federated user (for example, a SAML or
* Facebook user), not another native user.</p> <p>If the <code>SourceUser</code>
* is a federated social identity provider user (Facebook, Google, or Login with
* Amazon), you must set the <code>ProviderAttributeName</code> to
* <code>Cognito_Subject</code>. For social identity providers, the
* <code>ProviderName</code> will be <code>Facebook</code>, <code>Google</code>, or
* <code>LoginWithAmazon</code>, and Cognito will automatically parse the Facebook,
* Google, and Login with Amazon tokens for <code>id</code>, <code>sub</code>, and
* <code>user_id</code>, respectively. The <code>ProviderAttributeValue</code> for
* the user must be the same value as the <code>id</code>, <code>sub</code>, or
* <code>user_id</code> value found in the social identity provider token.</p> <p/>
* <p>For SAML, the <code>ProviderAttributeName</code> can be any value that
* matches a claim in the SAML assertion. If you wish to link SAML users based on
* the subject of the SAML assertion, you should map the subject to a claim through
* the SAML identity provider and submit that claim name as the
* <code>ProviderAttributeName</code>. If you set
* <code>ProviderAttributeName</code> to <code>Cognito_Subject</code>, Cognito will
* automatically parse the default unique identifier found in the subject from the
* SAML token.</p>
*/
inline bool SourceUserHasBeenSet() const { return m_sourceUserHasBeenSet; }
/**
* <p>An external identity provider account for a user who does not currently exist
* yet in the user pool. This user must be a federated user (for example, a SAML or
* Facebook user), not another native user.</p> <p>If the <code>SourceUser</code>
* is a federated social identity provider user (Facebook, Google, or Login with
* Amazon), you must set the <code>ProviderAttributeName</code> to
* <code>Cognito_Subject</code>. For social identity providers, the
* <code>ProviderName</code> will be <code>Facebook</code>, <code>Google</code>, or
* <code>LoginWithAmazon</code>, and Cognito will automatically parse the Facebook,
* Google, and Login with Amazon tokens for <code>id</code>, <code>sub</code>, and
* <code>user_id</code>, respectively. The <code>ProviderAttributeValue</code> for
* the user must be the same value as the <code>id</code>, <code>sub</code>, or
* <code>user_id</code> value found in the social identity provider token.</p> <p/>
* <p>For SAML, the <code>ProviderAttributeName</code> can be any value that
* matches a claim in the SAML assertion. If you wish to link SAML users based on
* the subject of the SAML assertion, you should map the subject to a claim through
* the SAML identity provider and submit that claim name as the
* <code>ProviderAttributeName</code>. If you set
* <code>ProviderAttributeName</code> to <code>Cognito_Subject</code>, Cognito will
* automatically parse the default unique identifier found in the subject from the
* SAML token.</p>
*/
inline void SetSourceUser(const ProviderUserIdentifierType& value) { m_sourceUserHasBeenSet = true; m_sourceUser = value; }
/**
* <p>An external identity provider account for a user who does not currently exist
* yet in the user pool. This user must be a federated user (for example, a SAML or
* Facebook user), not another native user.</p> <p>If the <code>SourceUser</code>
* is a federated social identity provider user (Facebook, Google, or Login with
* Amazon), you must set the <code>ProviderAttributeName</code> to
* <code>Cognito_Subject</code>. For social identity providers, the
* <code>ProviderName</code> will be <code>Facebook</code>, <code>Google</code>, or
* <code>LoginWithAmazon</code>, and Cognito will automatically parse the Facebook,
* Google, and Login with Amazon tokens for <code>id</code>, <code>sub</code>, and
* <code>user_id</code>, respectively. The <code>ProviderAttributeValue</code> for
* the user must be the same value as the <code>id</code>, <code>sub</code>, or
* <code>user_id</code> value found in the social identity provider token.</p> <p/>
* <p>For SAML, the <code>ProviderAttributeName</code> can be any value that
* matches a claim in the SAML assertion. If you wish to link SAML users based on
* the subject of the SAML assertion, you should map the subject to a claim through
* the SAML identity provider and submit that claim name as the
* <code>ProviderAttributeName</code>. If you set
* <code>ProviderAttributeName</code> to <code>Cognito_Subject</code>, Cognito will
* automatically parse the default unique identifier found in the subject from the
* SAML token.</p>
*/
inline void SetSourceUser(ProviderUserIdentifierType&& value) { m_sourceUserHasBeenSet = true; m_sourceUser = std::move(value); }
/**
* <p>An external identity provider account for a user who does not currently exist
* yet in the user pool. This user must be a federated user (for example, a SAML or
* Facebook user), not another native user.</p> <p>If the <code>SourceUser</code>
* is a federated social identity provider user (Facebook, Google, or Login with
* Amazon), you must set the <code>ProviderAttributeName</code> to
* <code>Cognito_Subject</code>. For social identity providers, the
* <code>ProviderName</code> will be <code>Facebook</code>, <code>Google</code>, or
* <code>LoginWithAmazon</code>, and Cognito will automatically parse the Facebook,
* Google, and Login with Amazon tokens for <code>id</code>, <code>sub</code>, and
* <code>user_id</code>, respectively. The <code>ProviderAttributeValue</code> for
* the user must be the same value as the <code>id</code>, <code>sub</code>, or
* <code>user_id</code> value found in the social identity provider token.</p> <p/>
* <p>For SAML, the <code>ProviderAttributeName</code> can be any value that
* matches a claim in the SAML assertion. If you wish to link SAML users based on
* the subject of the SAML assertion, you should map the subject to a claim through
* the SAML identity provider and submit that claim name as the
* <code>ProviderAttributeName</code>. If you set
* <code>ProviderAttributeName</code> to <code>Cognito_Subject</code>, Cognito will
* automatically parse the default unique identifier found in the subject from the
* SAML token.</p>
*/
inline AdminLinkProviderForUserRequest& WithSourceUser(const ProviderUserIdentifierType& value) { SetSourceUser(value); return *this;}
/**
* <p>An external identity provider account for a user who does not currently exist
* yet in the user pool. This user must be a federated user (for example, a SAML or
* Facebook user), not another native user.</p> <p>If the <code>SourceUser</code>
* is a federated social identity provider user (Facebook, Google, or Login with
* Amazon), you must set the <code>ProviderAttributeName</code> to
* <code>Cognito_Subject</code>. For social identity providers, the
* <code>ProviderName</code> will be <code>Facebook</code>, <code>Google</code>, or
* <code>LoginWithAmazon</code>, and Cognito will automatically parse the Facebook,
* Google, and Login with Amazon tokens for <code>id</code>, <code>sub</code>, and
* <code>user_id</code>, respectively. The <code>ProviderAttributeValue</code> for
* the user must be the same value as the <code>id</code>, <code>sub</code>, or
* <code>user_id</code> value found in the social identity provider token.</p> <p/>
* <p>For SAML, the <code>ProviderAttributeName</code> can be any value that
* matches a claim in the SAML assertion. If you wish to link SAML users based on
* the subject of the SAML assertion, you should map the subject to a claim through
* the SAML identity provider and submit that claim name as the
* <code>ProviderAttributeName</code>. If you set
* <code>ProviderAttributeName</code> to <code>Cognito_Subject</code>, Cognito will
* automatically parse the default unique identifier found in the subject from the
* SAML token.</p>
*/
inline AdminLinkProviderForUserRequest& WithSourceUser(ProviderUserIdentifierType&& value) { SetSourceUser(std::move(value)); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
ProviderUserIdentifierType m_destinationUser;
bool m_destinationUserHasBeenSet;
ProviderUserIdentifierType m_sourceUser;
bool m_sourceUserHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
class AWS_COGNITOIDENTITYPROVIDER_API AdminLinkProviderForUserResult
{
public:
AdminLinkProviderForUserResult();
AdminLinkProviderForUserResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminLinkProviderForUserResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,201 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the request to list devices, as an administrator.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListDevicesRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminListDevicesRequest : public CognitoIdentityProviderRequest
{
public:
AdminListDevicesRequest();
// 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 "AdminListDevices"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID.</p>
*/
inline AdminListDevicesRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminListDevicesRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminListDevicesRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user name.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name.</p>
*/
inline AdminListDevicesRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name.</p>
*/
inline AdminListDevicesRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name.</p>
*/
inline AdminListDevicesRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>The limit of the devices request.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>The limit of the devices request.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The limit of the devices request.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The limit of the devices request.</p>
*/
inline AdminListDevicesRequest& WithLimit(int value) { SetLimit(value); return *this;}
/**
* <p>The pagination token.</p>
*/
inline const Aws::String& GetPaginationToken() const{ return m_paginationToken; }
/**
* <p>The pagination token.</p>
*/
inline bool PaginationTokenHasBeenSet() const { return m_paginationTokenHasBeenSet; }
/**
* <p>The pagination token.</p>
*/
inline void SetPaginationToken(const Aws::String& value) { m_paginationTokenHasBeenSet = true; m_paginationToken = value; }
/**
* <p>The pagination token.</p>
*/
inline void SetPaginationToken(Aws::String&& value) { m_paginationTokenHasBeenSet = true; m_paginationToken = std::move(value); }
/**
* <p>The pagination token.</p>
*/
inline void SetPaginationToken(const char* value) { m_paginationTokenHasBeenSet = true; m_paginationToken.assign(value); }
/**
* <p>The pagination token.</p>
*/
inline AdminListDevicesRequest& WithPaginationToken(const Aws::String& value) { SetPaginationToken(value); return *this;}
/**
* <p>The pagination token.</p>
*/
inline AdminListDevicesRequest& WithPaginationToken(Aws::String&& value) { SetPaginationToken(std::move(value)); return *this;}
/**
* <p>The pagination token.</p>
*/
inline AdminListDevicesRequest& WithPaginationToken(const char* value) { SetPaginationToken(value); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
Aws::String m_paginationToken;
bool m_paginationTokenHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,123 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cognito-idp/model/DeviceType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Lists the device's response, as an administrator.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListDevicesResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminListDevicesResult
{
public:
AdminListDevicesResult();
AdminListDevicesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminListDevicesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The devices in the list of devices response.</p>
*/
inline const Aws::Vector<DeviceType>& GetDevices() const{ return m_devices; }
/**
* <p>The devices in the list of devices response.</p>
*/
inline void SetDevices(const Aws::Vector<DeviceType>& value) { m_devices = value; }
/**
* <p>The devices in the list of devices response.</p>
*/
inline void SetDevices(Aws::Vector<DeviceType>&& value) { m_devices = std::move(value); }
/**
* <p>The devices in the list of devices response.</p>
*/
inline AdminListDevicesResult& WithDevices(const Aws::Vector<DeviceType>& value) { SetDevices(value); return *this;}
/**
* <p>The devices in the list of devices response.</p>
*/
inline AdminListDevicesResult& WithDevices(Aws::Vector<DeviceType>&& value) { SetDevices(std::move(value)); return *this;}
/**
* <p>The devices in the list of devices response.</p>
*/
inline AdminListDevicesResult& AddDevices(const DeviceType& value) { m_devices.push_back(value); return *this; }
/**
* <p>The devices in the list of devices response.</p>
*/
inline AdminListDevicesResult& AddDevices(DeviceType&& value) { m_devices.push_back(std::move(value)); return *this; }
/**
* <p>The pagination token.</p>
*/
inline const Aws::String& GetPaginationToken() const{ return m_paginationToken; }
/**
* <p>The pagination token.</p>
*/
inline void SetPaginationToken(const Aws::String& value) { m_paginationToken = value; }
/**
* <p>The pagination token.</p>
*/
inline void SetPaginationToken(Aws::String&& value) { m_paginationToken = std::move(value); }
/**
* <p>The pagination token.</p>
*/
inline void SetPaginationToken(const char* value) { m_paginationToken.assign(value); }
/**
* <p>The pagination token.</p>
*/
inline AdminListDevicesResult& WithPaginationToken(const Aws::String& value) { SetPaginationToken(value); return *this;}
/**
* <p>The pagination token.</p>
*/
inline AdminListDevicesResult& WithPaginationToken(Aws::String&& value) { SetPaginationToken(std::move(value)); return *this;}
/**
* <p>The pagination token.</p>
*/
inline AdminListDevicesResult& WithPaginationToken(const char* value) { SetPaginationToken(value); return *this;}
private:
Aws::Vector<DeviceType> m_devices;
Aws::String m_paginationToken;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,205 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminListGroupsForUserRequest : public CognitoIdentityProviderRequest
{
public:
AdminListGroupsForUserRequest();
// 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 "AdminListGroupsForUser"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The username for the user.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The username for the user.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The username for the user.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The username for the user.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The username for the user.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The username for the user.</p>
*/
inline AdminListGroupsForUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The username for the user.</p>
*/
inline AdminListGroupsForUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The username for the user.</p>
*/
inline AdminListGroupsForUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline AdminListGroupsForUserRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline AdminListGroupsForUserRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline AdminListGroupsForUserRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The limit of the request to list groups.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>The limit of the request to list groups.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The limit of the request to list groups.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The limit of the request to list groups.</p>
*/
inline AdminListGroupsForUserRequest& WithLimit(int value) { SetLimit(value); return *this;}
/**
* <p>An identifier that was returned from the previous call to this operation,
* which can be used to return the next set of items in the list.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>An identifier that was returned from the previous call to this operation,
* which can be used to return the next set of items in the list.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>An identifier that was returned from the previous call to this operation,
* which can be used to return the next set of items in the list.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>An identifier that was returned from the previous call to this operation,
* which can be used to return the next set of items in the list.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>An identifier that was returned from the previous call to this operation,
* which can be used to return the next set of items in the list.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>An identifier that was returned from the previous call to this operation,
* which can be used to return the next set of items in the list.</p>
*/
inline AdminListGroupsForUserRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>An identifier that was returned from the previous call to this operation,
* which can be used to return the next set of items in the list.</p>
*/
inline AdminListGroupsForUserRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>An identifier that was returned from the previous call to this operation,
* which can be used to return the next set of items in the list.</p>
*/
inline AdminListGroupsForUserRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cognito-idp/model/GroupType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
class AWS_COGNITOIDENTITYPROVIDER_API AdminListGroupsForUserResult
{
public:
AdminListGroupsForUserResult();
AdminListGroupsForUserResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminListGroupsForUserResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The groups that the user belongs to.</p>
*/
inline const Aws::Vector<GroupType>& GetGroups() const{ return m_groups; }
/**
* <p>The groups that the user belongs to.</p>
*/
inline void SetGroups(const Aws::Vector<GroupType>& value) { m_groups = value; }
/**
* <p>The groups that the user belongs to.</p>
*/
inline void SetGroups(Aws::Vector<GroupType>&& value) { m_groups = std::move(value); }
/**
* <p>The groups that the user belongs to.</p>
*/
inline AdminListGroupsForUserResult& WithGroups(const Aws::Vector<GroupType>& value) { SetGroups(value); return *this;}
/**
* <p>The groups that the user belongs to.</p>
*/
inline AdminListGroupsForUserResult& WithGroups(Aws::Vector<GroupType>&& value) { SetGroups(std::move(value)); return *this;}
/**
* <p>The groups that the user belongs to.</p>
*/
inline AdminListGroupsForUserResult& AddGroups(const GroupType& value) { m_groups.push_back(value); return *this; }
/**
* <p>The groups that the user belongs to.</p>
*/
inline AdminListGroupsForUserResult& AddGroups(GroupType&& value) { m_groups.push_back(std::move(value)); return *this; }
/**
* <p>An identifier that was returned from the previous call to this operation,
* which can be used to return the next set of items in the list.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>An identifier that was returned from the previous call to this operation,
* which can be used to return the next set of items in the list.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>An identifier that was returned from the previous call to this operation,
* which can be used to return the next set of items in the list.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>An identifier that was returned from the previous call to this operation,
* which can be used to return the next set of items in the list.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>An identifier that was returned from the previous call to this operation,
* which can be used to return the next set of items in the list.</p>
*/
inline AdminListGroupsForUserResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>An identifier that was returned from the previous call to this operation,
* which can be used to return the next set of items in the list.</p>
*/
inline AdminListGroupsForUserResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>An identifier that was returned from the previous call to this operation,
* which can be used to return the next set of items in the list.</p>
*/
inline AdminListGroupsForUserResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<GroupType> m_groups;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,197 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminListUserAuthEventsRequest : public CognitoIdentityProviderRequest
{
public:
AdminListUserAuthEventsRequest();
// 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 "AdminListUserAuthEvents"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID.</p>
*/
inline AdminListUserAuthEventsRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminListUserAuthEventsRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminListUserAuthEventsRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool username or an alias.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user pool username or an alias.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user pool username or an alias.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user pool username or an alias.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user pool username or an alias.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user pool username or an alias.</p>
*/
inline AdminListUserAuthEventsRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user pool username or an alias.</p>
*/
inline AdminListUserAuthEventsRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user pool username or an alias.</p>
*/
inline AdminListUserAuthEventsRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>The maximum number of authentication events to return.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of authentication events to return.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of authentication events to return.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of authentication events to return.</p>
*/
inline AdminListUserAuthEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>A pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>A pagination token.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>A pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>A pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>A pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>A pagination token.</p>
*/
inline AdminListUserAuthEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>A pagination token.</p>
*/
inline AdminListUserAuthEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>A pagination token.</p>
*/
inline AdminListUserAuthEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,131 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cognito-idp/model/AuthEventType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
class AWS_COGNITOIDENTITYPROVIDER_API AdminListUserAuthEventsResult
{
public:
AdminListUserAuthEventsResult();
AdminListUserAuthEventsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminListUserAuthEventsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The response object. It includes the <code>EventID</code>,
* <code>EventType</code>, <code>CreationDate</code>, <code>EventRisk</code>, and
* <code>EventResponse</code>.</p>
*/
inline const Aws::Vector<AuthEventType>& GetAuthEvents() const{ return m_authEvents; }
/**
* <p>The response object. It includes the <code>EventID</code>,
* <code>EventType</code>, <code>CreationDate</code>, <code>EventRisk</code>, and
* <code>EventResponse</code>.</p>
*/
inline void SetAuthEvents(const Aws::Vector<AuthEventType>& value) { m_authEvents = value; }
/**
* <p>The response object. It includes the <code>EventID</code>,
* <code>EventType</code>, <code>CreationDate</code>, <code>EventRisk</code>, and
* <code>EventResponse</code>.</p>
*/
inline void SetAuthEvents(Aws::Vector<AuthEventType>&& value) { m_authEvents = std::move(value); }
/**
* <p>The response object. It includes the <code>EventID</code>,
* <code>EventType</code>, <code>CreationDate</code>, <code>EventRisk</code>, and
* <code>EventResponse</code>.</p>
*/
inline AdminListUserAuthEventsResult& WithAuthEvents(const Aws::Vector<AuthEventType>& value) { SetAuthEvents(value); return *this;}
/**
* <p>The response object. It includes the <code>EventID</code>,
* <code>EventType</code>, <code>CreationDate</code>, <code>EventRisk</code>, and
* <code>EventResponse</code>.</p>
*/
inline AdminListUserAuthEventsResult& WithAuthEvents(Aws::Vector<AuthEventType>&& value) { SetAuthEvents(std::move(value)); return *this;}
/**
* <p>The response object. It includes the <code>EventID</code>,
* <code>EventType</code>, <code>CreationDate</code>, <code>EventRisk</code>, and
* <code>EventResponse</code>.</p>
*/
inline AdminListUserAuthEventsResult& AddAuthEvents(const AuthEventType& value) { m_authEvents.push_back(value); return *this; }
/**
* <p>The response object. It includes the <code>EventID</code>,
* <code>EventType</code>, <code>CreationDate</code>, <code>EventRisk</code>, and
* <code>EventResponse</code>.</p>
*/
inline AdminListUserAuthEventsResult& AddAuthEvents(AuthEventType&& value) { m_authEvents.push_back(std::move(value)); return *this; }
/**
* <p>A pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>A pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>A pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>A pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>A pagination token.</p>
*/
inline AdminListUserAuthEventsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>A pagination token.</p>
*/
inline AdminListUserAuthEventsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>A pagination token.</p>
*/
inline AdminListUserAuthEventsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<AuthEventType> m_authEvents;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,173 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminRemoveUserFromGroupRequest : public CognitoIdentityProviderRequest
{
public:
AdminRemoveUserFromGroupRequest();
// 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 "AdminRemoveUserFromGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for the user pool.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline AdminRemoveUserFromGroupRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline AdminRemoveUserFromGroupRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline AdminRemoveUserFromGroupRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The username for the user.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The username for the user.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The username for the user.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The username for the user.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The username for the user.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The username for the user.</p>
*/
inline AdminRemoveUserFromGroupRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The username for the user.</p>
*/
inline AdminRemoveUserFromGroupRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The username for the user.</p>
*/
inline AdminRemoveUserFromGroupRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>The group name.</p>
*/
inline const Aws::String& GetGroupName() const{ return m_groupName; }
/**
* <p>The group name.</p>
*/
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
/**
* <p>The group name.</p>
*/
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
/**
* <p>The group name.</p>
*/
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
/**
* <p>The group name.</p>
*/
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
/**
* <p>The group name.</p>
*/
inline AdminRemoveUserFromGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
/**
* <p>The group name.</p>
*/
inline AdminRemoveUserFromGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
/**
* <p>The group name.</p>
*/
inline AdminRemoveUserFromGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::String m_groupName;
bool m_groupNameHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,484 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the request to reset a user's password as an
* administrator.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminResetUserPasswordRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminResetUserPasswordRequest : public CognitoIdentityProviderRequest
{
public:
AdminResetUserPasswordRequest();
// 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 "AdminResetUserPassword"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for the user pool where you want to reset the user's
* password.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool where you want to reset the user's
* password.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool where you want to reset the user's
* password.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool where you want to reset the user's
* password.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool where you want to reset the user's
* password.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool where you want to reset the user's
* password.</p>
*/
inline AdminResetUserPasswordRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool where you want to reset the user's
* password.</p>
*/
inline AdminResetUserPasswordRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool where you want to reset the user's
* password.</p>
*/
inline AdminResetUserPasswordRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user name of the user whose password you wish to reset.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name of the user whose password you wish to reset.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name of the user whose password you wish to reset.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name of the user whose password you wish to reset.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name of the user whose password you wish to reset.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name of the user whose password you wish to reset.</p>
*/
inline AdminResetUserPasswordRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name of the user whose password you wish to reset.</p>
*/
inline AdminResetUserPasswordRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name of the user whose password you wish to reset.</p>
*/
inline AdminResetUserPasswordRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminResetUserPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your
* AdminResetUserPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminResetUserPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your
* AdminResetUserPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminResetUserPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your
* AdminResetUserPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminResetUserPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your
* AdminResetUserPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminResetUserPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your
* AdminResetUserPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminResetUserPasswordRequest& WithClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetClientMetadata(value); return *this;}
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminResetUserPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your
* AdminResetUserPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminResetUserPasswordRequest& WithClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetClientMetadata(std::move(value)); return *this;}
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminResetUserPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your
* AdminResetUserPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminResetUserPasswordRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminResetUserPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your
* AdminResetUserPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminResetUserPasswordRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminResetUserPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your
* AdminResetUserPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminResetUserPasswordRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminResetUserPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your
* AdminResetUserPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminResetUserPasswordRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminResetUserPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your
* AdminResetUserPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminResetUserPasswordRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminResetUserPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your
* AdminResetUserPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminResetUserPasswordRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminResetUserPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your
* AdminResetUserPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminResetUserPasswordRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_clientMetadata;
bool m_clientMetadataHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the response from the server to reset a user password as an
* administrator.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminResetUserPasswordResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminResetUserPasswordResult
{
public:
AdminResetUserPasswordResult();
AdminResetUserPasswordResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminResetUserPasswordResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,248 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/model/ChallengeNameType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/cognito-idp/model/AuthenticationResultType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Responds to the authentication challenge, as an administrator.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRespondToAuthChallengeResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminRespondToAuthChallengeResult
{
public:
AdminRespondToAuthChallengeResult();
AdminRespondToAuthChallengeResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminRespondToAuthChallengeResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The name of the challenge. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline const ChallengeNameType& GetChallengeName() const{ return m_challengeName; }
/**
* <p>The name of the challenge. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline void SetChallengeName(const ChallengeNameType& value) { m_challengeName = value; }
/**
* <p>The name of the challenge. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline void SetChallengeName(ChallengeNameType&& value) { m_challengeName = std::move(value); }
/**
* <p>The name of the challenge. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline AdminRespondToAuthChallengeResult& WithChallengeName(const ChallengeNameType& value) { SetChallengeName(value); return *this;}
/**
* <p>The name of the challenge. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline AdminRespondToAuthChallengeResult& WithChallengeName(ChallengeNameType&& value) { SetChallengeName(std::move(value)); return *this;}
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. If the caller needs to go through another challenge, they return a
* session with other challenge parameters. This session should be passed as it is
* to the next <code>RespondToAuthChallenge</code> API call.</p>
*/
inline const Aws::String& GetSession() const{ return m_session; }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. If the caller needs to go through another challenge, they return a
* session with other challenge parameters. This session should be passed as it is
* to the next <code>RespondToAuthChallenge</code> API call.</p>
*/
inline void SetSession(const Aws::String& value) { m_session = value; }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. If the caller needs to go through another challenge, they return a
* session with other challenge parameters. This session should be passed as it is
* to the next <code>RespondToAuthChallenge</code> API call.</p>
*/
inline void SetSession(Aws::String&& value) { m_session = std::move(value); }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. If the caller needs to go through another challenge, they return a
* session with other challenge parameters. This session should be passed as it is
* to the next <code>RespondToAuthChallenge</code> API call.</p>
*/
inline void SetSession(const char* value) { m_session.assign(value); }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. If the caller needs to go through another challenge, they return a
* session with other challenge parameters. This session should be passed as it is
* to the next <code>RespondToAuthChallenge</code> API call.</p>
*/
inline AdminRespondToAuthChallengeResult& WithSession(const Aws::String& value) { SetSession(value); return *this;}
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. If the caller needs to go through another challenge, they return a
* session with other challenge parameters. This session should be passed as it is
* to the next <code>RespondToAuthChallenge</code> API call.</p>
*/
inline AdminRespondToAuthChallengeResult& WithSession(Aws::String&& value) { SetSession(std::move(value)); return *this;}
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. If the caller needs to go through another challenge, they return a
* session with other challenge parameters. This session should be passed as it is
* to the next <code>RespondToAuthChallenge</code> API call.</p>
*/
inline AdminRespondToAuthChallengeResult& WithSession(const char* value) { SetSession(value); return *this;}
/**
* <p>The challenge parameters. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetChallengeParameters() const{ return m_challengeParameters; }
/**
* <p>The challenge parameters. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline void SetChallengeParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_challengeParameters = value; }
/**
* <p>The challenge parameters. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline void SetChallengeParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_challengeParameters = std::move(value); }
/**
* <p>The challenge parameters. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline AdminRespondToAuthChallengeResult& WithChallengeParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetChallengeParameters(value); return *this;}
/**
* <p>The challenge parameters. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline AdminRespondToAuthChallengeResult& WithChallengeParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetChallengeParameters(std::move(value)); return *this;}
/**
* <p>The challenge parameters. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline AdminRespondToAuthChallengeResult& AddChallengeParameters(const Aws::String& key, const Aws::String& value) { m_challengeParameters.emplace(key, value); return *this; }
/**
* <p>The challenge parameters. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline AdminRespondToAuthChallengeResult& AddChallengeParameters(Aws::String&& key, const Aws::String& value) { m_challengeParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The challenge parameters. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline AdminRespondToAuthChallengeResult& AddChallengeParameters(const Aws::String& key, Aws::String&& value) { m_challengeParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The challenge parameters. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline AdminRespondToAuthChallengeResult& AddChallengeParameters(Aws::String&& key, Aws::String&& value) { m_challengeParameters.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The challenge parameters. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline AdminRespondToAuthChallengeResult& AddChallengeParameters(const char* key, Aws::String&& value) { m_challengeParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The challenge parameters. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline AdminRespondToAuthChallengeResult& AddChallengeParameters(Aws::String&& key, const char* value) { m_challengeParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The challenge parameters. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
*/
inline AdminRespondToAuthChallengeResult& AddChallengeParameters(const char* key, const char* value) { m_challengeParameters.emplace(key, value); return *this; }
/**
* <p>The result returned by the server in response to the authentication
* request.</p>
*/
inline const AuthenticationResultType& GetAuthenticationResult() const{ return m_authenticationResult; }
/**
* <p>The result returned by the server in response to the authentication
* request.</p>
*/
inline void SetAuthenticationResult(const AuthenticationResultType& value) { m_authenticationResult = value; }
/**
* <p>The result returned by the server in response to the authentication
* request.</p>
*/
inline void SetAuthenticationResult(AuthenticationResultType&& value) { m_authenticationResult = std::move(value); }
/**
* <p>The result returned by the server in response to the authentication
* request.</p>
*/
inline AdminRespondToAuthChallengeResult& WithAuthenticationResult(const AuthenticationResultType& value) { SetAuthenticationResult(value); return *this;}
/**
* <p>The result returned by the server in response to the authentication
* request.</p>
*/
inline AdminRespondToAuthChallengeResult& WithAuthenticationResult(AuthenticationResultType&& value) { SetAuthenticationResult(std::move(value)); return *this;}
private:
ChallengeNameType m_challengeName;
Aws::String m_session;
Aws::Map<Aws::String, Aws::String> m_challengeParameters;
AuthenticationResultType m_authenticationResult;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,199 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/cognito-idp/model/SMSMfaSettingsType.h>
#include <aws/cognito-idp/model/SoftwareTokenMfaSettingsType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminSetUserMFAPreferenceRequest : public CognitoIdentityProviderRequest
{
public:
AdminSetUserMFAPreferenceRequest();
// 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 "AdminSetUserMFAPreference"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The SMS text message MFA settings.</p>
*/
inline const SMSMfaSettingsType& GetSMSMfaSettings() const{ return m_sMSMfaSettings; }
/**
* <p>The SMS text message MFA settings.</p>
*/
inline bool SMSMfaSettingsHasBeenSet() const { return m_sMSMfaSettingsHasBeenSet; }
/**
* <p>The SMS text message MFA settings.</p>
*/
inline void SetSMSMfaSettings(const SMSMfaSettingsType& value) { m_sMSMfaSettingsHasBeenSet = true; m_sMSMfaSettings = value; }
/**
* <p>The SMS text message MFA settings.</p>
*/
inline void SetSMSMfaSettings(SMSMfaSettingsType&& value) { m_sMSMfaSettingsHasBeenSet = true; m_sMSMfaSettings = std::move(value); }
/**
* <p>The SMS text message MFA settings.</p>
*/
inline AdminSetUserMFAPreferenceRequest& WithSMSMfaSettings(const SMSMfaSettingsType& value) { SetSMSMfaSettings(value); return *this;}
/**
* <p>The SMS text message MFA settings.</p>
*/
inline AdminSetUserMFAPreferenceRequest& WithSMSMfaSettings(SMSMfaSettingsType&& value) { SetSMSMfaSettings(std::move(value)); return *this;}
/**
* <p>The time-based one-time password software token MFA settings.</p>
*/
inline const SoftwareTokenMfaSettingsType& GetSoftwareTokenMfaSettings() const{ return m_softwareTokenMfaSettings; }
/**
* <p>The time-based one-time password software token MFA settings.</p>
*/
inline bool SoftwareTokenMfaSettingsHasBeenSet() const { return m_softwareTokenMfaSettingsHasBeenSet; }
/**
* <p>The time-based one-time password software token MFA settings.</p>
*/
inline void SetSoftwareTokenMfaSettings(const SoftwareTokenMfaSettingsType& value) { m_softwareTokenMfaSettingsHasBeenSet = true; m_softwareTokenMfaSettings = value; }
/**
* <p>The time-based one-time password software token MFA settings.</p>
*/
inline void SetSoftwareTokenMfaSettings(SoftwareTokenMfaSettingsType&& value) { m_softwareTokenMfaSettingsHasBeenSet = true; m_softwareTokenMfaSettings = std::move(value); }
/**
* <p>The time-based one-time password software token MFA settings.</p>
*/
inline AdminSetUserMFAPreferenceRequest& WithSoftwareTokenMfaSettings(const SoftwareTokenMfaSettingsType& value) { SetSoftwareTokenMfaSettings(value); return *this;}
/**
* <p>The time-based one-time password software token MFA settings.</p>
*/
inline AdminSetUserMFAPreferenceRequest& WithSoftwareTokenMfaSettings(SoftwareTokenMfaSettingsType&& value) { SetSoftwareTokenMfaSettings(std::move(value)); return *this;}
/**
* <p>The user pool username or alias.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user pool username or alias.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user pool username or alias.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user pool username or alias.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user pool username or alias.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user pool username or alias.</p>
*/
inline AdminSetUserMFAPreferenceRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user pool username or alias.</p>
*/
inline AdminSetUserMFAPreferenceRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user pool username or alias.</p>
*/
inline AdminSetUserMFAPreferenceRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID.</p>
*/
inline AdminSetUserMFAPreferenceRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminSetUserMFAPreferenceRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminSetUserMFAPreferenceRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
private:
SMSMfaSettingsType m_sMSMfaSettings;
bool m_sMSMfaSettingsHasBeenSet;
SoftwareTokenMfaSettingsType m_softwareTokenMfaSettings;
bool m_softwareTokenMfaSettingsHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
class AWS_COGNITOIDENTITYPROVIDER_API AdminSetUserMFAPreferenceResult
{
public:
AdminSetUserMFAPreferenceResult();
AdminSetUserMFAPreferenceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminSetUserMFAPreferenceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,209 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminSetUserPasswordRequest : public CognitoIdentityProviderRequest
{
public:
AdminSetUserPasswordRequest();
// 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 "AdminSetUserPassword"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for the user pool where you want to set the user's
* password.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool where you want to set the user's
* password.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool where you want to set the user's
* password.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool where you want to set the user's
* password.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool where you want to set the user's
* password.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool where you want to set the user's
* password.</p>
*/
inline AdminSetUserPasswordRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool where you want to set the user's
* password.</p>
*/
inline AdminSetUserPasswordRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool where you want to set the user's
* password.</p>
*/
inline AdminSetUserPasswordRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user name of the user whose password you wish to set.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name of the user whose password you wish to set.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name of the user whose password you wish to set.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name of the user whose password you wish to set.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name of the user whose password you wish to set.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name of the user whose password you wish to set.</p>
*/
inline AdminSetUserPasswordRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name of the user whose password you wish to set.</p>
*/
inline AdminSetUserPasswordRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name of the user whose password you wish to set.</p>
*/
inline AdminSetUserPasswordRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>The password for the user.</p>
*/
inline const Aws::String& GetPassword() const{ return m_password; }
/**
* <p>The password for the user.</p>
*/
inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
/**
* <p>The password for the user.</p>
*/
inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
/**
* <p>The password for the user.</p>
*/
inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
/**
* <p>The password for the user.</p>
*/
inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
/**
* <p>The password for the user.</p>
*/
inline AdminSetUserPasswordRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
/**
* <p>The password for the user.</p>
*/
inline AdminSetUserPasswordRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
/**
* <p>The password for the user.</p>
*/
inline AdminSetUserPasswordRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
/**
* <p> <code>True</code> if the password is permanent, <code>False</code> if it is
* temporary.</p>
*/
inline bool GetPermanent() const{ return m_permanent; }
/**
* <p> <code>True</code> if the password is permanent, <code>False</code> if it is
* temporary.</p>
*/
inline bool PermanentHasBeenSet() const { return m_permanentHasBeenSet; }
/**
* <p> <code>True</code> if the password is permanent, <code>False</code> if it is
* temporary.</p>
*/
inline void SetPermanent(bool value) { m_permanentHasBeenSet = true; m_permanent = value; }
/**
* <p> <code>True</code> if the password is permanent, <code>False</code> if it is
* temporary.</p>
*/
inline AdminSetUserPasswordRequest& WithPermanent(bool value) { SetPermanent(value); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::String m_password;
bool m_passwordHasBeenSet;
bool m_permanent;
bool m_permanentHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
class AWS_COGNITOIDENTITYPROVIDER_API AdminSetUserPasswordResult
{
public:
AdminSetUserPasswordResult();
AdminSetUserPasswordResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminSetUserPasswordResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,195 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/cognito-idp/model/MFAOptionType.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>You can use this parameter to set an MFA configuration that uses the SMS
* delivery medium.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserSettingsRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminSetUserSettingsRequest : public CognitoIdentityProviderRequest
{
public:
AdminSetUserSettingsRequest();
// 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 "AdminSetUserSettings"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the user pool that contains the user that you are setting options
* for.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The ID of the user pool that contains the user that you are setting options
* for.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The ID of the user pool that contains the user that you are setting options
* for.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The ID of the user pool that contains the user that you are setting options
* for.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The ID of the user pool that contains the user that you are setting options
* for.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The ID of the user pool that contains the user that you are setting options
* for.</p>
*/
inline AdminSetUserSettingsRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The ID of the user pool that contains the user that you are setting options
* for.</p>
*/
inline AdminSetUserSettingsRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The ID of the user pool that contains the user that you are setting options
* for.</p>
*/
inline AdminSetUserSettingsRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user name of the user that you are setting options for.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name of the user that you are setting options for.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name of the user that you are setting options for.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name of the user that you are setting options for.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name of the user that you are setting options for.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name of the user that you are setting options for.</p>
*/
inline AdminSetUserSettingsRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name of the user that you are setting options for.</p>
*/
inline AdminSetUserSettingsRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name of the user that you are setting options for.</p>
*/
inline AdminSetUserSettingsRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>You can use this parameter only to set an SMS configuration that uses SMS for
* delivery.</p>
*/
inline const Aws::Vector<MFAOptionType>& GetMFAOptions() const{ return m_mFAOptions; }
/**
* <p>You can use this parameter only to set an SMS configuration that uses SMS for
* delivery.</p>
*/
inline bool MFAOptionsHasBeenSet() const { return m_mFAOptionsHasBeenSet; }
/**
* <p>You can use this parameter only to set an SMS configuration that uses SMS for
* delivery.</p>
*/
inline void SetMFAOptions(const Aws::Vector<MFAOptionType>& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions = value; }
/**
* <p>You can use this parameter only to set an SMS configuration that uses SMS for
* delivery.</p>
*/
inline void SetMFAOptions(Aws::Vector<MFAOptionType>&& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions = std::move(value); }
/**
* <p>You can use this parameter only to set an SMS configuration that uses SMS for
* delivery.</p>
*/
inline AdminSetUserSettingsRequest& WithMFAOptions(const Aws::Vector<MFAOptionType>& value) { SetMFAOptions(value); return *this;}
/**
* <p>You can use this parameter only to set an SMS configuration that uses SMS for
* delivery.</p>
*/
inline AdminSetUserSettingsRequest& WithMFAOptions(Aws::Vector<MFAOptionType>&& value) { SetMFAOptions(std::move(value)); return *this;}
/**
* <p>You can use this parameter only to set an SMS configuration that uses SMS for
* delivery.</p>
*/
inline AdminSetUserSettingsRequest& AddMFAOptions(const MFAOptionType& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions.push_back(value); return *this; }
/**
* <p>You can use this parameter only to set an SMS configuration that uses SMS for
* delivery.</p>
*/
inline AdminSetUserSettingsRequest& AddMFAOptions(MFAOptionType&& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions.push_back(std::move(value)); return *this; }
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::Vector<MFAOptionType> m_mFAOptions;
bool m_mFAOptionsHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the response from the server to set user settings as an
* administrator.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserSettingsResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminSetUserSettingsResult
{
public:
AdminSetUserSettingsResult();
AdminSetUserSettingsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminSetUserSettingsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,208 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cognito-idp/model/FeedbackValueType.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminUpdateAuthEventFeedbackRequest : public CognitoIdentityProviderRequest
{
public:
AdminUpdateAuthEventFeedbackRequest();
// 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 "AdminUpdateAuthEventFeedback"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID.</p>
*/
inline AdminUpdateAuthEventFeedbackRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminUpdateAuthEventFeedbackRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminUpdateAuthEventFeedbackRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool username.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user pool username.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user pool username.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user pool username.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user pool username.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user pool username.</p>
*/
inline AdminUpdateAuthEventFeedbackRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user pool username.</p>
*/
inline AdminUpdateAuthEventFeedbackRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user pool username.</p>
*/
inline AdminUpdateAuthEventFeedbackRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>The authentication event ID.</p>
*/
inline const Aws::String& GetEventId() const{ return m_eventId; }
/**
* <p>The authentication event ID.</p>
*/
inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
/**
* <p>The authentication event ID.</p>
*/
inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
/**
* <p>The authentication event ID.</p>
*/
inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
/**
* <p>The authentication event ID.</p>
*/
inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
/**
* <p>The authentication event ID.</p>
*/
inline AdminUpdateAuthEventFeedbackRequest& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
/**
* <p>The authentication event ID.</p>
*/
inline AdminUpdateAuthEventFeedbackRequest& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
/**
* <p>The authentication event ID.</p>
*/
inline AdminUpdateAuthEventFeedbackRequest& WithEventId(const char* value) { SetEventId(value); return *this;}
/**
* <p>The authentication event feedback value.</p>
*/
inline const FeedbackValueType& GetFeedbackValue() const{ return m_feedbackValue; }
/**
* <p>The authentication event feedback value.</p>
*/
inline bool FeedbackValueHasBeenSet() const { return m_feedbackValueHasBeenSet; }
/**
* <p>The authentication event feedback value.</p>
*/
inline void SetFeedbackValue(const FeedbackValueType& value) { m_feedbackValueHasBeenSet = true; m_feedbackValue = value; }
/**
* <p>The authentication event feedback value.</p>
*/
inline void SetFeedbackValue(FeedbackValueType&& value) { m_feedbackValueHasBeenSet = true; m_feedbackValue = std::move(value); }
/**
* <p>The authentication event feedback value.</p>
*/
inline AdminUpdateAuthEventFeedbackRequest& WithFeedbackValue(const FeedbackValueType& value) { SetFeedbackValue(value); return *this;}
/**
* <p>The authentication event feedback value.</p>
*/
inline AdminUpdateAuthEventFeedbackRequest& WithFeedbackValue(FeedbackValueType&& value) { SetFeedbackValue(std::move(value)); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::String m_eventId;
bool m_eventIdHasBeenSet;
FeedbackValueType m_feedbackValue;
bool m_feedbackValueHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
class AWS_COGNITOIDENTITYPROVIDER_API AdminUpdateAuthEventFeedbackResult
{
public:
AdminUpdateAuthEventFeedbackResult();
AdminUpdateAuthEventFeedbackResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminUpdateAuthEventFeedbackResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,212 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cognito-idp/model/DeviceRememberedStatusType.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The request to update the device status, as an administrator.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateDeviceStatusRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminUpdateDeviceStatusRequest : public CognitoIdentityProviderRequest
{
public:
AdminUpdateDeviceStatusRequest();
// 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 "AdminUpdateDeviceStatus"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID.</p>
*/
inline AdminUpdateDeviceStatusRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminUpdateDeviceStatusRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminUpdateDeviceStatusRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user name.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name.</p>
*/
inline AdminUpdateDeviceStatusRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name.</p>
*/
inline AdminUpdateDeviceStatusRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name.</p>
*/
inline AdminUpdateDeviceStatusRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>The device key.</p>
*/
inline const Aws::String& GetDeviceKey() const{ return m_deviceKey; }
/**
* <p>The device key.</p>
*/
inline bool DeviceKeyHasBeenSet() const { return m_deviceKeyHasBeenSet; }
/**
* <p>The device key.</p>
*/
inline void SetDeviceKey(const Aws::String& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = value; }
/**
* <p>The device key.</p>
*/
inline void SetDeviceKey(Aws::String&& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = std::move(value); }
/**
* <p>The device key.</p>
*/
inline void SetDeviceKey(const char* value) { m_deviceKeyHasBeenSet = true; m_deviceKey.assign(value); }
/**
* <p>The device key.</p>
*/
inline AdminUpdateDeviceStatusRequest& WithDeviceKey(const Aws::String& value) { SetDeviceKey(value); return *this;}
/**
* <p>The device key.</p>
*/
inline AdminUpdateDeviceStatusRequest& WithDeviceKey(Aws::String&& value) { SetDeviceKey(std::move(value)); return *this;}
/**
* <p>The device key.</p>
*/
inline AdminUpdateDeviceStatusRequest& WithDeviceKey(const char* value) { SetDeviceKey(value); return *this;}
/**
* <p>The status indicating whether a device has been remembered or not.</p>
*/
inline const DeviceRememberedStatusType& GetDeviceRememberedStatus() const{ return m_deviceRememberedStatus; }
/**
* <p>The status indicating whether a device has been remembered or not.</p>
*/
inline bool DeviceRememberedStatusHasBeenSet() const { return m_deviceRememberedStatusHasBeenSet; }
/**
* <p>The status indicating whether a device has been remembered or not.</p>
*/
inline void SetDeviceRememberedStatus(const DeviceRememberedStatusType& value) { m_deviceRememberedStatusHasBeenSet = true; m_deviceRememberedStatus = value; }
/**
* <p>The status indicating whether a device has been remembered or not.</p>
*/
inline void SetDeviceRememberedStatus(DeviceRememberedStatusType&& value) { m_deviceRememberedStatusHasBeenSet = true; m_deviceRememberedStatus = std::move(value); }
/**
* <p>The status indicating whether a device has been remembered or not.</p>
*/
inline AdminUpdateDeviceStatusRequest& WithDeviceRememberedStatus(const DeviceRememberedStatusType& value) { SetDeviceRememberedStatus(value); return *this;}
/**
* <p>The status indicating whether a device has been remembered or not.</p>
*/
inline AdminUpdateDeviceStatusRequest& WithDeviceRememberedStatus(DeviceRememberedStatusType&& value) { SetDeviceRememberedStatus(std::move(value)); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::String m_deviceKey;
bool m_deviceKeyHasBeenSet;
DeviceRememberedStatusType m_deviceRememberedStatus;
bool m_deviceRememberedStatusHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The status response from the request to update the device, as an
* administrator.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateDeviceStatusResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminUpdateDeviceStatusResult
{
public:
AdminUpdateDeviceStatusResult();
AdminUpdateDeviceStatusResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminUpdateDeviceStatusResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,546 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/cognito-idp/model/AttributeType.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the request to update the user's attributes as an
* administrator.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateUserAttributesRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminUpdateUserAttributesRequest : public CognitoIdentityProviderRequest
{
public:
AdminUpdateUserAttributesRequest();
// 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 "AdminUpdateUserAttributes"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for the user pool where you want to update user
* attributes.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool where you want to update user
* attributes.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool where you want to update user
* attributes.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool where you want to update user
* attributes.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool where you want to update user
* attributes.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool where you want to update user
* attributes.</p>
*/
inline AdminUpdateUserAttributesRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool where you want to update user
* attributes.</p>
*/
inline AdminUpdateUserAttributesRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool where you want to update user
* attributes.</p>
*/
inline AdminUpdateUserAttributesRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user name of the user for whom you want to update user attributes.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name of the user for whom you want to update user attributes.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name of the user for whom you want to update user attributes.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name of the user for whom you want to update user attributes.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name of the user for whom you want to update user attributes.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name of the user for whom you want to update user attributes.</p>
*/
inline AdminUpdateUserAttributesRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name of the user for whom you want to update user attributes.</p>
*/
inline AdminUpdateUserAttributesRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name of the user for whom you want to update user attributes.</p>
*/
inline AdminUpdateUserAttributesRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>An array of name-value pairs representing user attributes.</p> <p>For custom
* attributes, you must prepend the <code>custom:</code> prefix to the attribute
* name.</p>
*/
inline const Aws::Vector<AttributeType>& GetUserAttributes() const{ return m_userAttributes; }
/**
* <p>An array of name-value pairs representing user attributes.</p> <p>For custom
* attributes, you must prepend the <code>custom:</code> prefix to the attribute
* name.</p>
*/
inline bool UserAttributesHasBeenSet() const { return m_userAttributesHasBeenSet; }
/**
* <p>An array of name-value pairs representing user attributes.</p> <p>For custom
* attributes, you must prepend the <code>custom:</code> prefix to the attribute
* name.</p>
*/
inline void SetUserAttributes(const Aws::Vector<AttributeType>& value) { m_userAttributesHasBeenSet = true; m_userAttributes = value; }
/**
* <p>An array of name-value pairs representing user attributes.</p> <p>For custom
* attributes, you must prepend the <code>custom:</code> prefix to the attribute
* name.</p>
*/
inline void SetUserAttributes(Aws::Vector<AttributeType>&& value) { m_userAttributesHasBeenSet = true; m_userAttributes = std::move(value); }
/**
* <p>An array of name-value pairs representing user attributes.</p> <p>For custom
* attributes, you must prepend the <code>custom:</code> prefix to the attribute
* name.</p>
*/
inline AdminUpdateUserAttributesRequest& WithUserAttributes(const Aws::Vector<AttributeType>& value) { SetUserAttributes(value); return *this;}
/**
* <p>An array of name-value pairs representing user attributes.</p> <p>For custom
* attributes, you must prepend the <code>custom:</code> prefix to the attribute
* name.</p>
*/
inline AdminUpdateUserAttributesRequest& WithUserAttributes(Aws::Vector<AttributeType>&& value) { SetUserAttributes(std::move(value)); return *this;}
/**
* <p>An array of name-value pairs representing user attributes.</p> <p>For custom
* attributes, you must prepend the <code>custom:</code> prefix to the attribute
* name.</p>
*/
inline AdminUpdateUserAttributesRequest& AddUserAttributes(const AttributeType& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(value); return *this; }
/**
* <p>An array of name-value pairs representing user attributes.</p> <p>For custom
* attributes, you must prepend the <code>custom:</code> prefix to the attribute
* name.</p>
*/
inline AdminUpdateUserAttributesRequest& AddUserAttributes(AttributeType&& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that
* is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* AdminUpdateUserAttributes request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that
* is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* AdminUpdateUserAttributes request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that
* is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* AdminUpdateUserAttributes request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that
* is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* AdminUpdateUserAttributes request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that
* is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* AdminUpdateUserAttributes request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminUpdateUserAttributesRequest& WithClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetClientMetadata(value); return *this;}
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that
* is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* AdminUpdateUserAttributes request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminUpdateUserAttributesRequest& WithClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetClientMetadata(std::move(value)); return *this;}
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that
* is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* AdminUpdateUserAttributes request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminUpdateUserAttributesRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that
* is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* AdminUpdateUserAttributes request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminUpdateUserAttributesRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that
* is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* AdminUpdateUserAttributes request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminUpdateUserAttributesRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that
* is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* AdminUpdateUserAttributes request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminUpdateUserAttributesRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that
* is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* AdminUpdateUserAttributes request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminUpdateUserAttributesRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that
* is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* AdminUpdateUserAttributes request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminUpdateUserAttributesRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that
* is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* AdminUpdateUserAttributes request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline AdminUpdateUserAttributesRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::Vector<AttributeType> m_userAttributes;
bool m_userAttributesHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_clientMetadata;
bool m_clientMetadataHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the response from the server for the request to update user
* attributes as an administrator.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateUserAttributesResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminUpdateUserAttributesResult
{
public:
AdminUpdateUserAttributesResult();
AdminUpdateUserAttributesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminUpdateUserAttributesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The request to sign out of all devices, as an administrator.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUserGlobalSignOutRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminUserGlobalSignOutRequest : public CognitoIdentityProviderRequest
{
public:
AdminUserGlobalSignOutRequest();
// 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 "AdminUserGlobalSignOut"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID.</p>
*/
inline AdminUserGlobalSignOutRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminUserGlobalSignOutRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline AdminUserGlobalSignOutRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The user name.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name.</p>
*/
inline AdminUserGlobalSignOutRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name.</p>
*/
inline AdminUserGlobalSignOutRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name.</p>
*/
inline AdminUserGlobalSignOutRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The global sign-out response, as an administrator.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUserGlobalSignOutResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AdminUserGlobalSignOutResult
{
public:
AdminUserGlobalSignOutResult();
AdminUserGlobalSignOutResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AdminUserGlobalSignOutResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
enum class AdvancedSecurityModeType
{
NOT_SET,
OFF,
AUDIT,
ENFORCED
};
namespace AdvancedSecurityModeTypeMapper
{
AWS_COGNITOIDENTITYPROVIDER_API AdvancedSecurityModeType GetAdvancedSecurityModeTypeForName(const Aws::String& name);
AWS_COGNITOIDENTITYPROVIDER_API Aws::String GetNameForAdvancedSecurityModeType(AdvancedSecurityModeType value);
} // namespace AdvancedSecurityModeTypeMapper
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
enum class AliasAttributeType
{
NOT_SET,
phone_number,
email,
preferred_username
};
namespace AliasAttributeTypeMapper
{
AWS_COGNITOIDENTITYPROVIDER_API AliasAttributeType GetAliasAttributeTypeForName(const Aws::String& name);
AWS_COGNITOIDENTITYPROVIDER_API Aws::String GetNameForAliasAttributeType(AliasAttributeType value);
} // namespace AliasAttributeTypeMapper
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,285 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The Amazon Pinpoint analytics configuration for collecting metrics for a user
* pool.</p> <p>In regions where Pinpoint is not available, Cognito User
* Pools only supports sending events to Amazon Pinpoint projects in us-east-1. In
* regions where Pinpoint is available, Cognito User Pools will support sending
* events to Amazon Pinpoint projects within that same region. </p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AnalyticsConfigurationType">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AnalyticsConfigurationType
{
public:
AnalyticsConfigurationType();
AnalyticsConfigurationType(Aws::Utils::Json::JsonView jsonValue);
AnalyticsConfigurationType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The application ID for an Amazon Pinpoint application.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID for an Amazon Pinpoint application.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID for an Amazon Pinpoint application.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID for an Amazon Pinpoint application.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID for an Amazon Pinpoint application.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID for an Amazon Pinpoint application.</p>
*/
inline AnalyticsConfigurationType& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID for an Amazon Pinpoint application.</p>
*/
inline AnalyticsConfigurationType& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID for an Amazon Pinpoint application.</p>
*/
inline AnalyticsConfigurationType& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of an Amazon Pinpoint project. You can use the
* Amazon Pinpoint project for Pinpoint integration with the chosen User Pool
* Client. Amazon Cognito publishes events to the pinpoint project declared by the
* app ARN.</p>
*/
inline const Aws::String& GetApplicationArn() const{ return m_applicationArn; }
/**
* <p>The Amazon Resource Name (ARN) of an Amazon Pinpoint project. You can use the
* Amazon Pinpoint project for Pinpoint integration with the chosen User Pool
* Client. Amazon Cognito publishes events to the pinpoint project declared by the
* app ARN.</p>
*/
inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of an Amazon Pinpoint project. You can use the
* Amazon Pinpoint project for Pinpoint integration with the chosen User Pool
* Client. Amazon Cognito publishes events to the pinpoint project declared by the
* app ARN.</p>
*/
inline void SetApplicationArn(const Aws::String& value) { m_applicationArnHasBeenSet = true; m_applicationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of an Amazon Pinpoint project. You can use the
* Amazon Pinpoint project for Pinpoint integration with the chosen User Pool
* Client. Amazon Cognito publishes events to the pinpoint project declared by the
* app ARN.</p>
*/
inline void SetApplicationArn(Aws::String&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of an Amazon Pinpoint project. You can use the
* Amazon Pinpoint project for Pinpoint integration with the chosen User Pool
* Client. Amazon Cognito publishes events to the pinpoint project declared by the
* app ARN.</p>
*/
inline void SetApplicationArn(const char* value) { m_applicationArnHasBeenSet = true; m_applicationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of an Amazon Pinpoint project. You can use the
* Amazon Pinpoint project for Pinpoint integration with the chosen User Pool
* Client. Amazon Cognito publishes events to the pinpoint project declared by the
* app ARN.</p>
*/
inline AnalyticsConfigurationType& WithApplicationArn(const Aws::String& value) { SetApplicationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of an Amazon Pinpoint project. You can use the
* Amazon Pinpoint project for Pinpoint integration with the chosen User Pool
* Client. Amazon Cognito publishes events to the pinpoint project declared by the
* app ARN.</p>
*/
inline AnalyticsConfigurationType& WithApplicationArn(Aws::String&& value) { SetApplicationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of an Amazon Pinpoint project. You can use the
* Amazon Pinpoint project for Pinpoint integration with the chosen User Pool
* Client. Amazon Cognito publishes events to the pinpoint project declared by the
* app ARN.</p>
*/
inline AnalyticsConfigurationType& WithApplicationArn(const char* value) { SetApplicationArn(value); return *this;}
/**
* <p>The ARN of an IAM role that authorizes Amazon Cognito to publish events to
* Amazon Pinpoint analytics.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The ARN of an IAM role that authorizes Amazon Cognito to publish events to
* Amazon Pinpoint analytics.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The ARN of an IAM role that authorizes Amazon Cognito to publish events to
* Amazon Pinpoint analytics.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The ARN of an IAM role that authorizes Amazon Cognito to publish events to
* Amazon Pinpoint analytics.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The ARN of an IAM role that authorizes Amazon Cognito to publish events to
* Amazon Pinpoint analytics.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The ARN of an IAM role that authorizes Amazon Cognito to publish events to
* Amazon Pinpoint analytics.</p>
*/
inline AnalyticsConfigurationType& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The ARN of an IAM role that authorizes Amazon Cognito to publish events to
* Amazon Pinpoint analytics.</p>
*/
inline AnalyticsConfigurationType& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The ARN of an IAM role that authorizes Amazon Cognito to publish events to
* Amazon Pinpoint analytics.</p>
*/
inline AnalyticsConfigurationType& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>The external ID.</p>
*/
inline const Aws::String& GetExternalId() const{ return m_externalId; }
/**
* <p>The external ID.</p>
*/
inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
/**
* <p>The external ID.</p>
*/
inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
/**
* <p>The external ID.</p>
*/
inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
/**
* <p>The external ID.</p>
*/
inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
/**
* <p>The external ID.</p>
*/
inline AnalyticsConfigurationType& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
/**
* <p>The external ID.</p>
*/
inline AnalyticsConfigurationType& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
/**
* <p>The external ID.</p>
*/
inline AnalyticsConfigurationType& WithExternalId(const char* value) { SetExternalId(value); return *this;}
/**
* <p>If <code>UserDataShared</code> is <code>true</code>, Amazon Cognito will
* include user data in the events it publishes to Amazon Pinpoint analytics.</p>
*/
inline bool GetUserDataShared() const{ return m_userDataShared; }
/**
* <p>If <code>UserDataShared</code> is <code>true</code>, Amazon Cognito will
* include user data in the events it publishes to Amazon Pinpoint analytics.</p>
*/
inline bool UserDataSharedHasBeenSet() const { return m_userDataSharedHasBeenSet; }
/**
* <p>If <code>UserDataShared</code> is <code>true</code>, Amazon Cognito will
* include user data in the events it publishes to Amazon Pinpoint analytics.</p>
*/
inline void SetUserDataShared(bool value) { m_userDataSharedHasBeenSet = true; m_userDataShared = value; }
/**
* <p>If <code>UserDataShared</code> is <code>true</code>, Amazon Cognito will
* include user data in the events it publishes to Amazon Pinpoint analytics.</p>
*/
inline AnalyticsConfigurationType& WithUserDataShared(bool value) { SetUserDataShared(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_applicationArn;
bool m_applicationArnHasBeenSet;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
Aws::String m_externalId;
bool m_externalIdHasBeenSet;
bool m_userDataShared;
bool m_userDataSharedHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>An Amazon Pinpoint analytics endpoint.</p> <p>An endpoint uniquely identifies
* a mobile device, email address, or phone number that can receive messages from
* Amazon Pinpoint analytics.</p> <p>Cognito User Pools only supports
* sending events to Amazon Pinpoint projects in the US East (N. Virginia)
* us-east-1 Region, regardless of the region in which the user pool resides.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AnalyticsMetadataType">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AnalyticsMetadataType
{
public:
AnalyticsMetadataType();
AnalyticsMetadataType(Aws::Utils::Json::JsonView jsonValue);
AnalyticsMetadataType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The endpoint ID.</p>
*/
inline const Aws::String& GetAnalyticsEndpointId() const{ return m_analyticsEndpointId; }
/**
* <p>The endpoint ID.</p>
*/
inline bool AnalyticsEndpointIdHasBeenSet() const { return m_analyticsEndpointIdHasBeenSet; }
/**
* <p>The endpoint ID.</p>
*/
inline void SetAnalyticsEndpointId(const Aws::String& value) { m_analyticsEndpointIdHasBeenSet = true; m_analyticsEndpointId = value; }
/**
* <p>The endpoint ID.</p>
*/
inline void SetAnalyticsEndpointId(Aws::String&& value) { m_analyticsEndpointIdHasBeenSet = true; m_analyticsEndpointId = std::move(value); }
/**
* <p>The endpoint ID.</p>
*/
inline void SetAnalyticsEndpointId(const char* value) { m_analyticsEndpointIdHasBeenSet = true; m_analyticsEndpointId.assign(value); }
/**
* <p>The endpoint ID.</p>
*/
inline AnalyticsMetadataType& WithAnalyticsEndpointId(const Aws::String& value) { SetAnalyticsEndpointId(value); return *this;}
/**
* <p>The endpoint ID.</p>
*/
inline AnalyticsMetadataType& WithAnalyticsEndpointId(Aws::String&& value) { SetAnalyticsEndpointId(std::move(value)); return *this;}
/**
* <p>The endpoint ID.</p>
*/
inline AnalyticsMetadataType& WithAnalyticsEndpointId(const char* value) { SetAnalyticsEndpointId(value); return *this;}
private:
Aws::String m_analyticsEndpointId;
bool m_analyticsEndpointIdHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
*/
class AWS_COGNITOIDENTITYPROVIDER_API AssociateSoftwareTokenRequest : public CognitoIdentityProviderRequest
{
public:
AssociateSoftwareTokenRequest();
// 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 "AssociateSoftwareToken"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The access token.</p>
*/
inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
/**
* <p>The access token.</p>
*/
inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
/**
* <p>The access token.</p>
*/
inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
/**
* <p>The access token.</p>
*/
inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
/**
* <p>The access token.</p>
*/
inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
/**
* <p>The access token.</p>
*/
inline AssociateSoftwareTokenRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
/**
* <p>The access token.</p>
*/
inline AssociateSoftwareTokenRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
/**
* <p>The access token.</p>
*/
inline AssociateSoftwareTokenRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. This allows authentication of the user as part of the MFA setup
* process.</p>
*/
inline const Aws::String& GetSession() const{ return m_session; }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. This allows authentication of the user as part of the MFA setup
* process.</p>
*/
inline bool SessionHasBeenSet() const { return m_sessionHasBeenSet; }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. This allows authentication of the user as part of the MFA setup
* process.</p>
*/
inline void SetSession(const Aws::String& value) { m_sessionHasBeenSet = true; m_session = value; }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. This allows authentication of the user as part of the MFA setup
* process.</p>
*/
inline void SetSession(Aws::String&& value) { m_sessionHasBeenSet = true; m_session = std::move(value); }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. This allows authentication of the user as part of the MFA setup
* process.</p>
*/
inline void SetSession(const char* value) { m_sessionHasBeenSet = true; m_session.assign(value); }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. This allows authentication of the user as part of the MFA setup
* process.</p>
*/
inline AssociateSoftwareTokenRequest& WithSession(const Aws::String& value) { SetSession(value); return *this;}
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. This allows authentication of the user as part of the MFA setup
* process.</p>
*/
inline AssociateSoftwareTokenRequest& WithSession(Aws::String&& value) { SetSession(std::move(value)); return *this;}
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. This allows authentication of the user as part of the MFA setup
* process.</p>
*/
inline AssociateSoftwareTokenRequest& WithSession(const char* value) { SetSession(value); return *this;}
private:
Aws::String m_accessToken;
bool m_accessTokenHasBeenSet;
Aws::String m_session;
bool m_sessionHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,136 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
class AWS_COGNITOIDENTITYPROVIDER_API AssociateSoftwareTokenResult
{
public:
AssociateSoftwareTokenResult();
AssociateSoftwareTokenResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AssociateSoftwareTokenResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A unique generated shared secret code that is used in the TOTP algorithm to
* generate a one time code.</p>
*/
inline const Aws::String& GetSecretCode() const{ return m_secretCode; }
/**
* <p>A unique generated shared secret code that is used in the TOTP algorithm to
* generate a one time code.</p>
*/
inline void SetSecretCode(const Aws::String& value) { m_secretCode = value; }
/**
* <p>A unique generated shared secret code that is used in the TOTP algorithm to
* generate a one time code.</p>
*/
inline void SetSecretCode(Aws::String&& value) { m_secretCode = std::move(value); }
/**
* <p>A unique generated shared secret code that is used in the TOTP algorithm to
* generate a one time code.</p>
*/
inline void SetSecretCode(const char* value) { m_secretCode.assign(value); }
/**
* <p>A unique generated shared secret code that is used in the TOTP algorithm to
* generate a one time code.</p>
*/
inline AssociateSoftwareTokenResult& WithSecretCode(const Aws::String& value) { SetSecretCode(value); return *this;}
/**
* <p>A unique generated shared secret code that is used in the TOTP algorithm to
* generate a one time code.</p>
*/
inline AssociateSoftwareTokenResult& WithSecretCode(Aws::String&& value) { SetSecretCode(std::move(value)); return *this;}
/**
* <p>A unique generated shared secret code that is used in the TOTP algorithm to
* generate a one time code.</p>
*/
inline AssociateSoftwareTokenResult& WithSecretCode(const char* value) { SetSecretCode(value); return *this;}
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. This allows authentication of the user as part of the MFA setup
* process.</p>
*/
inline const Aws::String& GetSession() const{ return m_session; }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. This allows authentication of the user as part of the MFA setup
* process.</p>
*/
inline void SetSession(const Aws::String& value) { m_session = value; }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. This allows authentication of the user as part of the MFA setup
* process.</p>
*/
inline void SetSession(Aws::String&& value) { m_session = std::move(value); }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. This allows authentication of the user as part of the MFA setup
* process.</p>
*/
inline void SetSession(const char* value) { m_session.assign(value); }
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. This allows authentication of the user as part of the MFA setup
* process.</p>
*/
inline AssociateSoftwareTokenResult& WithSession(const Aws::String& value) { SetSession(value); return *this;}
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. This allows authentication of the user as part of the MFA setup
* process.</p>
*/
inline AssociateSoftwareTokenResult& WithSession(Aws::String&& value) { SetSession(std::move(value)); return *this;}
/**
* <p>The session which should be passed both ways in challenge-response calls to
* the service. This allows authentication of the user as part of the MFA setup
* process.</p>
*/
inline AssociateSoftwareTokenResult& WithSession(const char* value) { SetSession(value); return *this;}
private:
Aws::String m_secretCode;
Aws::String m_session;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
enum class AttributeDataType
{
NOT_SET,
String,
Number,
DateTime,
Boolean
};
namespace AttributeDataTypeMapper
{
AWS_COGNITOIDENTITYPROVIDER_API AttributeDataType GetAttributeDataTypeForName(const Aws::String& name);
AWS_COGNITOIDENTITYPROVIDER_API Aws::String GetNameForAttributeDataType(AttributeDataType value);
} // namespace AttributeDataTypeMapper
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Specifies whether the attribute is standard or custom.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AttributeType">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AttributeType
{
public:
AttributeType();
AttributeType(Aws::Utils::Json::JsonView jsonValue);
AttributeType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the attribute.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the attribute.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the attribute.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the attribute.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the attribute.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the attribute.</p>
*/
inline AttributeType& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the attribute.</p>
*/
inline AttributeType& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the attribute.</p>
*/
inline AttributeType& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The value of the attribute.</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The value of the attribute.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value of the attribute.</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value of the attribute.</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The value of the attribute.</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The value of the attribute.</p>
*/
inline AttributeType& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The value of the attribute.</p>
*/
inline AttributeType& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The value of the attribute.</p>
*/
inline AttributeType& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,362 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cognito-idp/model/EventType.h>
#include <aws/core/utils/DateTime.h>
#include <aws/cognito-idp/model/EventResponseType.h>
#include <aws/cognito-idp/model/EventRiskType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/cognito-idp/model/EventContextDataType.h>
#include <aws/cognito-idp/model/EventFeedbackType.h>
#include <aws/cognito-idp/model/ChallengeResponseType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The authentication event type.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AuthEventType">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AuthEventType
{
public:
AuthEventType();
AuthEventType(Aws::Utils::Json::JsonView jsonValue);
AuthEventType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The event ID.</p>
*/
inline const Aws::String& GetEventId() const{ return m_eventId; }
/**
* <p>The event ID.</p>
*/
inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
/**
* <p>The event ID.</p>
*/
inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
/**
* <p>The event ID.</p>
*/
inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
/**
* <p>The event ID.</p>
*/
inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
/**
* <p>The event ID.</p>
*/
inline AuthEventType& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
/**
* <p>The event ID.</p>
*/
inline AuthEventType& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
/**
* <p>The event ID.</p>
*/
inline AuthEventType& WithEventId(const char* value) { SetEventId(value); return *this;}
/**
* <p>The event type.</p>
*/
inline const EventType& GetEventType() const{ return m_eventType; }
/**
* <p>The event type.</p>
*/
inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
/**
* <p>The event type.</p>
*/
inline void SetEventType(const EventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
/**
* <p>The event type.</p>
*/
inline void SetEventType(EventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
/**
* <p>The event type.</p>
*/
inline AuthEventType& WithEventType(const EventType& value) { SetEventType(value); return *this;}
/**
* <p>The event type.</p>
*/
inline AuthEventType& WithEventType(EventType&& value) { SetEventType(std::move(value)); return *this;}
/**
* <p>The creation date</p>
*/
inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
/**
* <p>The creation date</p>
*/
inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
/**
* <p>The creation date</p>
*/
inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
/**
* <p>The creation date</p>
*/
inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
/**
* <p>The creation date</p>
*/
inline AuthEventType& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
/**
* <p>The creation date</p>
*/
inline AuthEventType& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
/**
* <p>The event response.</p>
*/
inline const EventResponseType& GetEventResponse() const{ return m_eventResponse; }
/**
* <p>The event response.</p>
*/
inline bool EventResponseHasBeenSet() const { return m_eventResponseHasBeenSet; }
/**
* <p>The event response.</p>
*/
inline void SetEventResponse(const EventResponseType& value) { m_eventResponseHasBeenSet = true; m_eventResponse = value; }
/**
* <p>The event response.</p>
*/
inline void SetEventResponse(EventResponseType&& value) { m_eventResponseHasBeenSet = true; m_eventResponse = std::move(value); }
/**
* <p>The event response.</p>
*/
inline AuthEventType& WithEventResponse(const EventResponseType& value) { SetEventResponse(value); return *this;}
/**
* <p>The event response.</p>
*/
inline AuthEventType& WithEventResponse(EventResponseType&& value) { SetEventResponse(std::move(value)); return *this;}
/**
* <p>The event risk.</p>
*/
inline const EventRiskType& GetEventRisk() const{ return m_eventRisk; }
/**
* <p>The event risk.</p>
*/
inline bool EventRiskHasBeenSet() const { return m_eventRiskHasBeenSet; }
/**
* <p>The event risk.</p>
*/
inline void SetEventRisk(const EventRiskType& value) { m_eventRiskHasBeenSet = true; m_eventRisk = value; }
/**
* <p>The event risk.</p>
*/
inline void SetEventRisk(EventRiskType&& value) { m_eventRiskHasBeenSet = true; m_eventRisk = std::move(value); }
/**
* <p>The event risk.</p>
*/
inline AuthEventType& WithEventRisk(const EventRiskType& value) { SetEventRisk(value); return *this;}
/**
* <p>The event risk.</p>
*/
inline AuthEventType& WithEventRisk(EventRiskType&& value) { SetEventRisk(std::move(value)); return *this;}
/**
* <p>The challenge responses.</p>
*/
inline const Aws::Vector<ChallengeResponseType>& GetChallengeResponses() const{ return m_challengeResponses; }
/**
* <p>The challenge responses.</p>
*/
inline bool ChallengeResponsesHasBeenSet() const { return m_challengeResponsesHasBeenSet; }
/**
* <p>The challenge responses.</p>
*/
inline void SetChallengeResponses(const Aws::Vector<ChallengeResponseType>& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses = value; }
/**
* <p>The challenge responses.</p>
*/
inline void SetChallengeResponses(Aws::Vector<ChallengeResponseType>&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses = std::move(value); }
/**
* <p>The challenge responses.</p>
*/
inline AuthEventType& WithChallengeResponses(const Aws::Vector<ChallengeResponseType>& value) { SetChallengeResponses(value); return *this;}
/**
* <p>The challenge responses.</p>
*/
inline AuthEventType& WithChallengeResponses(Aws::Vector<ChallengeResponseType>&& value) { SetChallengeResponses(std::move(value)); return *this;}
/**
* <p>The challenge responses.</p>
*/
inline AuthEventType& AddChallengeResponses(const ChallengeResponseType& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.push_back(value); return *this; }
/**
* <p>The challenge responses.</p>
*/
inline AuthEventType& AddChallengeResponses(ChallengeResponseType&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.push_back(std::move(value)); return *this; }
/**
* <p>The user context data captured at the time of an event request. It provides
* additional information about the client from which event the request is
* received.</p>
*/
inline const EventContextDataType& GetEventContextData() const{ return m_eventContextData; }
/**
* <p>The user context data captured at the time of an event request. It provides
* additional information about the client from which event the request is
* received.</p>
*/
inline bool EventContextDataHasBeenSet() const { return m_eventContextDataHasBeenSet; }
/**
* <p>The user context data captured at the time of an event request. It provides
* additional information about the client from which event the request is
* received.</p>
*/
inline void SetEventContextData(const EventContextDataType& value) { m_eventContextDataHasBeenSet = true; m_eventContextData = value; }
/**
* <p>The user context data captured at the time of an event request. It provides
* additional information about the client from which event the request is
* received.</p>
*/
inline void SetEventContextData(EventContextDataType&& value) { m_eventContextDataHasBeenSet = true; m_eventContextData = std::move(value); }
/**
* <p>The user context data captured at the time of an event request. It provides
* additional information about the client from which event the request is
* received.</p>
*/
inline AuthEventType& WithEventContextData(const EventContextDataType& value) { SetEventContextData(value); return *this;}
/**
* <p>The user context data captured at the time of an event request. It provides
* additional information about the client from which event the request is
* received.</p>
*/
inline AuthEventType& WithEventContextData(EventContextDataType&& value) { SetEventContextData(std::move(value)); return *this;}
/**
* <p>A flag specifying the user feedback captured at the time of an event request
* is good or bad. </p>
*/
inline const EventFeedbackType& GetEventFeedback() const{ return m_eventFeedback; }
/**
* <p>A flag specifying the user feedback captured at the time of an event request
* is good or bad. </p>
*/
inline bool EventFeedbackHasBeenSet() const { return m_eventFeedbackHasBeenSet; }
/**
* <p>A flag specifying the user feedback captured at the time of an event request
* is good or bad. </p>
*/
inline void SetEventFeedback(const EventFeedbackType& value) { m_eventFeedbackHasBeenSet = true; m_eventFeedback = value; }
/**
* <p>A flag specifying the user feedback captured at the time of an event request
* is good or bad. </p>
*/
inline void SetEventFeedback(EventFeedbackType&& value) { m_eventFeedbackHasBeenSet = true; m_eventFeedback = std::move(value); }
/**
* <p>A flag specifying the user feedback captured at the time of an event request
* is good or bad. </p>
*/
inline AuthEventType& WithEventFeedback(const EventFeedbackType& value) { SetEventFeedback(value); return *this;}
/**
* <p>A flag specifying the user feedback captured at the time of an event request
* is good or bad. </p>
*/
inline AuthEventType& WithEventFeedback(EventFeedbackType&& value) { SetEventFeedback(std::move(value)); return *this;}
private:
Aws::String m_eventId;
bool m_eventIdHasBeenSet;
EventType m_eventType;
bool m_eventTypeHasBeenSet;
Aws::Utils::DateTime m_creationDate;
bool m_creationDateHasBeenSet;
EventResponseType m_eventResponse;
bool m_eventResponseHasBeenSet;
EventRiskType m_eventRisk;
bool m_eventRiskHasBeenSet;
Aws::Vector<ChallengeResponseType> m_challengeResponses;
bool m_challengeResponsesHasBeenSet;
EventContextDataType m_eventContextData;
bool m_eventContextDataHasBeenSet;
EventFeedbackType m_eventFeedback;
bool m_eventFeedbackHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
enum class AuthFlowType
{
NOT_SET,
USER_SRP_AUTH,
REFRESH_TOKEN_AUTH,
REFRESH_TOKEN,
CUSTOM_AUTH,
ADMIN_NO_SRP_AUTH,
USER_PASSWORD_AUTH,
ADMIN_USER_PASSWORD_AUTH
};
namespace AuthFlowTypeMapper
{
AWS_COGNITOIDENTITYPROVIDER_API AuthFlowType GetAuthFlowTypeForName(const Aws::String& name);
AWS_COGNITOIDENTITYPROVIDER_API Aws::String GetNameForAuthFlowType(AuthFlowType value);
} // namespace AuthFlowTypeMapper
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,279 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cognito-idp/model/NewDeviceMetadataType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The authentication result.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AuthenticationResultType">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API AuthenticationResultType
{
public:
AuthenticationResultType();
AuthenticationResultType(Aws::Utils::Json::JsonView jsonValue);
AuthenticationResultType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The access token.</p>
*/
inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
/**
* <p>The access token.</p>
*/
inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
/**
* <p>The access token.</p>
*/
inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
/**
* <p>The access token.</p>
*/
inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
/**
* <p>The access token.</p>
*/
inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
/**
* <p>The access token.</p>
*/
inline AuthenticationResultType& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
/**
* <p>The access token.</p>
*/
inline AuthenticationResultType& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
/**
* <p>The access token.</p>
*/
inline AuthenticationResultType& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
/**
* <p>The expiration period of the authentication result in seconds.</p>
*/
inline int GetExpiresIn() const{ return m_expiresIn; }
/**
* <p>The expiration period of the authentication result in seconds.</p>
*/
inline bool ExpiresInHasBeenSet() const { return m_expiresInHasBeenSet; }
/**
* <p>The expiration period of the authentication result in seconds.</p>
*/
inline void SetExpiresIn(int value) { m_expiresInHasBeenSet = true; m_expiresIn = value; }
/**
* <p>The expiration period of the authentication result in seconds.</p>
*/
inline AuthenticationResultType& WithExpiresIn(int value) { SetExpiresIn(value); return *this;}
/**
* <p>The token type.</p>
*/
inline const Aws::String& GetTokenType() const{ return m_tokenType; }
/**
* <p>The token type.</p>
*/
inline bool TokenTypeHasBeenSet() const { return m_tokenTypeHasBeenSet; }
/**
* <p>The token type.</p>
*/
inline void SetTokenType(const Aws::String& value) { m_tokenTypeHasBeenSet = true; m_tokenType = value; }
/**
* <p>The token type.</p>
*/
inline void SetTokenType(Aws::String&& value) { m_tokenTypeHasBeenSet = true; m_tokenType = std::move(value); }
/**
* <p>The token type.</p>
*/
inline void SetTokenType(const char* value) { m_tokenTypeHasBeenSet = true; m_tokenType.assign(value); }
/**
* <p>The token type.</p>
*/
inline AuthenticationResultType& WithTokenType(const Aws::String& value) { SetTokenType(value); return *this;}
/**
* <p>The token type.</p>
*/
inline AuthenticationResultType& WithTokenType(Aws::String&& value) { SetTokenType(std::move(value)); return *this;}
/**
* <p>The token type.</p>
*/
inline AuthenticationResultType& WithTokenType(const char* value) { SetTokenType(value); return *this;}
/**
* <p>The refresh token.</p>
*/
inline const Aws::String& GetRefreshToken() const{ return m_refreshToken; }
/**
* <p>The refresh token.</p>
*/
inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; }
/**
* <p>The refresh token.</p>
*/
inline void SetRefreshToken(const Aws::String& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = value; }
/**
* <p>The refresh token.</p>
*/
inline void SetRefreshToken(Aws::String&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::move(value); }
/**
* <p>The refresh token.</p>
*/
inline void SetRefreshToken(const char* value) { m_refreshTokenHasBeenSet = true; m_refreshToken.assign(value); }
/**
* <p>The refresh token.</p>
*/
inline AuthenticationResultType& WithRefreshToken(const Aws::String& value) { SetRefreshToken(value); return *this;}
/**
* <p>The refresh token.</p>
*/
inline AuthenticationResultType& WithRefreshToken(Aws::String&& value) { SetRefreshToken(std::move(value)); return *this;}
/**
* <p>The refresh token.</p>
*/
inline AuthenticationResultType& WithRefreshToken(const char* value) { SetRefreshToken(value); return *this;}
/**
* <p>The ID token.</p>
*/
inline const Aws::String& GetIdToken() const{ return m_idToken; }
/**
* <p>The ID token.</p>
*/
inline bool IdTokenHasBeenSet() const { return m_idTokenHasBeenSet; }
/**
* <p>The ID token.</p>
*/
inline void SetIdToken(const Aws::String& value) { m_idTokenHasBeenSet = true; m_idToken = value; }
/**
* <p>The ID token.</p>
*/
inline void SetIdToken(Aws::String&& value) { m_idTokenHasBeenSet = true; m_idToken = std::move(value); }
/**
* <p>The ID token.</p>
*/
inline void SetIdToken(const char* value) { m_idTokenHasBeenSet = true; m_idToken.assign(value); }
/**
* <p>The ID token.</p>
*/
inline AuthenticationResultType& WithIdToken(const Aws::String& value) { SetIdToken(value); return *this;}
/**
* <p>The ID token.</p>
*/
inline AuthenticationResultType& WithIdToken(Aws::String&& value) { SetIdToken(std::move(value)); return *this;}
/**
* <p>The ID token.</p>
*/
inline AuthenticationResultType& WithIdToken(const char* value) { SetIdToken(value); return *this;}
/**
* <p>The new device metadata from an authentication result.</p>
*/
inline const NewDeviceMetadataType& GetNewDeviceMetadata() const{ return m_newDeviceMetadata; }
/**
* <p>The new device metadata from an authentication result.</p>
*/
inline bool NewDeviceMetadataHasBeenSet() const { return m_newDeviceMetadataHasBeenSet; }
/**
* <p>The new device metadata from an authentication result.</p>
*/
inline void SetNewDeviceMetadata(const NewDeviceMetadataType& value) { m_newDeviceMetadataHasBeenSet = true; m_newDeviceMetadata = value; }
/**
* <p>The new device metadata from an authentication result.</p>
*/
inline void SetNewDeviceMetadata(NewDeviceMetadataType&& value) { m_newDeviceMetadataHasBeenSet = true; m_newDeviceMetadata = std::move(value); }
/**
* <p>The new device metadata from an authentication result.</p>
*/
inline AuthenticationResultType& WithNewDeviceMetadata(const NewDeviceMetadataType& value) { SetNewDeviceMetadata(value); return *this;}
/**
* <p>The new device metadata from an authentication result.</p>
*/
inline AuthenticationResultType& WithNewDeviceMetadata(NewDeviceMetadataType&& value) { SetNewDeviceMetadata(std::move(value)); return *this;}
private:
Aws::String m_accessToken;
bool m_accessTokenHasBeenSet;
int m_expiresIn;
bool m_expiresInHasBeenSet;
Aws::String m_tokenType;
bool m_tokenTypeHasBeenSet;
Aws::String m_refreshToken;
bool m_refreshTokenHasBeenSet;
Aws::String m_idToken;
bool m_idTokenHasBeenSet;
NewDeviceMetadataType m_newDeviceMetadata;
bool m_newDeviceMetadataHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
enum class ChallengeName
{
NOT_SET,
Password,
Mfa
};
namespace ChallengeNameMapper
{
AWS_COGNITOIDENTITYPROVIDER_API ChallengeName GetChallengeNameForName(const Aws::String& name);
AWS_COGNITOIDENTITYPROVIDER_API Aws::String GetNameForChallengeName(ChallengeName value);
} // namespace ChallengeNameMapper
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,39 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
enum class ChallengeNameType
{
NOT_SET,
SMS_MFA,
SOFTWARE_TOKEN_MFA,
SELECT_MFA_TYPE,
MFA_SETUP,
PASSWORD_VERIFIER,
CUSTOM_CHALLENGE,
DEVICE_SRP_AUTH,
DEVICE_PASSWORD_VERIFIER,
ADMIN_NO_SRP_AUTH,
NEW_PASSWORD_REQUIRED
};
namespace ChallengeNameTypeMapper
{
AWS_COGNITOIDENTITYPROVIDER_API ChallengeNameType GetChallengeNameTypeForName(const Aws::String& name);
AWS_COGNITOIDENTITYPROVIDER_API Aws::String GetNameForChallengeNameType(ChallengeNameType value);
} // namespace ChallengeNameTypeMapper
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
enum class ChallengeResponse
{
NOT_SET,
Success,
Failure
};
namespace ChallengeResponseMapper
{
AWS_COGNITOIDENTITYPROVIDER_API ChallengeResponse GetChallengeResponseForName(const Aws::String& name);
AWS_COGNITOIDENTITYPROVIDER_API Aws::String GetNameForChallengeResponse(ChallengeResponse value);
} // namespace ChallengeResponseMapper
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,113 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/model/ChallengeName.h>
#include <aws/cognito-idp/model/ChallengeResponse.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The challenge response type.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ChallengeResponseType">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API ChallengeResponseType
{
public:
ChallengeResponseType();
ChallengeResponseType(Aws::Utils::Json::JsonView jsonValue);
ChallengeResponseType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The challenge name</p>
*/
inline const ChallengeName& GetChallengeName() const{ return m_challengeName; }
/**
* <p>The challenge name</p>
*/
inline bool ChallengeNameHasBeenSet() const { return m_challengeNameHasBeenSet; }
/**
* <p>The challenge name</p>
*/
inline void SetChallengeName(const ChallengeName& value) { m_challengeNameHasBeenSet = true; m_challengeName = value; }
/**
* <p>The challenge name</p>
*/
inline void SetChallengeName(ChallengeName&& value) { m_challengeNameHasBeenSet = true; m_challengeName = std::move(value); }
/**
* <p>The challenge name</p>
*/
inline ChallengeResponseType& WithChallengeName(const ChallengeName& value) { SetChallengeName(value); return *this;}
/**
* <p>The challenge name</p>
*/
inline ChallengeResponseType& WithChallengeName(ChallengeName&& value) { SetChallengeName(std::move(value)); return *this;}
/**
* <p>The challenge response.</p>
*/
inline const ChallengeResponse& GetChallengeResponse() const{ return m_challengeResponse; }
/**
* <p>The challenge response.</p>
*/
inline bool ChallengeResponseHasBeenSet() const { return m_challengeResponseHasBeenSet; }
/**
* <p>The challenge response.</p>
*/
inline void SetChallengeResponse(const ChallengeResponse& value) { m_challengeResponseHasBeenSet = true; m_challengeResponse = value; }
/**
* <p>The challenge response.</p>
*/
inline void SetChallengeResponse(ChallengeResponse&& value) { m_challengeResponseHasBeenSet = true; m_challengeResponse = std::move(value); }
/**
* <p>The challenge response.</p>
*/
inline ChallengeResponseType& WithChallengeResponse(const ChallengeResponse& value) { SetChallengeResponse(value); return *this;}
/**
* <p>The challenge response.</p>
*/
inline ChallengeResponseType& WithChallengeResponse(ChallengeResponse&& value) { SetChallengeResponse(std::move(value)); return *this;}
private:
ChallengeName m_challengeName;
bool m_challengeNameHasBeenSet;
ChallengeResponse m_challengeResponse;
bool m_challengeResponseHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the request to change a user password.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ChangePasswordRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API ChangePasswordRequest : public CognitoIdentityProviderRequest
{
public:
ChangePasswordRequest();
// 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 "ChangePassword"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The old password.</p>
*/
inline const Aws::String& GetPreviousPassword() const{ return m_previousPassword; }
/**
* <p>The old password.</p>
*/
inline bool PreviousPasswordHasBeenSet() const { return m_previousPasswordHasBeenSet; }
/**
* <p>The old password.</p>
*/
inline void SetPreviousPassword(const Aws::String& value) { m_previousPasswordHasBeenSet = true; m_previousPassword = value; }
/**
* <p>The old password.</p>
*/
inline void SetPreviousPassword(Aws::String&& value) { m_previousPasswordHasBeenSet = true; m_previousPassword = std::move(value); }
/**
* <p>The old password.</p>
*/
inline void SetPreviousPassword(const char* value) { m_previousPasswordHasBeenSet = true; m_previousPassword.assign(value); }
/**
* <p>The old password.</p>
*/
inline ChangePasswordRequest& WithPreviousPassword(const Aws::String& value) { SetPreviousPassword(value); return *this;}
/**
* <p>The old password.</p>
*/
inline ChangePasswordRequest& WithPreviousPassword(Aws::String&& value) { SetPreviousPassword(std::move(value)); return *this;}
/**
* <p>The old password.</p>
*/
inline ChangePasswordRequest& WithPreviousPassword(const char* value) { SetPreviousPassword(value); return *this;}
/**
* <p>The new password.</p>
*/
inline const Aws::String& GetProposedPassword() const{ return m_proposedPassword; }
/**
* <p>The new password.</p>
*/
inline bool ProposedPasswordHasBeenSet() const { return m_proposedPasswordHasBeenSet; }
/**
* <p>The new password.</p>
*/
inline void SetProposedPassword(const Aws::String& value) { m_proposedPasswordHasBeenSet = true; m_proposedPassword = value; }
/**
* <p>The new password.</p>
*/
inline void SetProposedPassword(Aws::String&& value) { m_proposedPasswordHasBeenSet = true; m_proposedPassword = std::move(value); }
/**
* <p>The new password.</p>
*/
inline void SetProposedPassword(const char* value) { m_proposedPasswordHasBeenSet = true; m_proposedPassword.assign(value); }
/**
* <p>The new password.</p>
*/
inline ChangePasswordRequest& WithProposedPassword(const Aws::String& value) { SetProposedPassword(value); return *this;}
/**
* <p>The new password.</p>
*/
inline ChangePasswordRequest& WithProposedPassword(Aws::String&& value) { SetProposedPassword(std::move(value)); return *this;}
/**
* <p>The new password.</p>
*/
inline ChangePasswordRequest& WithProposedPassword(const char* value) { SetProposedPassword(value); return *this;}
/**
* <p>The access token.</p>
*/
inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
/**
* <p>The access token.</p>
*/
inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
/**
* <p>The access token.</p>
*/
inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
/**
* <p>The access token.</p>
*/
inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
/**
* <p>The access token.</p>
*/
inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
/**
* <p>The access token.</p>
*/
inline ChangePasswordRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
/**
* <p>The access token.</p>
*/
inline ChangePasswordRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
/**
* <p>The access token.</p>
*/
inline ChangePasswordRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
private:
Aws::String m_previousPassword;
bool m_previousPasswordHasBeenSet;
Aws::String m_proposedPassword;
bool m_proposedPasswordHasBeenSet;
Aws::String m_accessToken;
bool m_accessTokenHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The response from the server to the change password request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ChangePasswordResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API ChangePasswordResult
{
public:
ChangePasswordResult();
ChangePasswordResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ChangePasswordResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,168 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cognito-idp/model/DeliveryMediumType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The code delivery details being returned from the server.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CodeDeliveryDetailsType">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API CodeDeliveryDetailsType
{
public:
CodeDeliveryDetailsType();
CodeDeliveryDetailsType(Aws::Utils::Json::JsonView jsonValue);
CodeDeliveryDetailsType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The destination for the code delivery details.</p>
*/
inline const Aws::String& GetDestination() const{ return m_destination; }
/**
* <p>The destination for the code delivery details.</p>
*/
inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
/**
* <p>The destination for the code delivery details.</p>
*/
inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
/**
* <p>The destination for the code delivery details.</p>
*/
inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
/**
* <p>The destination for the code delivery details.</p>
*/
inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
/**
* <p>The destination for the code delivery details.</p>
*/
inline CodeDeliveryDetailsType& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
/**
* <p>The destination for the code delivery details.</p>
*/
inline CodeDeliveryDetailsType& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
/**
* <p>The destination for the code delivery details.</p>
*/
inline CodeDeliveryDetailsType& WithDestination(const char* value) { SetDestination(value); return *this;}
/**
* <p>The delivery medium (email message or phone number).</p>
*/
inline const DeliveryMediumType& GetDeliveryMedium() const{ return m_deliveryMedium; }
/**
* <p>The delivery medium (email message or phone number).</p>
*/
inline bool DeliveryMediumHasBeenSet() const { return m_deliveryMediumHasBeenSet; }
/**
* <p>The delivery medium (email message or phone number).</p>
*/
inline void SetDeliveryMedium(const DeliveryMediumType& value) { m_deliveryMediumHasBeenSet = true; m_deliveryMedium = value; }
/**
* <p>The delivery medium (email message or phone number).</p>
*/
inline void SetDeliveryMedium(DeliveryMediumType&& value) { m_deliveryMediumHasBeenSet = true; m_deliveryMedium = std::move(value); }
/**
* <p>The delivery medium (email message or phone number).</p>
*/
inline CodeDeliveryDetailsType& WithDeliveryMedium(const DeliveryMediumType& value) { SetDeliveryMedium(value); return *this;}
/**
* <p>The delivery medium (email message or phone number).</p>
*/
inline CodeDeliveryDetailsType& WithDeliveryMedium(DeliveryMediumType&& value) { SetDeliveryMedium(std::move(value)); return *this;}
/**
* <p>The attribute name.</p>
*/
inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
/**
* <p>The attribute name.</p>
*/
inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
/**
* <p>The attribute name.</p>
*/
inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
/**
* <p>The attribute name.</p>
*/
inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
/**
* <p>The attribute name.</p>
*/
inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
/**
* <p>The attribute name.</p>
*/
inline CodeDeliveryDetailsType& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
/**
* <p>The attribute name.</p>
*/
inline CodeDeliveryDetailsType& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
/**
* <p>The attribute name.</p>
*/
inline CodeDeliveryDetailsType& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
private:
Aws::String m_destination;
bool m_destinationHasBeenSet;
DeliveryMediumType m_deliveryMedium;
bool m_deliveryMediumHasBeenSet;
Aws::String m_attributeName;
bool m_attributeNameHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/model/CompromisedCredentialsEventActionType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The compromised credentials actions type</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CompromisedCredentialsActionsType">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API CompromisedCredentialsActionsType
{
public:
CompromisedCredentialsActionsType();
CompromisedCredentialsActionsType(Aws::Utils::Json::JsonView jsonValue);
CompromisedCredentialsActionsType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The event action.</p>
*/
inline const CompromisedCredentialsEventActionType& GetEventAction() const{ return m_eventAction; }
/**
* <p>The event action.</p>
*/
inline bool EventActionHasBeenSet() const { return m_eventActionHasBeenSet; }
/**
* <p>The event action.</p>
*/
inline void SetEventAction(const CompromisedCredentialsEventActionType& value) { m_eventActionHasBeenSet = true; m_eventAction = value; }
/**
* <p>The event action.</p>
*/
inline void SetEventAction(CompromisedCredentialsEventActionType&& value) { m_eventActionHasBeenSet = true; m_eventAction = std::move(value); }
/**
* <p>The event action.</p>
*/
inline CompromisedCredentialsActionsType& WithEventAction(const CompromisedCredentialsEventActionType& value) { SetEventAction(value); return *this;}
/**
* <p>The event action.</p>
*/
inline CompromisedCredentialsActionsType& WithEventAction(CompromisedCredentialsEventActionType&& value) { SetEventAction(std::move(value)); return *this;}
private:
CompromisedCredentialsEventActionType m_eventAction;
bool m_eventActionHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
enum class CompromisedCredentialsEventActionType
{
NOT_SET,
BLOCK,
NO_ACTION
};
namespace CompromisedCredentialsEventActionTypeMapper
{
AWS_COGNITOIDENTITYPROVIDER_API CompromisedCredentialsEventActionType GetCompromisedCredentialsEventActionTypeForName(const Aws::String& name);
AWS_COGNITOIDENTITYPROVIDER_API Aws::String GetNameForCompromisedCredentialsEventActionType(CompromisedCredentialsEventActionType value);
} // namespace CompromisedCredentialsEventActionTypeMapper
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/cognito-idp/model/CompromisedCredentialsActionsType.h>
#include <aws/cognito-idp/model/EventFilterType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The compromised credentials risk configuration type.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CompromisedCredentialsRiskConfigurationType">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API CompromisedCredentialsRiskConfigurationType
{
public:
CompromisedCredentialsRiskConfigurationType();
CompromisedCredentialsRiskConfigurationType(Aws::Utils::Json::JsonView jsonValue);
CompromisedCredentialsRiskConfigurationType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Perform the action for these events. The default is to perform all events if
* no event filter is specified.</p>
*/
inline const Aws::Vector<EventFilterType>& GetEventFilter() const{ return m_eventFilter; }
/**
* <p>Perform the action for these events. The default is to perform all events if
* no event filter is specified.</p>
*/
inline bool EventFilterHasBeenSet() const { return m_eventFilterHasBeenSet; }
/**
* <p>Perform the action for these events. The default is to perform all events if
* no event filter is specified.</p>
*/
inline void SetEventFilter(const Aws::Vector<EventFilterType>& value) { m_eventFilterHasBeenSet = true; m_eventFilter = value; }
/**
* <p>Perform the action for these events. The default is to perform all events if
* no event filter is specified.</p>
*/
inline void SetEventFilter(Aws::Vector<EventFilterType>&& value) { m_eventFilterHasBeenSet = true; m_eventFilter = std::move(value); }
/**
* <p>Perform the action for these events. The default is to perform all events if
* no event filter is specified.</p>
*/
inline CompromisedCredentialsRiskConfigurationType& WithEventFilter(const Aws::Vector<EventFilterType>& value) { SetEventFilter(value); return *this;}
/**
* <p>Perform the action for these events. The default is to perform all events if
* no event filter is specified.</p>
*/
inline CompromisedCredentialsRiskConfigurationType& WithEventFilter(Aws::Vector<EventFilterType>&& value) { SetEventFilter(std::move(value)); return *this;}
/**
* <p>Perform the action for these events. The default is to perform all events if
* no event filter is specified.</p>
*/
inline CompromisedCredentialsRiskConfigurationType& AddEventFilter(const EventFilterType& value) { m_eventFilterHasBeenSet = true; m_eventFilter.push_back(value); return *this; }
/**
* <p>Perform the action for these events. The default is to perform all events if
* no event filter is specified.</p>
*/
inline CompromisedCredentialsRiskConfigurationType& AddEventFilter(EventFilterType&& value) { m_eventFilterHasBeenSet = true; m_eventFilter.push_back(std::move(value)); return *this; }
/**
* <p>The compromised credentials risk configuration actions.</p>
*/
inline const CompromisedCredentialsActionsType& GetActions() const{ return m_actions; }
/**
* <p>The compromised credentials risk configuration actions.</p>
*/
inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
/**
* <p>The compromised credentials risk configuration actions.</p>
*/
inline void SetActions(const CompromisedCredentialsActionsType& value) { m_actionsHasBeenSet = true; m_actions = value; }
/**
* <p>The compromised credentials risk configuration actions.</p>
*/
inline void SetActions(CompromisedCredentialsActionsType&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
/**
* <p>The compromised credentials risk configuration actions.</p>
*/
inline CompromisedCredentialsRiskConfigurationType& WithActions(const CompromisedCredentialsActionsType& value) { SetActions(value); return *this;}
/**
* <p>The compromised credentials risk configuration actions.</p>
*/
inline CompromisedCredentialsRiskConfigurationType& WithActions(CompromisedCredentialsActionsType&& value) { SetActions(std::move(value)); return *this;}
private:
Aws::Vector<EventFilterType> m_eventFilter;
bool m_eventFilterHasBeenSet;
CompromisedCredentialsActionsType m_actions;
bool m_actionsHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,211 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cognito-idp/model/DeviceSecretVerifierConfigType.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Confirms the device request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmDeviceRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API ConfirmDeviceRequest : public CognitoIdentityProviderRequest
{
public:
ConfirmDeviceRequest();
// 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 "ConfirmDevice"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The access token.</p>
*/
inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
/**
* <p>The access token.</p>
*/
inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
/**
* <p>The access token.</p>
*/
inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
/**
* <p>The access token.</p>
*/
inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
/**
* <p>The access token.</p>
*/
inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
/**
* <p>The access token.</p>
*/
inline ConfirmDeviceRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
/**
* <p>The access token.</p>
*/
inline ConfirmDeviceRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
/**
* <p>The access token.</p>
*/
inline ConfirmDeviceRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
/**
* <p>The device key.</p>
*/
inline const Aws::String& GetDeviceKey() const{ return m_deviceKey; }
/**
* <p>The device key.</p>
*/
inline bool DeviceKeyHasBeenSet() const { return m_deviceKeyHasBeenSet; }
/**
* <p>The device key.</p>
*/
inline void SetDeviceKey(const Aws::String& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = value; }
/**
* <p>The device key.</p>
*/
inline void SetDeviceKey(Aws::String&& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = std::move(value); }
/**
* <p>The device key.</p>
*/
inline void SetDeviceKey(const char* value) { m_deviceKeyHasBeenSet = true; m_deviceKey.assign(value); }
/**
* <p>The device key.</p>
*/
inline ConfirmDeviceRequest& WithDeviceKey(const Aws::String& value) { SetDeviceKey(value); return *this;}
/**
* <p>The device key.</p>
*/
inline ConfirmDeviceRequest& WithDeviceKey(Aws::String&& value) { SetDeviceKey(std::move(value)); return *this;}
/**
* <p>The device key.</p>
*/
inline ConfirmDeviceRequest& WithDeviceKey(const char* value) { SetDeviceKey(value); return *this;}
/**
* <p>The configuration of the device secret verifier.</p>
*/
inline const DeviceSecretVerifierConfigType& GetDeviceSecretVerifierConfig() const{ return m_deviceSecretVerifierConfig; }
/**
* <p>The configuration of the device secret verifier.</p>
*/
inline bool DeviceSecretVerifierConfigHasBeenSet() const { return m_deviceSecretVerifierConfigHasBeenSet; }
/**
* <p>The configuration of the device secret verifier.</p>
*/
inline void SetDeviceSecretVerifierConfig(const DeviceSecretVerifierConfigType& value) { m_deviceSecretVerifierConfigHasBeenSet = true; m_deviceSecretVerifierConfig = value; }
/**
* <p>The configuration of the device secret verifier.</p>
*/
inline void SetDeviceSecretVerifierConfig(DeviceSecretVerifierConfigType&& value) { m_deviceSecretVerifierConfigHasBeenSet = true; m_deviceSecretVerifierConfig = std::move(value); }
/**
* <p>The configuration of the device secret verifier.</p>
*/
inline ConfirmDeviceRequest& WithDeviceSecretVerifierConfig(const DeviceSecretVerifierConfigType& value) { SetDeviceSecretVerifierConfig(value); return *this;}
/**
* <p>The configuration of the device secret verifier.</p>
*/
inline ConfirmDeviceRequest& WithDeviceSecretVerifierConfig(DeviceSecretVerifierConfigType&& value) { SetDeviceSecretVerifierConfig(std::move(value)); return *this;}
/**
* <p>The device name.</p>
*/
inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
/**
* <p>The device name.</p>
*/
inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
/**
* <p>The device name.</p>
*/
inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
/**
* <p>The device name.</p>
*/
inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
/**
* <p>The device name.</p>
*/
inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
/**
* <p>The device name.</p>
*/
inline ConfirmDeviceRequest& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
/**
* <p>The device name.</p>
*/
inline ConfirmDeviceRequest& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
/**
* <p>The device name.</p>
*/
inline ConfirmDeviceRequest& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
private:
Aws::String m_accessToken;
bool m_accessTokenHasBeenSet;
Aws::String m_deviceKey;
bool m_deviceKeyHasBeenSet;
DeviceSecretVerifierConfigType m_deviceSecretVerifierConfig;
bool m_deviceSecretVerifierConfigHasBeenSet;
Aws::String m_deviceName;
bool m_deviceNameHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,63 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Confirms the device response.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmDeviceResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API ConfirmDeviceResult
{
public:
ConfirmDeviceResult();
ConfirmDeviceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ConfirmDeviceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Indicates whether the user confirmation is necessary to confirm the device
* response.</p>
*/
inline bool GetUserConfirmationNecessary() const{ return m_userConfirmationNecessary; }
/**
* <p>Indicates whether the user confirmation is necessary to confirm the device
* response.</p>
*/
inline void SetUserConfirmationNecessary(bool value) { m_userConfirmationNecessary = value; }
/**
* <p>Indicates whether the user confirmation is necessary to confirm the device
* response.</p>
*/
inline ConfirmDeviceResult& WithUserConfirmationNecessary(bool value) { SetUserConfirmationNecessary(value); return *this;}
private:
bool m_userConfirmationNecessary;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,728 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cognito-idp/model/AnalyticsMetadataType.h>
#include <aws/cognito-idp/model/UserContextDataType.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The request representing the confirmation for a password reset.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmForgotPasswordRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API ConfirmForgotPasswordRequest : public CognitoIdentityProviderRequest
{
public:
ConfirmForgotPasswordRequest();
// 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 "ConfirmForgotPassword"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The app client ID of the app associated with the user pool.</p>
*/
inline const Aws::String& GetClientId() const{ return m_clientId; }
/**
* <p>The app client ID of the app associated with the user pool.</p>
*/
inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
/**
* <p>The app client ID of the app associated with the user pool.</p>
*/
inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
/**
* <p>The app client ID of the app associated with the user pool.</p>
*/
inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
/**
* <p>The app client ID of the app associated with the user pool.</p>
*/
inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
/**
* <p>The app client ID of the app associated with the user pool.</p>
*/
inline ConfirmForgotPasswordRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
/**
* <p>The app client ID of the app associated with the user pool.</p>
*/
inline ConfirmForgotPasswordRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
/**
* <p>The app client ID of the app associated with the user pool.</p>
*/
inline ConfirmForgotPasswordRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline const Aws::String& GetSecretHash() const{ return m_secretHash; }
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline bool SecretHashHasBeenSet() const { return m_secretHashHasBeenSet; }
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline void SetSecretHash(const Aws::String& value) { m_secretHashHasBeenSet = true; m_secretHash = value; }
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline void SetSecretHash(Aws::String&& value) { m_secretHashHasBeenSet = true; m_secretHash = std::move(value); }
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline void SetSecretHash(const char* value) { m_secretHashHasBeenSet = true; m_secretHash.assign(value); }
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline ConfirmForgotPasswordRequest& WithSecretHash(const Aws::String& value) { SetSecretHash(value); return *this;}
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline ConfirmForgotPasswordRequest& WithSecretHash(Aws::String&& value) { SetSecretHash(std::move(value)); return *this;}
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline ConfirmForgotPasswordRequest& WithSecretHash(const char* value) { SetSecretHash(value); return *this;}
/**
* <p>The user name of the user for whom you want to enter a code to retrieve a
* forgotten password.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name of the user for whom you want to enter a code to retrieve a
* forgotten password.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name of the user for whom you want to enter a code to retrieve a
* forgotten password.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name of the user for whom you want to enter a code to retrieve a
* forgotten password.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name of the user for whom you want to enter a code to retrieve a
* forgotten password.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name of the user for whom you want to enter a code to retrieve a
* forgotten password.</p>
*/
inline ConfirmForgotPasswordRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name of the user for whom you want to enter a code to retrieve a
* forgotten password.</p>
*/
inline ConfirmForgotPasswordRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name of the user for whom you want to enter a code to retrieve a
* forgotten password.</p>
*/
inline ConfirmForgotPasswordRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>The confirmation code sent by a user's request to retrieve a forgotten
* password. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ForgotPassword.html">ForgotPassword</a>.</p>
*/
inline const Aws::String& GetConfirmationCode() const{ return m_confirmationCode; }
/**
* <p>The confirmation code sent by a user's request to retrieve a forgotten
* password. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ForgotPassword.html">ForgotPassword</a>.</p>
*/
inline bool ConfirmationCodeHasBeenSet() const { return m_confirmationCodeHasBeenSet; }
/**
* <p>The confirmation code sent by a user's request to retrieve a forgotten
* password. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ForgotPassword.html">ForgotPassword</a>.</p>
*/
inline void SetConfirmationCode(const Aws::String& value) { m_confirmationCodeHasBeenSet = true; m_confirmationCode = value; }
/**
* <p>The confirmation code sent by a user's request to retrieve a forgotten
* password. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ForgotPassword.html">ForgotPassword</a>.</p>
*/
inline void SetConfirmationCode(Aws::String&& value) { m_confirmationCodeHasBeenSet = true; m_confirmationCode = std::move(value); }
/**
* <p>The confirmation code sent by a user's request to retrieve a forgotten
* password. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ForgotPassword.html">ForgotPassword</a>.</p>
*/
inline void SetConfirmationCode(const char* value) { m_confirmationCodeHasBeenSet = true; m_confirmationCode.assign(value); }
/**
* <p>The confirmation code sent by a user's request to retrieve a forgotten
* password. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ForgotPassword.html">ForgotPassword</a>.</p>
*/
inline ConfirmForgotPasswordRequest& WithConfirmationCode(const Aws::String& value) { SetConfirmationCode(value); return *this;}
/**
* <p>The confirmation code sent by a user's request to retrieve a forgotten
* password. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ForgotPassword.html">ForgotPassword</a>.</p>
*/
inline ConfirmForgotPasswordRequest& WithConfirmationCode(Aws::String&& value) { SetConfirmationCode(std::move(value)); return *this;}
/**
* <p>The confirmation code sent by a user's request to retrieve a forgotten
* password. For more information, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ForgotPassword.html">ForgotPassword</a>.</p>
*/
inline ConfirmForgotPasswordRequest& WithConfirmationCode(const char* value) { SetConfirmationCode(value); return *this;}
/**
* <p>The password sent by a user's request to retrieve a forgotten password.</p>
*/
inline const Aws::String& GetPassword() const{ return m_password; }
/**
* <p>The password sent by a user's request to retrieve a forgotten password.</p>
*/
inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
/**
* <p>The password sent by a user's request to retrieve a forgotten password.</p>
*/
inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
/**
* <p>The password sent by a user's request to retrieve a forgotten password.</p>
*/
inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
/**
* <p>The password sent by a user's request to retrieve a forgotten password.</p>
*/
inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
/**
* <p>The password sent by a user's request to retrieve a forgotten password.</p>
*/
inline ConfirmForgotPasswordRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
/**
* <p>The password sent by a user's request to retrieve a forgotten password.</p>
*/
inline ConfirmForgotPasswordRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
/**
* <p>The password sent by a user's request to retrieve a forgotten password.</p>
*/
inline ConfirmForgotPasswordRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
/**
* <p>The Amazon Pinpoint analytics metadata for collecting metrics for
* <code>ConfirmForgotPassword</code> calls.</p>
*/
inline const AnalyticsMetadataType& GetAnalyticsMetadata() const{ return m_analyticsMetadata; }
/**
* <p>The Amazon Pinpoint analytics metadata for collecting metrics for
* <code>ConfirmForgotPassword</code> calls.</p>
*/
inline bool AnalyticsMetadataHasBeenSet() const { return m_analyticsMetadataHasBeenSet; }
/**
* <p>The Amazon Pinpoint analytics metadata for collecting metrics for
* <code>ConfirmForgotPassword</code> calls.</p>
*/
inline void SetAnalyticsMetadata(const AnalyticsMetadataType& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = value; }
/**
* <p>The Amazon Pinpoint analytics metadata for collecting metrics for
* <code>ConfirmForgotPassword</code> calls.</p>
*/
inline void SetAnalyticsMetadata(AnalyticsMetadataType&& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = std::move(value); }
/**
* <p>The Amazon Pinpoint analytics metadata for collecting metrics for
* <code>ConfirmForgotPassword</code> calls.</p>
*/
inline ConfirmForgotPasswordRequest& WithAnalyticsMetadata(const AnalyticsMetadataType& value) { SetAnalyticsMetadata(value); return *this;}
/**
* <p>The Amazon Pinpoint analytics metadata for collecting metrics for
* <code>ConfirmForgotPassword</code> calls.</p>
*/
inline ConfirmForgotPasswordRequest& WithAnalyticsMetadata(AnalyticsMetadataType&& value) { SetAnalyticsMetadata(std::move(value)); return *this;}
/**
* <p>Contextual data such as the user's device fingerprint, IP address, or
* location used for evaluating the risk of an unexpected event by Amazon Cognito
* advanced security.</p>
*/
inline const UserContextDataType& GetUserContextData() const{ return m_userContextData; }
/**
* <p>Contextual data such as the user's device fingerprint, IP address, or
* location used for evaluating the risk of an unexpected event by Amazon Cognito
* advanced security.</p>
*/
inline bool UserContextDataHasBeenSet() const { return m_userContextDataHasBeenSet; }
/**
* <p>Contextual data such as the user's device fingerprint, IP address, or
* location used for evaluating the risk of an unexpected event by Amazon Cognito
* advanced security.</p>
*/
inline void SetUserContextData(const UserContextDataType& value) { m_userContextDataHasBeenSet = true; m_userContextData = value; }
/**
* <p>Contextual data such as the user's device fingerprint, IP address, or
* location used for evaluating the risk of an unexpected event by Amazon Cognito
* advanced security.</p>
*/
inline void SetUserContextData(UserContextDataType&& value) { m_userContextDataHasBeenSet = true; m_userContextData = std::move(value); }
/**
* <p>Contextual data such as the user's device fingerprint, IP address, or
* location used for evaluating the risk of an unexpected event by Amazon Cognito
* advanced security.</p>
*/
inline ConfirmForgotPasswordRequest& WithUserContextData(const UserContextDataType& value) { SetUserContextData(value); return *this;}
/**
* <p>Contextual data such as the user's device fingerprint, IP address, or
* location used for evaluating the risk of an unexpected event by Amazon Cognito
* advanced security.</p>
*/
inline ConfirmForgotPasswordRequest& WithUserContextData(UserContextDataType&& value) { SetUserContextData(std::move(value)); return *this;}
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmForgotPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>post confirmation</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* ConfirmForgotPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmForgotPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>post confirmation</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* ConfirmForgotPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmForgotPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>post confirmation</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* ConfirmForgotPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmForgotPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>post confirmation</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* ConfirmForgotPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmForgotPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>post confirmation</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* ConfirmForgotPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmForgotPasswordRequest& WithClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetClientMetadata(value); return *this;}
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmForgotPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>post confirmation</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* ConfirmForgotPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmForgotPasswordRequest& WithClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetClientMetadata(std::move(value)); return *this;}
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmForgotPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>post confirmation</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* ConfirmForgotPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmForgotPasswordRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmForgotPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>post confirmation</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* ConfirmForgotPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmForgotPasswordRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmForgotPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>post confirmation</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* ConfirmForgotPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmForgotPasswordRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmForgotPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>post confirmation</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* ConfirmForgotPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmForgotPasswordRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmForgotPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>post confirmation</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* ConfirmForgotPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmForgotPasswordRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmForgotPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>post confirmation</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* ConfirmForgotPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmForgotPasswordRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmForgotPassword API action, Amazon Cognito invokes the function that is
* assigned to the <i>post confirmation</i> trigger. When Amazon Cognito invokes
* this function, it passes a JSON payload, which the function receives as input.
* This payload contains a <code>clientMetadata</code> attribute, which provides
* the data that you assigned to the ClientMetadata parameter in your
* ConfirmForgotPassword request. In your function code in AWS Lambda, you can
* process the <code>clientMetadata</code> value to enhance your workflow for your
* specific needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmForgotPasswordRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
private:
Aws::String m_clientId;
bool m_clientIdHasBeenSet;
Aws::String m_secretHash;
bool m_secretHashHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::String m_confirmationCode;
bool m_confirmationCodeHasBeenSet;
Aws::String m_password;
bool m_passwordHasBeenSet;
AnalyticsMetadataType m_analyticsMetadata;
bool m_analyticsMetadataHasBeenSet;
UserContextDataType m_userContextData;
bool m_userContextDataHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_clientMetadata;
bool m_clientMetadataHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The response from the server that results from a user's request to retrieve a
* forgotten password.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmForgotPasswordResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API ConfirmForgotPasswordResult
{
public:
ConfirmForgotPasswordResult();
ConfirmForgotPasswordResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ConfirmForgotPasswordResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,708 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cognito-idp/model/AnalyticsMetadataType.h>
#include <aws/cognito-idp/model/UserContextDataType.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the request to confirm registration of a user.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmSignUpRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API ConfirmSignUpRequest : public CognitoIdentityProviderRequest
{
public:
ConfirmSignUpRequest();
// 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 "ConfirmSignUp"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the app client associated with the user pool.</p>
*/
inline const Aws::String& GetClientId() const{ return m_clientId; }
/**
* <p>The ID of the app client associated with the user pool.</p>
*/
inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
/**
* <p>The ID of the app client associated with the user pool.</p>
*/
inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
/**
* <p>The ID of the app client associated with the user pool.</p>
*/
inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
/**
* <p>The ID of the app client associated with the user pool.</p>
*/
inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
/**
* <p>The ID of the app client associated with the user pool.</p>
*/
inline ConfirmSignUpRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
/**
* <p>The ID of the app client associated with the user pool.</p>
*/
inline ConfirmSignUpRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
/**
* <p>The ID of the app client associated with the user pool.</p>
*/
inline ConfirmSignUpRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline const Aws::String& GetSecretHash() const{ return m_secretHash; }
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline bool SecretHashHasBeenSet() const { return m_secretHashHasBeenSet; }
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline void SetSecretHash(const Aws::String& value) { m_secretHashHasBeenSet = true; m_secretHash = value; }
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline void SetSecretHash(Aws::String&& value) { m_secretHashHasBeenSet = true; m_secretHash = std::move(value); }
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline void SetSecretHash(const char* value) { m_secretHashHasBeenSet = true; m_secretHash.assign(value); }
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline ConfirmSignUpRequest& WithSecretHash(const Aws::String& value) { SetSecretHash(value); return *this;}
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline ConfirmSignUpRequest& WithSecretHash(Aws::String&& value) { SetSecretHash(std::move(value)); return *this;}
/**
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret
* key of a user pool client and username plus the client ID in the message.</p>
*/
inline ConfirmSignUpRequest& WithSecretHash(const char* value) { SetSecretHash(value); return *this;}
/**
* <p>The user name of the user whose registration you wish to confirm.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The user name of the user whose registration you wish to confirm.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The user name of the user whose registration you wish to confirm.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The user name of the user whose registration you wish to confirm.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The user name of the user whose registration you wish to confirm.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The user name of the user whose registration you wish to confirm.</p>
*/
inline ConfirmSignUpRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The user name of the user whose registration you wish to confirm.</p>
*/
inline ConfirmSignUpRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The user name of the user whose registration you wish to confirm.</p>
*/
inline ConfirmSignUpRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>The confirmation code sent by a user's request to confirm registration.</p>
*/
inline const Aws::String& GetConfirmationCode() const{ return m_confirmationCode; }
/**
* <p>The confirmation code sent by a user's request to confirm registration.</p>
*/
inline bool ConfirmationCodeHasBeenSet() const { return m_confirmationCodeHasBeenSet; }
/**
* <p>The confirmation code sent by a user's request to confirm registration.</p>
*/
inline void SetConfirmationCode(const Aws::String& value) { m_confirmationCodeHasBeenSet = true; m_confirmationCode = value; }
/**
* <p>The confirmation code sent by a user's request to confirm registration.</p>
*/
inline void SetConfirmationCode(Aws::String&& value) { m_confirmationCodeHasBeenSet = true; m_confirmationCode = std::move(value); }
/**
* <p>The confirmation code sent by a user's request to confirm registration.</p>
*/
inline void SetConfirmationCode(const char* value) { m_confirmationCodeHasBeenSet = true; m_confirmationCode.assign(value); }
/**
* <p>The confirmation code sent by a user's request to confirm registration.</p>
*/
inline ConfirmSignUpRequest& WithConfirmationCode(const Aws::String& value) { SetConfirmationCode(value); return *this;}
/**
* <p>The confirmation code sent by a user's request to confirm registration.</p>
*/
inline ConfirmSignUpRequest& WithConfirmationCode(Aws::String&& value) { SetConfirmationCode(std::move(value)); return *this;}
/**
* <p>The confirmation code sent by a user's request to confirm registration.</p>
*/
inline ConfirmSignUpRequest& WithConfirmationCode(const char* value) { SetConfirmationCode(value); return *this;}
/**
* <p>Boolean to be specified to force user confirmation irrespective of existing
* alias. By default set to <code>False</code>. If this parameter is set to
* <code>True</code> and the phone number/email used for sign up confirmation
* already exists as an alias with a different user, the API call will migrate the
* alias from the previous user to the newly created user being confirmed. If set
* to <code>False</code>, the API will throw an <b>AliasExistsException</b>
* error.</p>
*/
inline bool GetForceAliasCreation() const{ return m_forceAliasCreation; }
/**
* <p>Boolean to be specified to force user confirmation irrespective of existing
* alias. By default set to <code>False</code>. If this parameter is set to
* <code>True</code> and the phone number/email used for sign up confirmation
* already exists as an alias with a different user, the API call will migrate the
* alias from the previous user to the newly created user being confirmed. If set
* to <code>False</code>, the API will throw an <b>AliasExistsException</b>
* error.</p>
*/
inline bool ForceAliasCreationHasBeenSet() const { return m_forceAliasCreationHasBeenSet; }
/**
* <p>Boolean to be specified to force user confirmation irrespective of existing
* alias. By default set to <code>False</code>. If this parameter is set to
* <code>True</code> and the phone number/email used for sign up confirmation
* already exists as an alias with a different user, the API call will migrate the
* alias from the previous user to the newly created user being confirmed. If set
* to <code>False</code>, the API will throw an <b>AliasExistsException</b>
* error.</p>
*/
inline void SetForceAliasCreation(bool value) { m_forceAliasCreationHasBeenSet = true; m_forceAliasCreation = value; }
/**
* <p>Boolean to be specified to force user confirmation irrespective of existing
* alias. By default set to <code>False</code>. If this parameter is set to
* <code>True</code> and the phone number/email used for sign up confirmation
* already exists as an alias with a different user, the API call will migrate the
* alias from the previous user to the newly created user being confirmed. If set
* to <code>False</code>, the API will throw an <b>AliasExistsException</b>
* error.</p>
*/
inline ConfirmSignUpRequest& WithForceAliasCreation(bool value) { SetForceAliasCreation(value); return *this;}
/**
* <p>The Amazon Pinpoint analytics metadata for collecting metrics for
* <code>ConfirmSignUp</code> calls.</p>
*/
inline const AnalyticsMetadataType& GetAnalyticsMetadata() const{ return m_analyticsMetadata; }
/**
* <p>The Amazon Pinpoint analytics metadata for collecting metrics for
* <code>ConfirmSignUp</code> calls.</p>
*/
inline bool AnalyticsMetadataHasBeenSet() const { return m_analyticsMetadataHasBeenSet; }
/**
* <p>The Amazon Pinpoint analytics metadata for collecting metrics for
* <code>ConfirmSignUp</code> calls.</p>
*/
inline void SetAnalyticsMetadata(const AnalyticsMetadataType& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = value; }
/**
* <p>The Amazon Pinpoint analytics metadata for collecting metrics for
* <code>ConfirmSignUp</code> calls.</p>
*/
inline void SetAnalyticsMetadata(AnalyticsMetadataType&& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = std::move(value); }
/**
* <p>The Amazon Pinpoint analytics metadata for collecting metrics for
* <code>ConfirmSignUp</code> calls.</p>
*/
inline ConfirmSignUpRequest& WithAnalyticsMetadata(const AnalyticsMetadataType& value) { SetAnalyticsMetadata(value); return *this;}
/**
* <p>The Amazon Pinpoint analytics metadata for collecting metrics for
* <code>ConfirmSignUp</code> calls.</p>
*/
inline ConfirmSignUpRequest& WithAnalyticsMetadata(AnalyticsMetadataType&& value) { SetAnalyticsMetadata(std::move(value)); return *this;}
/**
* <p>Contextual data such as the user's device fingerprint, IP address, or
* location used for evaluating the risk of an unexpected event by Amazon Cognito
* advanced security.</p>
*/
inline const UserContextDataType& GetUserContextData() const{ return m_userContextData; }
/**
* <p>Contextual data such as the user's device fingerprint, IP address, or
* location used for evaluating the risk of an unexpected event by Amazon Cognito
* advanced security.</p>
*/
inline bool UserContextDataHasBeenSet() const { return m_userContextDataHasBeenSet; }
/**
* <p>Contextual data such as the user's device fingerprint, IP address, or
* location used for evaluating the risk of an unexpected event by Amazon Cognito
* advanced security.</p>
*/
inline void SetUserContextData(const UserContextDataType& value) { m_userContextDataHasBeenSet = true; m_userContextData = value; }
/**
* <p>Contextual data such as the user's device fingerprint, IP address, or
* location used for evaluating the risk of an unexpected event by Amazon Cognito
* advanced security.</p>
*/
inline void SetUserContextData(UserContextDataType&& value) { m_userContextDataHasBeenSet = true; m_userContextData = std::move(value); }
/**
* <p>Contextual data such as the user's device fingerprint, IP address, or
* location used for evaluating the risk of an unexpected event by Amazon Cognito
* advanced security.</p>
*/
inline ConfirmSignUpRequest& WithUserContextData(const UserContextDataType& value) { SetUserContextData(value); return *this;}
/**
* <p>Contextual data such as the user's device fingerprint, IP address, or
* location used for evaluating the risk of an unexpected event by Amazon Cognito
* advanced security.</p>
*/
inline ConfirmSignUpRequest& WithUserContextData(UserContextDataType&& value) { SetUserContextData(std::move(value)); return *this;}
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmSignUp API action, Amazon Cognito invokes the function that is assigned
* to the <i>post confirmation</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your ConfirmSignUp
* request. In your function code in AWS Lambda, you can process the
* <code>clientMetadata</code> value to enhance your workflow for your specific
* needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmSignUp API action, Amazon Cognito invokes the function that is assigned
* to the <i>post confirmation</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your ConfirmSignUp
* request. In your function code in AWS Lambda, you can process the
* <code>clientMetadata</code> value to enhance your workflow for your specific
* needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmSignUp API action, Amazon Cognito invokes the function that is assigned
* to the <i>post confirmation</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your ConfirmSignUp
* request. In your function code in AWS Lambda, you can process the
* <code>clientMetadata</code> value to enhance your workflow for your specific
* needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmSignUp API action, Amazon Cognito invokes the function that is assigned
* to the <i>post confirmation</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your ConfirmSignUp
* request. In your function code in AWS Lambda, you can process the
* <code>clientMetadata</code> value to enhance your workflow for your specific
* needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmSignUp API action, Amazon Cognito invokes the function that is assigned
* to the <i>post confirmation</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your ConfirmSignUp
* request. In your function code in AWS Lambda, you can process the
* <code>clientMetadata</code> value to enhance your workflow for your specific
* needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmSignUpRequest& WithClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetClientMetadata(value); return *this;}
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmSignUp API action, Amazon Cognito invokes the function that is assigned
* to the <i>post confirmation</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your ConfirmSignUp
* request. In your function code in AWS Lambda, you can process the
* <code>clientMetadata</code> value to enhance your workflow for your specific
* needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmSignUpRequest& WithClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetClientMetadata(std::move(value)); return *this;}
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmSignUp API action, Amazon Cognito invokes the function that is assigned
* to the <i>post confirmation</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your ConfirmSignUp
* request. In your function code in AWS Lambda, you can process the
* <code>clientMetadata</code> value to enhance your workflow for your specific
* needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmSignUpRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmSignUp API action, Amazon Cognito invokes the function that is assigned
* to the <i>post confirmation</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your ConfirmSignUp
* request. In your function code in AWS Lambda, you can process the
* <code>clientMetadata</code> value to enhance your workflow for your specific
* needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmSignUpRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmSignUp API action, Amazon Cognito invokes the function that is assigned
* to the <i>post confirmation</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your ConfirmSignUp
* request. In your function code in AWS Lambda, you can process the
* <code>clientMetadata</code> value to enhance your workflow for your specific
* needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmSignUpRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmSignUp API action, Amazon Cognito invokes the function that is assigned
* to the <i>post confirmation</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your ConfirmSignUp
* request. In your function code in AWS Lambda, you can process the
* <code>clientMetadata</code> value to enhance your workflow for your specific
* needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmSignUpRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmSignUp API action, Amazon Cognito invokes the function that is assigned
* to the <i>post confirmation</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your ConfirmSignUp
* request. In your function code in AWS Lambda, you can process the
* <code>clientMetadata</code> value to enhance your workflow for your specific
* needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmSignUpRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmSignUp API action, Amazon Cognito invokes the function that is assigned
* to the <i>post confirmation</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your ConfirmSignUp
* request. In your function code in AWS Lambda, you can process the
* <code>clientMetadata</code> value to enhance your workflow for your specific
* needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmSignUpRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>A map of custom key-value pairs that you can provide as input for any custom
* workflows that this action triggers. </p> <p>You create custom workflows by
* assigning AWS Lambda functions to user pool triggers. When you use the
* ConfirmSignUp API action, Amazon Cognito invokes the function that is assigned
* to the <i>post confirmation</i> trigger. When Amazon Cognito invokes this
* function, it passes a JSON payload, which the function receives as input. This
* payload contains a <code>clientMetadata</code> attribute, which provides the
* data that you assigned to the ClientMetadata parameter in your ConfirmSignUp
* request. In your function code in AWS Lambda, you can process the
* <code>clientMetadata</code> value to enhance your workflow for your specific
* needs.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">Customizing
* User Pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer
* Guide</i>.</p> <p>Take the following limitations into consideration when
* you use the ClientMetadata parameter:</p> <ul> <li> <p>Amazon Cognito does not
* store the ClientMetadata value. This data is available only to AWS Lambda
* triggers that are assigned to a user pool to support custom workflows. If your
* user pool configuration does not include triggers, the ClientMetadata parameter
* serves no purpose.</p> </li> <li> <p>Amazon Cognito does not validate the
* ClientMetadata value.</p> </li> <li> <p>Amazon Cognito does not encrypt the the
* ClientMetadata value, so don't use it to provide sensitive information.</p>
* </li> </ul>
*/
inline ConfirmSignUpRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
private:
Aws::String m_clientId;
bool m_clientIdHasBeenSet;
Aws::String m_secretHash;
bool m_secretHashHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::String m_confirmationCode;
bool m_confirmationCodeHasBeenSet;
bool m_forceAliasCreation;
bool m_forceAliasCreationHasBeenSet;
AnalyticsMetadataType m_analyticsMetadata;
bool m_analyticsMetadataHasBeenSet;
UserContextDataType m_userContextData;
bool m_userContextDataHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_clientMetadata;
bool m_clientMetadataHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the response from the server for the registration
* confirmation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmSignUpResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API ConfirmSignUpResult
{
public:
ConfirmSignUpResult();
ConfirmSignUpResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ConfirmSignUpResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,275 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/cognito-idp/model/HttpHeader.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Contextual user data type used for evaluating the risk of an unexpected event
* by Amazon Cognito advanced security.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ContextDataType">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API ContextDataType
{
public:
ContextDataType();
ContextDataType(Aws::Utils::Json::JsonView jsonValue);
ContextDataType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Source IP address of your user.</p>
*/
inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
/**
* <p>Source IP address of your user.</p>
*/
inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
/**
* <p>Source IP address of your user.</p>
*/
inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
/**
* <p>Source IP address of your user.</p>
*/
inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
/**
* <p>Source IP address of your user.</p>
*/
inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
/**
* <p>Source IP address of your user.</p>
*/
inline ContextDataType& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
/**
* <p>Source IP address of your user.</p>
*/
inline ContextDataType& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
/**
* <p>Source IP address of your user.</p>
*/
inline ContextDataType& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
/**
* <p>Your server endpoint where this API is invoked.</p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>Your server endpoint where this API is invoked.</p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p>Your server endpoint where this API is invoked.</p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p>Your server endpoint where this API is invoked.</p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p>Your server endpoint where this API is invoked.</p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p>Your server endpoint where this API is invoked.</p>
*/
inline ContextDataType& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>Your server endpoint where this API is invoked.</p>
*/
inline ContextDataType& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>Your server endpoint where this API is invoked.</p>
*/
inline ContextDataType& WithServerName(const char* value) { SetServerName(value); return *this;}
/**
* <p>Your server path where this API is invoked. </p>
*/
inline const Aws::String& GetServerPath() const{ return m_serverPath; }
/**
* <p>Your server path where this API is invoked. </p>
*/
inline bool ServerPathHasBeenSet() const { return m_serverPathHasBeenSet; }
/**
* <p>Your server path where this API is invoked. </p>
*/
inline void SetServerPath(const Aws::String& value) { m_serverPathHasBeenSet = true; m_serverPath = value; }
/**
* <p>Your server path where this API is invoked. </p>
*/
inline void SetServerPath(Aws::String&& value) { m_serverPathHasBeenSet = true; m_serverPath = std::move(value); }
/**
* <p>Your server path where this API is invoked. </p>
*/
inline void SetServerPath(const char* value) { m_serverPathHasBeenSet = true; m_serverPath.assign(value); }
/**
* <p>Your server path where this API is invoked. </p>
*/
inline ContextDataType& WithServerPath(const Aws::String& value) { SetServerPath(value); return *this;}
/**
* <p>Your server path where this API is invoked. </p>
*/
inline ContextDataType& WithServerPath(Aws::String&& value) { SetServerPath(std::move(value)); return *this;}
/**
* <p>Your server path where this API is invoked. </p>
*/
inline ContextDataType& WithServerPath(const char* value) { SetServerPath(value); return *this;}
/**
* <p>HttpHeaders received on your server in same order.</p>
*/
inline const Aws::Vector<HttpHeader>& GetHttpHeaders() const{ return m_httpHeaders; }
/**
* <p>HttpHeaders received on your server in same order.</p>
*/
inline bool HttpHeadersHasBeenSet() const { return m_httpHeadersHasBeenSet; }
/**
* <p>HttpHeaders received on your server in same order.</p>
*/
inline void SetHttpHeaders(const Aws::Vector<HttpHeader>& value) { m_httpHeadersHasBeenSet = true; m_httpHeaders = value; }
/**
* <p>HttpHeaders received on your server in same order.</p>
*/
inline void SetHttpHeaders(Aws::Vector<HttpHeader>&& value) { m_httpHeadersHasBeenSet = true; m_httpHeaders = std::move(value); }
/**
* <p>HttpHeaders received on your server in same order.</p>
*/
inline ContextDataType& WithHttpHeaders(const Aws::Vector<HttpHeader>& value) { SetHttpHeaders(value); return *this;}
/**
* <p>HttpHeaders received on your server in same order.</p>
*/
inline ContextDataType& WithHttpHeaders(Aws::Vector<HttpHeader>&& value) { SetHttpHeaders(std::move(value)); return *this;}
/**
* <p>HttpHeaders received on your server in same order.</p>
*/
inline ContextDataType& AddHttpHeaders(const HttpHeader& value) { m_httpHeadersHasBeenSet = true; m_httpHeaders.push_back(value); return *this; }
/**
* <p>HttpHeaders received on your server in same order.</p>
*/
inline ContextDataType& AddHttpHeaders(HttpHeader&& value) { m_httpHeadersHasBeenSet = true; m_httpHeaders.push_back(std::move(value)); return *this; }
/**
* <p>Encoded data containing device fingerprinting details, collected using the
* Amazon Cognito context data collection library.</p>
*/
inline const Aws::String& GetEncodedData() const{ return m_encodedData; }
/**
* <p>Encoded data containing device fingerprinting details, collected using the
* Amazon Cognito context data collection library.</p>
*/
inline bool EncodedDataHasBeenSet() const { return m_encodedDataHasBeenSet; }
/**
* <p>Encoded data containing device fingerprinting details, collected using the
* Amazon Cognito context data collection library.</p>
*/
inline void SetEncodedData(const Aws::String& value) { m_encodedDataHasBeenSet = true; m_encodedData = value; }
/**
* <p>Encoded data containing device fingerprinting details, collected using the
* Amazon Cognito context data collection library.</p>
*/
inline void SetEncodedData(Aws::String&& value) { m_encodedDataHasBeenSet = true; m_encodedData = std::move(value); }
/**
* <p>Encoded data containing device fingerprinting details, collected using the
* Amazon Cognito context data collection library.</p>
*/
inline void SetEncodedData(const char* value) { m_encodedDataHasBeenSet = true; m_encodedData.assign(value); }
/**
* <p>Encoded data containing device fingerprinting details, collected using the
* Amazon Cognito context data collection library.</p>
*/
inline ContextDataType& WithEncodedData(const Aws::String& value) { SetEncodedData(value); return *this;}
/**
* <p>Encoded data containing device fingerprinting details, collected using the
* Amazon Cognito context data collection library.</p>
*/
inline ContextDataType& WithEncodedData(Aws::String&& value) { SetEncodedData(std::move(value)); return *this;}
/**
* <p>Encoded data containing device fingerprinting details, collected using the
* Amazon Cognito context data collection library.</p>
*/
inline ContextDataType& WithEncodedData(const char* value) { SetEncodedData(value); return *this;}
private:
Aws::String m_ipAddress;
bool m_ipAddressHasBeenSet;
Aws::String m_serverName;
bool m_serverNameHasBeenSet;
Aws::String m_serverPath;
bool m_serverPathHasBeenSet;
Aws::Vector<HttpHeader> m_httpHeaders;
bool m_httpHeadersHasBeenSet;
Aws::String m_encodedData;
bool m_encodedDataHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,293 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
*/
class AWS_COGNITOIDENTITYPROVIDER_API CreateGroupRequest : public CognitoIdentityProviderRequest
{
public:
CreateGroupRequest();
// 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 "CreateGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the group. Must be unique.</p>
*/
inline const Aws::String& GetGroupName() const{ return m_groupName; }
/**
* <p>The name of the group. Must be unique.</p>
*/
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
/**
* <p>The name of the group. Must be unique.</p>
*/
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
/**
* <p>The name of the group. Must be unique.</p>
*/
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
/**
* <p>The name of the group. Must be unique.</p>
*/
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
/**
* <p>The name of the group. Must be unique.</p>
*/
inline CreateGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
/**
* <p>The name of the group. Must be unique.</p>
*/
inline CreateGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
/**
* <p>The name of the group. Must be unique.</p>
*/
inline CreateGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline CreateGroupRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline CreateGroupRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline CreateGroupRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>A string containing the description of the group.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A string containing the description of the group.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A string containing the description of the group.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A string containing the description of the group.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A string containing the description of the group.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A string containing the description of the group.</p>
*/
inline CreateGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A string containing the description of the group.</p>
*/
inline CreateGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A string containing the description of the group.</p>
*/
inline CreateGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The role ARN for the group.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The role ARN for the group.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The role ARN for the group.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The role ARN for the group.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The role ARN for the group.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The role ARN for the group.</p>
*/
inline CreateGroupRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The role ARN for the group.</p>
*/
inline CreateGroupRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The role ARN for the group.</p>
*/
inline CreateGroupRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>A nonnegative integer value that specifies the precedence of this group
* relative to the other groups that a user can belong to in the user pool. Zero is
* the highest precedence value. Groups with lower <code>Precedence</code> values
* take precedence over groups with higher or null <code>Precedence</code> values.
* If a user belongs to two or more groups, it is the group with the lowest
* precedence value whose role ARN will be used in the <code>cognito:roles</code>
* and <code>cognito:preferred_role</code> claims in the user's tokens.</p> <p>Two
* groups can have the same <code>Precedence</code> value. If this happens, neither
* group takes precedence over the other. If two groups with the same
* <code>Precedence</code> have the same role ARN, that role is used in the
* <code>cognito:preferred_role</code> claim in tokens for users in each group. If
* the two groups have different role ARNs, the <code>cognito:preferred_role</code>
* claim is not set in users' tokens.</p> <p>The default <code>Precedence</code>
* value is null.</p>
*/
inline int GetPrecedence() const{ return m_precedence; }
/**
* <p>A nonnegative integer value that specifies the precedence of this group
* relative to the other groups that a user can belong to in the user pool. Zero is
* the highest precedence value. Groups with lower <code>Precedence</code> values
* take precedence over groups with higher or null <code>Precedence</code> values.
* If a user belongs to two or more groups, it is the group with the lowest
* precedence value whose role ARN will be used in the <code>cognito:roles</code>
* and <code>cognito:preferred_role</code> claims in the user's tokens.</p> <p>Two
* groups can have the same <code>Precedence</code> value. If this happens, neither
* group takes precedence over the other. If two groups with the same
* <code>Precedence</code> have the same role ARN, that role is used in the
* <code>cognito:preferred_role</code> claim in tokens for users in each group. If
* the two groups have different role ARNs, the <code>cognito:preferred_role</code>
* claim is not set in users' tokens.</p> <p>The default <code>Precedence</code>
* value is null.</p>
*/
inline bool PrecedenceHasBeenSet() const { return m_precedenceHasBeenSet; }
/**
* <p>A nonnegative integer value that specifies the precedence of this group
* relative to the other groups that a user can belong to in the user pool. Zero is
* the highest precedence value. Groups with lower <code>Precedence</code> values
* take precedence over groups with higher or null <code>Precedence</code> values.
* If a user belongs to two or more groups, it is the group with the lowest
* precedence value whose role ARN will be used in the <code>cognito:roles</code>
* and <code>cognito:preferred_role</code> claims in the user's tokens.</p> <p>Two
* groups can have the same <code>Precedence</code> value. If this happens, neither
* group takes precedence over the other. If two groups with the same
* <code>Precedence</code> have the same role ARN, that role is used in the
* <code>cognito:preferred_role</code> claim in tokens for users in each group. If
* the two groups have different role ARNs, the <code>cognito:preferred_role</code>
* claim is not set in users' tokens.</p> <p>The default <code>Precedence</code>
* value is null.</p>
*/
inline void SetPrecedence(int value) { m_precedenceHasBeenSet = true; m_precedence = value; }
/**
* <p>A nonnegative integer value that specifies the precedence of this group
* relative to the other groups that a user can belong to in the user pool. Zero is
* the highest precedence value. Groups with lower <code>Precedence</code> values
* take precedence over groups with higher or null <code>Precedence</code> values.
* If a user belongs to two or more groups, it is the group with the lowest
* precedence value whose role ARN will be used in the <code>cognito:roles</code>
* and <code>cognito:preferred_role</code> claims in the user's tokens.</p> <p>Two
* groups can have the same <code>Precedence</code> value. If this happens, neither
* group takes precedence over the other. If two groups with the same
* <code>Precedence</code> have the same role ARN, that role is used in the
* <code>cognito:preferred_role</code> claim in tokens for users in each group. If
* the two groups have different role ARNs, the <code>cognito:preferred_role</code>
* claim is not set in users' tokens.</p> <p>The default <code>Precedence</code>
* value is null.</p>
*/
inline CreateGroupRequest& WithPrecedence(int value) { SetPrecedence(value); return *this;}
private:
Aws::String m_groupName;
bool m_groupNameHasBeenSet;
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
int m_precedence;
bool m_precedenceHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/model/GroupType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
class AWS_COGNITOIDENTITYPROVIDER_API CreateGroupResult
{
public:
CreateGroupResult();
CreateGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The group object for the group.</p>
*/
inline const GroupType& GetGroup() const{ return m_group; }
/**
* <p>The group object for the group.</p>
*/
inline void SetGroup(const GroupType& value) { m_group = value; }
/**
* <p>The group object for the group.</p>
*/
inline void SetGroup(GroupType&& value) { m_group = std::move(value); }
/**
* <p>The group object for the group.</p>
*/
inline CreateGroupResult& WithGroup(const GroupType& value) { SetGroup(value); return *this;}
/**
* <p>The group object for the group.</p>
*/
inline CreateGroupResult& WithGroup(GroupType&& value) { SetGroup(std::move(value)); return *this;}
private:
GroupType m_group;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,600 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cognito-idp/model/IdentityProviderTypeType.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
*/
class AWS_COGNITOIDENTITYPROVIDER_API CreateIdentityProviderRequest : public CognitoIdentityProviderRequest
{
public:
CreateIdentityProviderRequest();
// 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 "CreateIdentityProvider"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID.</p>
*/
inline CreateIdentityProviderRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline CreateIdentityProviderRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline CreateIdentityProviderRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The identity provider name.</p>
*/
inline const Aws::String& GetProviderName() const{ return m_providerName; }
/**
* <p>The identity provider name.</p>
*/
inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
/**
* <p>The identity provider name.</p>
*/
inline void SetProviderName(const Aws::String& value) { m_providerNameHasBeenSet = true; m_providerName = value; }
/**
* <p>The identity provider name.</p>
*/
inline void SetProviderName(Aws::String&& value) { m_providerNameHasBeenSet = true; m_providerName = std::move(value); }
/**
* <p>The identity provider name.</p>
*/
inline void SetProviderName(const char* value) { m_providerNameHasBeenSet = true; m_providerName.assign(value); }
/**
* <p>The identity provider name.</p>
*/
inline CreateIdentityProviderRequest& WithProviderName(const Aws::String& value) { SetProviderName(value); return *this;}
/**
* <p>The identity provider name.</p>
*/
inline CreateIdentityProviderRequest& WithProviderName(Aws::String&& value) { SetProviderName(std::move(value)); return *this;}
/**
* <p>The identity provider name.</p>
*/
inline CreateIdentityProviderRequest& WithProviderName(const char* value) { SetProviderName(value); return *this;}
/**
* <p>The identity provider type.</p>
*/
inline const IdentityProviderTypeType& GetProviderType() const{ return m_providerType; }
/**
* <p>The identity provider type.</p>
*/
inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
/**
* <p>The identity provider type.</p>
*/
inline void SetProviderType(const IdentityProviderTypeType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
/**
* <p>The identity provider type.</p>
*/
inline void SetProviderType(IdentityProviderTypeType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
/**
* <p>The identity provider type.</p>
*/
inline CreateIdentityProviderRequest& WithProviderType(const IdentityProviderTypeType& value) { SetProviderType(value); return *this;}
/**
* <p>The identity provider type.</p>
*/
inline CreateIdentityProviderRequest& WithProviderType(IdentityProviderTypeType&& value) { SetProviderType(std::move(value)); return *this;}
/**
* <p>The identity provider details. The following list describes the provider
* detail keys for each identity provider type.</p> <ul> <li> <p>For Google and
* Login with Amazon:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>client_secret</p> </li> <li> <p>authorize_scopes</p> </li> </ul> </li> <li>
* <p>For Facebook:</p> <ul> <li> <p>client_id</p> </li> <li> <p>client_secret</p>
* </li> <li> <p>authorize_scopes</p> </li> <li> <p>api_version</p> </li> </ul>
* </li> <li> <p>For Sign in with Apple:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>team_id</p> </li> <li> <p>key_id</p> </li> <li> <p>private_key</p> </li> <li>
* <p>authorize_scopes</p> </li> </ul> </li> <li> <p>For OIDC providers:</p> <ul>
* <li> <p>client_id</p> </li> <li> <p>client_secret</p> </li> <li>
* <p>attributes_request_method</p> </li> <li> <p>oidc_issuer</p> </li> <li>
* <p>authorize_scopes</p> </li> <li> <p>authorize_url <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> <li> <p>token_url
* <i>if not available from discovery URL specified by oidc_issuer key</i> </p>
* </li> <li> <p>attributes_url <i>if not available from discovery URL specified by
* oidc_issuer key</i> </p> </li> <li> <p>jwks_uri <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> </ul> </li> <li>
* <p>For SAML providers:</p> <ul> <li> <p>MetadataFile OR MetadataURL</p> </li>
* <li> <p>IDPSignout <i>optional</i> </p> </li> </ul> </li> </ul>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetProviderDetails() const{ return m_providerDetails; }
/**
* <p>The identity provider details. The following list describes the provider
* detail keys for each identity provider type.</p> <ul> <li> <p>For Google and
* Login with Amazon:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>client_secret</p> </li> <li> <p>authorize_scopes</p> </li> </ul> </li> <li>
* <p>For Facebook:</p> <ul> <li> <p>client_id</p> </li> <li> <p>client_secret</p>
* </li> <li> <p>authorize_scopes</p> </li> <li> <p>api_version</p> </li> </ul>
* </li> <li> <p>For Sign in with Apple:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>team_id</p> </li> <li> <p>key_id</p> </li> <li> <p>private_key</p> </li> <li>
* <p>authorize_scopes</p> </li> </ul> </li> <li> <p>For OIDC providers:</p> <ul>
* <li> <p>client_id</p> </li> <li> <p>client_secret</p> </li> <li>
* <p>attributes_request_method</p> </li> <li> <p>oidc_issuer</p> </li> <li>
* <p>authorize_scopes</p> </li> <li> <p>authorize_url <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> <li> <p>token_url
* <i>if not available from discovery URL specified by oidc_issuer key</i> </p>
* </li> <li> <p>attributes_url <i>if not available from discovery URL specified by
* oidc_issuer key</i> </p> </li> <li> <p>jwks_uri <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> </ul> </li> <li>
* <p>For SAML providers:</p> <ul> <li> <p>MetadataFile OR MetadataURL</p> </li>
* <li> <p>IDPSignout <i>optional</i> </p> </li> </ul> </li> </ul>
*/
inline bool ProviderDetailsHasBeenSet() const { return m_providerDetailsHasBeenSet; }
/**
* <p>The identity provider details. The following list describes the provider
* detail keys for each identity provider type.</p> <ul> <li> <p>For Google and
* Login with Amazon:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>client_secret</p> </li> <li> <p>authorize_scopes</p> </li> </ul> </li> <li>
* <p>For Facebook:</p> <ul> <li> <p>client_id</p> </li> <li> <p>client_secret</p>
* </li> <li> <p>authorize_scopes</p> </li> <li> <p>api_version</p> </li> </ul>
* </li> <li> <p>For Sign in with Apple:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>team_id</p> </li> <li> <p>key_id</p> </li> <li> <p>private_key</p> </li> <li>
* <p>authorize_scopes</p> </li> </ul> </li> <li> <p>For OIDC providers:</p> <ul>
* <li> <p>client_id</p> </li> <li> <p>client_secret</p> </li> <li>
* <p>attributes_request_method</p> </li> <li> <p>oidc_issuer</p> </li> <li>
* <p>authorize_scopes</p> </li> <li> <p>authorize_url <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> <li> <p>token_url
* <i>if not available from discovery URL specified by oidc_issuer key</i> </p>
* </li> <li> <p>attributes_url <i>if not available from discovery URL specified by
* oidc_issuer key</i> </p> </li> <li> <p>jwks_uri <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> </ul> </li> <li>
* <p>For SAML providers:</p> <ul> <li> <p>MetadataFile OR MetadataURL</p> </li>
* <li> <p>IDPSignout <i>optional</i> </p> </li> </ul> </li> </ul>
*/
inline void SetProviderDetails(const Aws::Map<Aws::String, Aws::String>& value) { m_providerDetailsHasBeenSet = true; m_providerDetails = value; }
/**
* <p>The identity provider details. The following list describes the provider
* detail keys for each identity provider type.</p> <ul> <li> <p>For Google and
* Login with Amazon:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>client_secret</p> </li> <li> <p>authorize_scopes</p> </li> </ul> </li> <li>
* <p>For Facebook:</p> <ul> <li> <p>client_id</p> </li> <li> <p>client_secret</p>
* </li> <li> <p>authorize_scopes</p> </li> <li> <p>api_version</p> </li> </ul>
* </li> <li> <p>For Sign in with Apple:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>team_id</p> </li> <li> <p>key_id</p> </li> <li> <p>private_key</p> </li> <li>
* <p>authorize_scopes</p> </li> </ul> </li> <li> <p>For OIDC providers:</p> <ul>
* <li> <p>client_id</p> </li> <li> <p>client_secret</p> </li> <li>
* <p>attributes_request_method</p> </li> <li> <p>oidc_issuer</p> </li> <li>
* <p>authorize_scopes</p> </li> <li> <p>authorize_url <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> <li> <p>token_url
* <i>if not available from discovery URL specified by oidc_issuer key</i> </p>
* </li> <li> <p>attributes_url <i>if not available from discovery URL specified by
* oidc_issuer key</i> </p> </li> <li> <p>jwks_uri <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> </ul> </li> <li>
* <p>For SAML providers:</p> <ul> <li> <p>MetadataFile OR MetadataURL</p> </li>
* <li> <p>IDPSignout <i>optional</i> </p> </li> </ul> </li> </ul>
*/
inline void SetProviderDetails(Aws::Map<Aws::String, Aws::String>&& value) { m_providerDetailsHasBeenSet = true; m_providerDetails = std::move(value); }
/**
* <p>The identity provider details. The following list describes the provider
* detail keys for each identity provider type.</p> <ul> <li> <p>For Google and
* Login with Amazon:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>client_secret</p> </li> <li> <p>authorize_scopes</p> </li> </ul> </li> <li>
* <p>For Facebook:</p> <ul> <li> <p>client_id</p> </li> <li> <p>client_secret</p>
* </li> <li> <p>authorize_scopes</p> </li> <li> <p>api_version</p> </li> </ul>
* </li> <li> <p>For Sign in with Apple:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>team_id</p> </li> <li> <p>key_id</p> </li> <li> <p>private_key</p> </li> <li>
* <p>authorize_scopes</p> </li> </ul> </li> <li> <p>For OIDC providers:</p> <ul>
* <li> <p>client_id</p> </li> <li> <p>client_secret</p> </li> <li>
* <p>attributes_request_method</p> </li> <li> <p>oidc_issuer</p> </li> <li>
* <p>authorize_scopes</p> </li> <li> <p>authorize_url <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> <li> <p>token_url
* <i>if not available from discovery URL specified by oidc_issuer key</i> </p>
* </li> <li> <p>attributes_url <i>if not available from discovery URL specified by
* oidc_issuer key</i> </p> </li> <li> <p>jwks_uri <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> </ul> </li> <li>
* <p>For SAML providers:</p> <ul> <li> <p>MetadataFile OR MetadataURL</p> </li>
* <li> <p>IDPSignout <i>optional</i> </p> </li> </ul> </li> </ul>
*/
inline CreateIdentityProviderRequest& WithProviderDetails(const Aws::Map<Aws::String, Aws::String>& value) { SetProviderDetails(value); return *this;}
/**
* <p>The identity provider details. The following list describes the provider
* detail keys for each identity provider type.</p> <ul> <li> <p>For Google and
* Login with Amazon:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>client_secret</p> </li> <li> <p>authorize_scopes</p> </li> </ul> </li> <li>
* <p>For Facebook:</p> <ul> <li> <p>client_id</p> </li> <li> <p>client_secret</p>
* </li> <li> <p>authorize_scopes</p> </li> <li> <p>api_version</p> </li> </ul>
* </li> <li> <p>For Sign in with Apple:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>team_id</p> </li> <li> <p>key_id</p> </li> <li> <p>private_key</p> </li> <li>
* <p>authorize_scopes</p> </li> </ul> </li> <li> <p>For OIDC providers:</p> <ul>
* <li> <p>client_id</p> </li> <li> <p>client_secret</p> </li> <li>
* <p>attributes_request_method</p> </li> <li> <p>oidc_issuer</p> </li> <li>
* <p>authorize_scopes</p> </li> <li> <p>authorize_url <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> <li> <p>token_url
* <i>if not available from discovery URL specified by oidc_issuer key</i> </p>
* </li> <li> <p>attributes_url <i>if not available from discovery URL specified by
* oidc_issuer key</i> </p> </li> <li> <p>jwks_uri <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> </ul> </li> <li>
* <p>For SAML providers:</p> <ul> <li> <p>MetadataFile OR MetadataURL</p> </li>
* <li> <p>IDPSignout <i>optional</i> </p> </li> </ul> </li> </ul>
*/
inline CreateIdentityProviderRequest& WithProviderDetails(Aws::Map<Aws::String, Aws::String>&& value) { SetProviderDetails(std::move(value)); return *this;}
/**
* <p>The identity provider details. The following list describes the provider
* detail keys for each identity provider type.</p> <ul> <li> <p>For Google and
* Login with Amazon:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>client_secret</p> </li> <li> <p>authorize_scopes</p> </li> </ul> </li> <li>
* <p>For Facebook:</p> <ul> <li> <p>client_id</p> </li> <li> <p>client_secret</p>
* </li> <li> <p>authorize_scopes</p> </li> <li> <p>api_version</p> </li> </ul>
* </li> <li> <p>For Sign in with Apple:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>team_id</p> </li> <li> <p>key_id</p> </li> <li> <p>private_key</p> </li> <li>
* <p>authorize_scopes</p> </li> </ul> </li> <li> <p>For OIDC providers:</p> <ul>
* <li> <p>client_id</p> </li> <li> <p>client_secret</p> </li> <li>
* <p>attributes_request_method</p> </li> <li> <p>oidc_issuer</p> </li> <li>
* <p>authorize_scopes</p> </li> <li> <p>authorize_url <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> <li> <p>token_url
* <i>if not available from discovery URL specified by oidc_issuer key</i> </p>
* </li> <li> <p>attributes_url <i>if not available from discovery URL specified by
* oidc_issuer key</i> </p> </li> <li> <p>jwks_uri <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> </ul> </li> <li>
* <p>For SAML providers:</p> <ul> <li> <p>MetadataFile OR MetadataURL</p> </li>
* <li> <p>IDPSignout <i>optional</i> </p> </li> </ul> </li> </ul>
*/
inline CreateIdentityProviderRequest& AddProviderDetails(const Aws::String& key, const Aws::String& value) { m_providerDetailsHasBeenSet = true; m_providerDetails.emplace(key, value); return *this; }
/**
* <p>The identity provider details. The following list describes the provider
* detail keys for each identity provider type.</p> <ul> <li> <p>For Google and
* Login with Amazon:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>client_secret</p> </li> <li> <p>authorize_scopes</p> </li> </ul> </li> <li>
* <p>For Facebook:</p> <ul> <li> <p>client_id</p> </li> <li> <p>client_secret</p>
* </li> <li> <p>authorize_scopes</p> </li> <li> <p>api_version</p> </li> </ul>
* </li> <li> <p>For Sign in with Apple:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>team_id</p> </li> <li> <p>key_id</p> </li> <li> <p>private_key</p> </li> <li>
* <p>authorize_scopes</p> </li> </ul> </li> <li> <p>For OIDC providers:</p> <ul>
* <li> <p>client_id</p> </li> <li> <p>client_secret</p> </li> <li>
* <p>attributes_request_method</p> </li> <li> <p>oidc_issuer</p> </li> <li>
* <p>authorize_scopes</p> </li> <li> <p>authorize_url <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> <li> <p>token_url
* <i>if not available from discovery URL specified by oidc_issuer key</i> </p>
* </li> <li> <p>attributes_url <i>if not available from discovery URL specified by
* oidc_issuer key</i> </p> </li> <li> <p>jwks_uri <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> </ul> </li> <li>
* <p>For SAML providers:</p> <ul> <li> <p>MetadataFile OR MetadataURL</p> </li>
* <li> <p>IDPSignout <i>optional</i> </p> </li> </ul> </li> </ul>
*/
inline CreateIdentityProviderRequest& AddProviderDetails(Aws::String&& key, const Aws::String& value) { m_providerDetailsHasBeenSet = true; m_providerDetails.emplace(std::move(key), value); return *this; }
/**
* <p>The identity provider details. The following list describes the provider
* detail keys for each identity provider type.</p> <ul> <li> <p>For Google and
* Login with Amazon:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>client_secret</p> </li> <li> <p>authorize_scopes</p> </li> </ul> </li> <li>
* <p>For Facebook:</p> <ul> <li> <p>client_id</p> </li> <li> <p>client_secret</p>
* </li> <li> <p>authorize_scopes</p> </li> <li> <p>api_version</p> </li> </ul>
* </li> <li> <p>For Sign in with Apple:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>team_id</p> </li> <li> <p>key_id</p> </li> <li> <p>private_key</p> </li> <li>
* <p>authorize_scopes</p> </li> </ul> </li> <li> <p>For OIDC providers:</p> <ul>
* <li> <p>client_id</p> </li> <li> <p>client_secret</p> </li> <li>
* <p>attributes_request_method</p> </li> <li> <p>oidc_issuer</p> </li> <li>
* <p>authorize_scopes</p> </li> <li> <p>authorize_url <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> <li> <p>token_url
* <i>if not available from discovery URL specified by oidc_issuer key</i> </p>
* </li> <li> <p>attributes_url <i>if not available from discovery URL specified by
* oidc_issuer key</i> </p> </li> <li> <p>jwks_uri <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> </ul> </li> <li>
* <p>For SAML providers:</p> <ul> <li> <p>MetadataFile OR MetadataURL</p> </li>
* <li> <p>IDPSignout <i>optional</i> </p> </li> </ul> </li> </ul>
*/
inline CreateIdentityProviderRequest& AddProviderDetails(const Aws::String& key, Aws::String&& value) { m_providerDetailsHasBeenSet = true; m_providerDetails.emplace(key, std::move(value)); return *this; }
/**
* <p>The identity provider details. The following list describes the provider
* detail keys for each identity provider type.</p> <ul> <li> <p>For Google and
* Login with Amazon:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>client_secret</p> </li> <li> <p>authorize_scopes</p> </li> </ul> </li> <li>
* <p>For Facebook:</p> <ul> <li> <p>client_id</p> </li> <li> <p>client_secret</p>
* </li> <li> <p>authorize_scopes</p> </li> <li> <p>api_version</p> </li> </ul>
* </li> <li> <p>For Sign in with Apple:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>team_id</p> </li> <li> <p>key_id</p> </li> <li> <p>private_key</p> </li> <li>
* <p>authorize_scopes</p> </li> </ul> </li> <li> <p>For OIDC providers:</p> <ul>
* <li> <p>client_id</p> </li> <li> <p>client_secret</p> </li> <li>
* <p>attributes_request_method</p> </li> <li> <p>oidc_issuer</p> </li> <li>
* <p>authorize_scopes</p> </li> <li> <p>authorize_url <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> <li> <p>token_url
* <i>if not available from discovery URL specified by oidc_issuer key</i> </p>
* </li> <li> <p>attributes_url <i>if not available from discovery URL specified by
* oidc_issuer key</i> </p> </li> <li> <p>jwks_uri <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> </ul> </li> <li>
* <p>For SAML providers:</p> <ul> <li> <p>MetadataFile OR MetadataURL</p> </li>
* <li> <p>IDPSignout <i>optional</i> </p> </li> </ul> </li> </ul>
*/
inline CreateIdentityProviderRequest& AddProviderDetails(Aws::String&& key, Aws::String&& value) { m_providerDetailsHasBeenSet = true; m_providerDetails.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The identity provider details. The following list describes the provider
* detail keys for each identity provider type.</p> <ul> <li> <p>For Google and
* Login with Amazon:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>client_secret</p> </li> <li> <p>authorize_scopes</p> </li> </ul> </li> <li>
* <p>For Facebook:</p> <ul> <li> <p>client_id</p> </li> <li> <p>client_secret</p>
* </li> <li> <p>authorize_scopes</p> </li> <li> <p>api_version</p> </li> </ul>
* </li> <li> <p>For Sign in with Apple:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>team_id</p> </li> <li> <p>key_id</p> </li> <li> <p>private_key</p> </li> <li>
* <p>authorize_scopes</p> </li> </ul> </li> <li> <p>For OIDC providers:</p> <ul>
* <li> <p>client_id</p> </li> <li> <p>client_secret</p> </li> <li>
* <p>attributes_request_method</p> </li> <li> <p>oidc_issuer</p> </li> <li>
* <p>authorize_scopes</p> </li> <li> <p>authorize_url <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> <li> <p>token_url
* <i>if not available from discovery URL specified by oidc_issuer key</i> </p>
* </li> <li> <p>attributes_url <i>if not available from discovery URL specified by
* oidc_issuer key</i> </p> </li> <li> <p>jwks_uri <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> </ul> </li> <li>
* <p>For SAML providers:</p> <ul> <li> <p>MetadataFile OR MetadataURL</p> </li>
* <li> <p>IDPSignout <i>optional</i> </p> </li> </ul> </li> </ul>
*/
inline CreateIdentityProviderRequest& AddProviderDetails(const char* key, Aws::String&& value) { m_providerDetailsHasBeenSet = true; m_providerDetails.emplace(key, std::move(value)); return *this; }
/**
* <p>The identity provider details. The following list describes the provider
* detail keys for each identity provider type.</p> <ul> <li> <p>For Google and
* Login with Amazon:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>client_secret</p> </li> <li> <p>authorize_scopes</p> </li> </ul> </li> <li>
* <p>For Facebook:</p> <ul> <li> <p>client_id</p> </li> <li> <p>client_secret</p>
* </li> <li> <p>authorize_scopes</p> </li> <li> <p>api_version</p> </li> </ul>
* </li> <li> <p>For Sign in with Apple:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>team_id</p> </li> <li> <p>key_id</p> </li> <li> <p>private_key</p> </li> <li>
* <p>authorize_scopes</p> </li> </ul> </li> <li> <p>For OIDC providers:</p> <ul>
* <li> <p>client_id</p> </li> <li> <p>client_secret</p> </li> <li>
* <p>attributes_request_method</p> </li> <li> <p>oidc_issuer</p> </li> <li>
* <p>authorize_scopes</p> </li> <li> <p>authorize_url <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> <li> <p>token_url
* <i>if not available from discovery URL specified by oidc_issuer key</i> </p>
* </li> <li> <p>attributes_url <i>if not available from discovery URL specified by
* oidc_issuer key</i> </p> </li> <li> <p>jwks_uri <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> </ul> </li> <li>
* <p>For SAML providers:</p> <ul> <li> <p>MetadataFile OR MetadataURL</p> </li>
* <li> <p>IDPSignout <i>optional</i> </p> </li> </ul> </li> </ul>
*/
inline CreateIdentityProviderRequest& AddProviderDetails(Aws::String&& key, const char* value) { m_providerDetailsHasBeenSet = true; m_providerDetails.emplace(std::move(key), value); return *this; }
/**
* <p>The identity provider details. The following list describes the provider
* detail keys for each identity provider type.</p> <ul> <li> <p>For Google and
* Login with Amazon:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>client_secret</p> </li> <li> <p>authorize_scopes</p> </li> </ul> </li> <li>
* <p>For Facebook:</p> <ul> <li> <p>client_id</p> </li> <li> <p>client_secret</p>
* </li> <li> <p>authorize_scopes</p> </li> <li> <p>api_version</p> </li> </ul>
* </li> <li> <p>For Sign in with Apple:</p> <ul> <li> <p>client_id</p> </li> <li>
* <p>team_id</p> </li> <li> <p>key_id</p> </li> <li> <p>private_key</p> </li> <li>
* <p>authorize_scopes</p> </li> </ul> </li> <li> <p>For OIDC providers:</p> <ul>
* <li> <p>client_id</p> </li> <li> <p>client_secret</p> </li> <li>
* <p>attributes_request_method</p> </li> <li> <p>oidc_issuer</p> </li> <li>
* <p>authorize_scopes</p> </li> <li> <p>authorize_url <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> <li> <p>token_url
* <i>if not available from discovery URL specified by oidc_issuer key</i> </p>
* </li> <li> <p>attributes_url <i>if not available from discovery URL specified by
* oidc_issuer key</i> </p> </li> <li> <p>jwks_uri <i>if not available from
* discovery URL specified by oidc_issuer key</i> </p> </li> </ul> </li> <li>
* <p>For SAML providers:</p> <ul> <li> <p>MetadataFile OR MetadataURL</p> </li>
* <li> <p>IDPSignout <i>optional</i> </p> </li> </ul> </li> </ul>
*/
inline CreateIdentityProviderRequest& AddProviderDetails(const char* key, const char* value) { m_providerDetailsHasBeenSet = true; m_providerDetails.emplace(key, value); return *this; }
/**
* <p>A mapping of identity provider attributes to standard and custom user pool
* attributes.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetAttributeMapping() const{ return m_attributeMapping; }
/**
* <p>A mapping of identity provider attributes to standard and custom user pool
* attributes.</p>
*/
inline bool AttributeMappingHasBeenSet() const { return m_attributeMappingHasBeenSet; }
/**
* <p>A mapping of identity provider attributes to standard and custom user pool
* attributes.</p>
*/
inline void SetAttributeMapping(const Aws::Map<Aws::String, Aws::String>& value) { m_attributeMappingHasBeenSet = true; m_attributeMapping = value; }
/**
* <p>A mapping of identity provider attributes to standard and custom user pool
* attributes.</p>
*/
inline void SetAttributeMapping(Aws::Map<Aws::String, Aws::String>&& value) { m_attributeMappingHasBeenSet = true; m_attributeMapping = std::move(value); }
/**
* <p>A mapping of identity provider attributes to standard and custom user pool
* attributes.</p>
*/
inline CreateIdentityProviderRequest& WithAttributeMapping(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributeMapping(value); return *this;}
/**
* <p>A mapping of identity provider attributes to standard and custom user pool
* attributes.</p>
*/
inline CreateIdentityProviderRequest& WithAttributeMapping(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributeMapping(std::move(value)); return *this;}
/**
* <p>A mapping of identity provider attributes to standard and custom user pool
* attributes.</p>
*/
inline CreateIdentityProviderRequest& AddAttributeMapping(const Aws::String& key, const Aws::String& value) { m_attributeMappingHasBeenSet = true; m_attributeMapping.emplace(key, value); return *this; }
/**
* <p>A mapping of identity provider attributes to standard and custom user pool
* attributes.</p>
*/
inline CreateIdentityProviderRequest& AddAttributeMapping(Aws::String&& key, const Aws::String& value) { m_attributeMappingHasBeenSet = true; m_attributeMapping.emplace(std::move(key), value); return *this; }
/**
* <p>A mapping of identity provider attributes to standard and custom user pool
* attributes.</p>
*/
inline CreateIdentityProviderRequest& AddAttributeMapping(const Aws::String& key, Aws::String&& value) { m_attributeMappingHasBeenSet = true; m_attributeMapping.emplace(key, std::move(value)); return *this; }
/**
* <p>A mapping of identity provider attributes to standard and custom user pool
* attributes.</p>
*/
inline CreateIdentityProviderRequest& AddAttributeMapping(Aws::String&& key, Aws::String&& value) { m_attributeMappingHasBeenSet = true; m_attributeMapping.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A mapping of identity provider attributes to standard and custom user pool
* attributes.</p>
*/
inline CreateIdentityProviderRequest& AddAttributeMapping(const char* key, Aws::String&& value) { m_attributeMappingHasBeenSet = true; m_attributeMapping.emplace(key, std::move(value)); return *this; }
/**
* <p>A mapping of identity provider attributes to standard and custom user pool
* attributes.</p>
*/
inline CreateIdentityProviderRequest& AddAttributeMapping(Aws::String&& key, const char* value) { m_attributeMappingHasBeenSet = true; m_attributeMapping.emplace(std::move(key), value); return *this; }
/**
* <p>A mapping of identity provider attributes to standard and custom user pool
* attributes.</p>
*/
inline CreateIdentityProviderRequest& AddAttributeMapping(const char* key, const char* value) { m_attributeMappingHasBeenSet = true; m_attributeMapping.emplace(key, value); return *this; }
/**
* <p>A list of identity provider identifiers.</p>
*/
inline const Aws::Vector<Aws::String>& GetIdpIdentifiers() const{ return m_idpIdentifiers; }
/**
* <p>A list of identity provider identifiers.</p>
*/
inline bool IdpIdentifiersHasBeenSet() const { return m_idpIdentifiersHasBeenSet; }
/**
* <p>A list of identity provider identifiers.</p>
*/
inline void SetIdpIdentifiers(const Aws::Vector<Aws::String>& value) { m_idpIdentifiersHasBeenSet = true; m_idpIdentifiers = value; }
/**
* <p>A list of identity provider identifiers.</p>
*/
inline void SetIdpIdentifiers(Aws::Vector<Aws::String>&& value) { m_idpIdentifiersHasBeenSet = true; m_idpIdentifiers = std::move(value); }
/**
* <p>A list of identity provider identifiers.</p>
*/
inline CreateIdentityProviderRequest& WithIdpIdentifiers(const Aws::Vector<Aws::String>& value) { SetIdpIdentifiers(value); return *this;}
/**
* <p>A list of identity provider identifiers.</p>
*/
inline CreateIdentityProviderRequest& WithIdpIdentifiers(Aws::Vector<Aws::String>&& value) { SetIdpIdentifiers(std::move(value)); return *this;}
/**
* <p>A list of identity provider identifiers.</p>
*/
inline CreateIdentityProviderRequest& AddIdpIdentifiers(const Aws::String& value) { m_idpIdentifiersHasBeenSet = true; m_idpIdentifiers.push_back(value); return *this; }
/**
* <p>A list of identity provider identifiers.</p>
*/
inline CreateIdentityProviderRequest& AddIdpIdentifiers(Aws::String&& value) { m_idpIdentifiersHasBeenSet = true; m_idpIdentifiers.push_back(std::move(value)); return *this; }
/**
* <p>A list of identity provider identifiers.</p>
*/
inline CreateIdentityProviderRequest& AddIdpIdentifiers(const char* value) { m_idpIdentifiersHasBeenSet = true; m_idpIdentifiers.push_back(value); return *this; }
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_providerName;
bool m_providerNameHasBeenSet;
IdentityProviderTypeType m_providerType;
bool m_providerTypeHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_providerDetails;
bool m_providerDetailsHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_attributeMapping;
bool m_attributeMappingHasBeenSet;
Aws::Vector<Aws::String> m_idpIdentifiers;
bool m_idpIdentifiersHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/model/IdentityProviderType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
class AWS_COGNITOIDENTITYPROVIDER_API CreateIdentityProviderResult
{
public:
CreateIdentityProviderResult();
CreateIdentityProviderResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateIdentityProviderResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The newly created identity provider object.</p>
*/
inline const IdentityProviderType& GetIdentityProvider() const{ return m_identityProvider; }
/**
* <p>The newly created identity provider object.</p>
*/
inline void SetIdentityProvider(const IdentityProviderType& value) { m_identityProvider = value; }
/**
* <p>The newly created identity provider object.</p>
*/
inline void SetIdentityProvider(IdentityProviderType&& value) { m_identityProvider = std::move(value); }
/**
* <p>The newly created identity provider object.</p>
*/
inline CreateIdentityProviderResult& WithIdentityProvider(const IdentityProviderType& value) { SetIdentityProvider(value); return *this;}
/**
* <p>The newly created identity provider object.</p>
*/
inline CreateIdentityProviderResult& WithIdentityProvider(IdentityProviderType&& value) { SetIdentityProvider(std::move(value)); return *this;}
private:
IdentityProviderType m_identityProvider;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,243 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/cognito-idp/model/ResourceServerScopeType.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
*/
class AWS_COGNITOIDENTITYPROVIDER_API CreateResourceServerRequest : public CognitoIdentityProviderRequest
{
public:
CreateResourceServerRequest();
// 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 "CreateResourceServer"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for the user pool.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline CreateResourceServerRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline CreateResourceServerRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline CreateResourceServerRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline const Aws::String& GetIdentifier() const{ return m_identifier; }
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline CreateResourceServerRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline CreateResourceServerRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline CreateResourceServerRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
/**
* <p>A friendly name for the resource server.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name for the resource server.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name for the resource server.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name for the resource server.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name for the resource server.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name for the resource server.</p>
*/
inline CreateResourceServerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name for the resource server.</p>
*/
inline CreateResourceServerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name for the resource server.</p>
*/
inline CreateResourceServerRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline const Aws::Vector<ResourceServerScopeType>& GetScopes() const{ return m_scopes; }
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline void SetScopes(const Aws::Vector<ResourceServerScopeType>& value) { m_scopesHasBeenSet = true; m_scopes = value; }
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline void SetScopes(Aws::Vector<ResourceServerScopeType>&& value) { m_scopesHasBeenSet = true; m_scopes = std::move(value); }
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline CreateResourceServerRequest& WithScopes(const Aws::Vector<ResourceServerScopeType>& value) { SetScopes(value); return *this;}
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline CreateResourceServerRequest& WithScopes(Aws::Vector<ResourceServerScopeType>&& value) { SetScopes(std::move(value)); return *this;}
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline CreateResourceServerRequest& AddScopes(const ResourceServerScopeType& value) { m_scopesHasBeenSet = true; m_scopes.push_back(value); return *this; }
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline CreateResourceServerRequest& AddScopes(ResourceServerScopeType&& value) { m_scopesHasBeenSet = true; m_scopes.push_back(std::move(value)); return *this; }
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_identifier;
bool m_identifierHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<ResourceServerScopeType> m_scopes;
bool m_scopesHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/model/ResourceServerType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
class AWS_COGNITOIDENTITYPROVIDER_API CreateResourceServerResult
{
public:
CreateResourceServerResult();
CreateResourceServerResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateResourceServerResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The newly created resource server.</p>
*/
inline const ResourceServerType& GetResourceServer() const{ return m_resourceServer; }
/**
* <p>The newly created resource server.</p>
*/
inline void SetResourceServer(const ResourceServerType& value) { m_resourceServer = value; }
/**
* <p>The newly created resource server.</p>
*/
inline void SetResourceServer(ResourceServerType&& value) { m_resourceServer = std::move(value); }
/**
* <p>The newly created resource server.</p>
*/
inline CreateResourceServerResult& WithResourceServer(const ResourceServerType& value) { SetResourceServer(value); return *this;}
/**
* <p>The newly created resource server.</p>
*/
inline CreateResourceServerResult& WithResourceServer(ResourceServerType&& value) { SetResourceServer(std::move(value)); return *this;}
private:
ResourceServerType m_resourceServer;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,193 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the request to create the user import job.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserImportJobRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API CreateUserImportJobRequest : public CognitoIdentityProviderRequest
{
public:
CreateUserImportJobRequest();
// 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 "CreateUserImportJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The job name for the user import job.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The job name for the user import job.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The job name for the user import job.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The job name for the user import job.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The job name for the user import job.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The job name for the user import job.</p>
*/
inline CreateUserImportJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The job name for the user import job.</p>
*/
inline CreateUserImportJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The job name for the user import job.</p>
*/
inline CreateUserImportJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>The user pool ID for the user pool that the users are being imported
* into.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool that the users are being imported
* into.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool that the users are being imported
* into.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool that the users are being imported
* into.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool that the users are being imported
* into.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool that the users are being imported
* into.</p>
*/
inline CreateUserImportJobRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool that the users are being imported
* into.</p>
*/
inline CreateUserImportJobRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool that the users are being imported
* into.</p>
*/
inline CreateUserImportJobRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The role ARN for the Amazon CloudWatch Logging role for the user import
* job.</p>
*/
inline const Aws::String& GetCloudWatchLogsRoleArn() const{ return m_cloudWatchLogsRoleArn; }
/**
* <p>The role ARN for the Amazon CloudWatch Logging role for the user import
* job.</p>
*/
inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
/**
* <p>The role ARN for the Amazon CloudWatch Logging role for the user import
* job.</p>
*/
inline void SetCloudWatchLogsRoleArn(const Aws::String& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; }
/**
* <p>The role ARN for the Amazon CloudWatch Logging role for the user import
* job.</p>
*/
inline void SetCloudWatchLogsRoleArn(Aws::String&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::move(value); }
/**
* <p>The role ARN for the Amazon CloudWatch Logging role for the user import
* job.</p>
*/
inline void SetCloudWatchLogsRoleArn(const char* value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn.assign(value); }
/**
* <p>The role ARN for the Amazon CloudWatch Logging role for the user import
* job.</p>
*/
inline CreateUserImportJobRequest& WithCloudWatchLogsRoleArn(const Aws::String& value) { SetCloudWatchLogsRoleArn(value); return *this;}
/**
* <p>The role ARN for the Amazon CloudWatch Logging role for the user import
* job.</p>
*/
inline CreateUserImportJobRequest& WithCloudWatchLogsRoleArn(Aws::String&& value) { SetCloudWatchLogsRoleArn(std::move(value)); return *this;}
/**
* <p>The role ARN for the Amazon CloudWatch Logging role for the user import
* job.</p>
*/
inline CreateUserImportJobRequest& WithCloudWatchLogsRoleArn(const char* value) { SetCloudWatchLogsRoleArn(value); return *this;}
private:
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_cloudWatchLogsRoleArn;
bool m_cloudWatchLogsRoleArnHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/model/UserImportJobType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the response from the server to the request to create the user
* import job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserImportJobResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API CreateUserImportJobResult
{
public:
CreateUserImportJobResult();
CreateUserImportJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateUserImportJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The job object that represents the user import job.</p>
*/
inline const UserImportJobType& GetUserImportJob() const{ return m_userImportJob; }
/**
* <p>The job object that represents the user import job.</p>
*/
inline void SetUserImportJob(const UserImportJobType& value) { m_userImportJob = value; }
/**
* <p>The job object that represents the user import job.</p>
*/
inline void SetUserImportJob(UserImportJobType&& value) { m_userImportJob = std::move(value); }
/**
* <p>The job object that represents the user import job.</p>
*/
inline CreateUserImportJobResult& WithUserImportJob(const UserImportJobType& value) { SetUserImportJob(value); return *this;}
/**
* <p>The job object that represents the user import job.</p>
*/
inline CreateUserImportJobResult& WithUserImportJob(UserImportJobType&& value) { SetUserImportJob(std::move(value)); return *this;}
private:
UserImportJobType m_userImportJob;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/model/UserPoolClientType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>Represents the response from the server to create a user pool
* client.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolClientResponse">AWS
* API Reference</a></p>
*/
class AWS_COGNITOIDENTITYPROVIDER_API CreateUserPoolClientResult
{
public:
CreateUserPoolClientResult();
CreateUserPoolClientResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateUserPoolClientResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The user pool client that was just created.</p>
*/
inline const UserPoolClientType& GetUserPoolClient() const{ return m_userPoolClient; }
/**
* <p>The user pool client that was just created.</p>
*/
inline void SetUserPoolClient(const UserPoolClientType& value) { m_userPoolClient = value; }
/**
* <p>The user pool client that was just created.</p>
*/
inline void SetUserPoolClient(UserPoolClientType&& value) { m_userPoolClient = std::move(value); }
/**
* <p>The user pool client that was just created.</p>
*/
inline CreateUserPoolClientResult& WithUserPoolClient(const UserPoolClientType& value) { SetUserPoolClient(value); return *this;}
/**
* <p>The user pool client that was just created.</p>
*/
inline CreateUserPoolClientResult& WithUserPoolClient(UserPoolClientType&& value) { SetUserPoolClient(std::move(value)); return *this;}
private:
UserPoolClientType m_userPoolClient;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws

Some files were not shown because too many files have changed in this diff Show More