Skip to content

Commit

Permalink
Update API documentation to clarify the event SLA as well as the data…
Browse files Browse the repository at this point in the history
… model expectations

Releasing the support for Action User Confirmation.
Amazon QBusiness: Enable support for SAML and OIDC federation through AWS IAM Identity Provider integration.
Added support for the MAC_ARM environment type for CodeBuild fleets.
Releasing the support for Action User Confirmation.
Releasing minor partitional endpoint updates.
  • Loading branch information
aws-sdk-cpp-automation committed Aug 23, 2024
1 parent 7e3180c commit 9514d1a
Show file tree
Hide file tree
Showing 80 changed files with 2,297 additions and 199 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.390
1.11.391
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace Aws
{
namespace BedrockAgentRuntime
{
namespace Model
{
enum class ActionInvocationType
{
NOT_SET,
RESULT,
USER_CONFIRMATION,
USER_CONFIRMATION_AND_RESULT
};

namespace ActionInvocationTypeMapper
{
AWS_BEDROCKAGENTRUNTIME_API ActionInvocationType GetActionInvocationTypeForName(const Aws::String& name);

AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForActionInvocationType(ActionInvocationType value);
} // namespace ActionInvocationTypeMapper
} // namespace Model
} // namespace BedrockAgentRuntime
} // namespace Aws
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#pragma once
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/bedrock-agent-runtime/model/ActionInvocationType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/bedrock-agent-runtime/model/ApiRequestBody.h>
#include <aws/bedrock-agent-runtime/model/ApiParameter.h>
Expand Down Expand Up @@ -58,6 +59,18 @@ namespace Model
inline ApiInvocationInput& WithActionGroup(const char* value) { SetActionGroup(value); return *this;}
///@}

///@{
/**
* <p>Contains information about the API operation to invoke.</p>
*/
inline const ActionInvocationType& GetActionInvocationType() const{ return m_actionInvocationType; }
inline bool ActionInvocationTypeHasBeenSet() const { return m_actionInvocationTypeHasBeenSet; }
inline void SetActionInvocationType(const ActionInvocationType& value) { m_actionInvocationTypeHasBeenSet = true; m_actionInvocationType = value; }
inline void SetActionInvocationType(ActionInvocationType&& value) { m_actionInvocationTypeHasBeenSet = true; m_actionInvocationType = std::move(value); }
inline ApiInvocationInput& WithActionInvocationType(const ActionInvocationType& value) { SetActionInvocationType(value); return *this;}
inline ApiInvocationInput& WithActionInvocationType(ActionInvocationType&& value) { SetActionInvocationType(std::move(value)); return *this;}
///@}

///@{
/**
* <p>The path to the API operation.</p>
Expand Down Expand Up @@ -118,6 +131,9 @@ namespace Model
Aws::String m_actionGroup;
bool m_actionGroupHasBeenSet = false;

ActionInvocationType m_actionInvocationType;
bool m_actionInvocationTypeHasBeenSet = false;

Aws::String m_apiPath;
bool m_apiPathHasBeenSet = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#pragma once
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/bedrock-agent-runtime/model/ConfirmationState.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/bedrock-agent-runtime/model/ResponseState.h>
#include <aws/bedrock-agent-runtime/model/ContentBody.h>
Expand Down Expand Up @@ -73,6 +74,19 @@ namespace Model
inline ApiResult& WithApiPath(const char* value) { SetApiPath(value); return *this;}
///@}

///@{
/**
* <p>Controls the API operations or functions to invoke based on the user
* confirmation.</p>
*/
inline const ConfirmationState& GetConfirmationState() const{ return m_confirmationState; }
inline bool ConfirmationStateHasBeenSet() const { return m_confirmationStateHasBeenSet; }
inline void SetConfirmationState(const ConfirmationState& value) { m_confirmationStateHasBeenSet = true; m_confirmationState = value; }
inline void SetConfirmationState(ConfirmationState&& value) { m_confirmationStateHasBeenSet = true; m_confirmationState = std::move(value); }
inline ApiResult& WithConfirmationState(const ConfirmationState& value) { SetConfirmationState(value); return *this;}
inline ApiResult& WithConfirmationState(ConfirmationState&& value) { SetConfirmationState(std::move(value)); return *this;}
///@}

///@{
/**
* <p>The HTTP method for the API operation.</p>
Expand Down Expand Up @@ -140,6 +154,9 @@ namespace Model
Aws::String m_apiPath;
bool m_apiPathHasBeenSet = false;

ConfirmationState m_confirmationState;
bool m_confirmationStateHasBeenSet = false;

Aws::String m_httpMethod;
bool m_httpMethodHasBeenSet = false;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace Aws
{
namespace BedrockAgentRuntime
{
namespace Model
{
enum class ConfirmationState
{
NOT_SET,
CONFIRM,
DENY
};

namespace ConfirmationStateMapper
{
AWS_BEDROCKAGENTRUNTIME_API ConfirmationState GetConfirmationStateForName(const Aws::String& name);

AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForConfirmationState(ConfirmationState value);
} // namespace ConfirmationStateMapper
} // namespace Model
} // namespace BedrockAgentRuntime
} // namespace Aws
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#pragma once
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/bedrock-agent-runtime/model/ActionInvocationType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/bedrock-agent-runtime/model/FunctionParameter.h>
#include <utility>
Expand Down Expand Up @@ -57,6 +58,18 @@ namespace Model
inline FunctionInvocationInput& WithActionGroup(const char* value) { SetActionGroup(value); return *this;}
///@}

///@{
/**
* <p>Contains information about the function to invoke,</p>
*/
inline const ActionInvocationType& GetActionInvocationType() const{ return m_actionInvocationType; }
inline bool ActionInvocationTypeHasBeenSet() const { return m_actionInvocationTypeHasBeenSet; }
inline void SetActionInvocationType(const ActionInvocationType& value) { m_actionInvocationTypeHasBeenSet = true; m_actionInvocationType = value; }
inline void SetActionInvocationType(ActionInvocationType&& value) { m_actionInvocationTypeHasBeenSet = true; m_actionInvocationType = std::move(value); }
inline FunctionInvocationInput& WithActionInvocationType(const ActionInvocationType& value) { SetActionInvocationType(value); return *this;}
inline FunctionInvocationInput& WithActionInvocationType(ActionInvocationType&& value) { SetActionInvocationType(std::move(value)); return *this;}
///@}

///@{
/**
* <p>The name of the function.</p>
Expand Down Expand Up @@ -89,6 +102,9 @@ namespace Model
Aws::String m_actionGroup;
bool m_actionGroupHasBeenSet = false;

ActionInvocationType m_actionInvocationType;
bool m_actionInvocationTypeHasBeenSet = false;

Aws::String m_function;
bool m_functionHasBeenSet = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#pragma once
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/bedrock-agent-runtime/model/ConfirmationState.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/bedrock-agent-runtime/model/ResponseState.h>
#include <aws/bedrock-agent-runtime/model/ContentBody.h>
Expand Down Expand Up @@ -59,6 +60,19 @@ namespace Model
inline FunctionResult& WithActionGroup(const char* value) { SetActionGroup(value); return *this;}
///@}

///@{
/**
* <p>Contains the user confirmation information about the function that was
* called.</p>
*/
inline const ConfirmationState& GetConfirmationState() const{ return m_confirmationState; }
inline bool ConfirmationStateHasBeenSet() const { return m_confirmationStateHasBeenSet; }
inline void SetConfirmationState(const ConfirmationState& value) { m_confirmationStateHasBeenSet = true; m_confirmationState = value; }
inline void SetConfirmationState(ConfirmationState&& value) { m_confirmationStateHasBeenSet = true; m_confirmationState = std::move(value); }
inline FunctionResult& WithConfirmationState(const ConfirmationState& value) { SetConfirmationState(value); return *this;}
inline FunctionResult& WithConfirmationState(ConfirmationState&& value) { SetConfirmationState(std::move(value)); return *this;}
///@}

///@{
/**
* <p>The name of the function that was called.</p>
Expand Down Expand Up @@ -112,6 +126,9 @@ namespace Model
Aws::String m_actionGroup;
bool m_actionGroupHasBeenSet = false;

ConfirmationState m_confirmationState;
bool m_confirmationStateHasBeenSet = false;

Aws::String m_function;
bool m_functionHasBeenSet = false;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#include <aws/bedrock-agent-runtime/model/ActionInvocationType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>

using namespace Aws::Utils;


namespace Aws
{
namespace BedrockAgentRuntime
{
namespace Model
{
namespace ActionInvocationTypeMapper
{

static const int RESULT_HASH = HashingUtils::HashString("RESULT");
static const int USER_CONFIRMATION_HASH = HashingUtils::HashString("USER_CONFIRMATION");
static const int USER_CONFIRMATION_AND_RESULT_HASH = HashingUtils::HashString("USER_CONFIRMATION_AND_RESULT");


ActionInvocationType GetActionInvocationTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == RESULT_HASH)
{
return ActionInvocationType::RESULT;
}
else if (hashCode == USER_CONFIRMATION_HASH)
{
return ActionInvocationType::USER_CONFIRMATION;
}
else if (hashCode == USER_CONFIRMATION_AND_RESULT_HASH)
{
return ActionInvocationType::USER_CONFIRMATION_AND_RESULT;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ActionInvocationType>(hashCode);
}

return ActionInvocationType::NOT_SET;
}

Aws::String GetNameForActionInvocationType(ActionInvocationType enumValue)
{
switch(enumValue)
{
case ActionInvocationType::NOT_SET:
return {};
case ActionInvocationType::RESULT:
return "RESULT";
case ActionInvocationType::USER_CONFIRMATION:
return "USER_CONFIRMATION";
case ActionInvocationType::USER_CONFIRMATION_AND_RESULT:
return "USER_CONFIRMATION_AND_RESULT";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}

return {};
}
}

} // namespace ActionInvocationTypeMapper
} // namespace Model
} // namespace BedrockAgentRuntime
} // namespace Aws
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ namespace Model

ApiInvocationInput::ApiInvocationInput() :
m_actionGroupHasBeenSet(false),
m_actionInvocationType(ActionInvocationType::NOT_SET),
m_actionInvocationTypeHasBeenSet(false),
m_apiPathHasBeenSet(false),
m_httpMethodHasBeenSet(false),
m_parametersHasBeenSet(false),
Expand All @@ -42,6 +44,13 @@ ApiInvocationInput& ApiInvocationInput::operator =(JsonView jsonValue)
m_actionGroupHasBeenSet = true;
}

if(jsonValue.ValueExists("actionInvocationType"))
{
m_actionInvocationType = ActionInvocationTypeMapper::GetActionInvocationTypeForName(jsonValue.GetString("actionInvocationType"));

m_actionInvocationTypeHasBeenSet = true;
}

if(jsonValue.ValueExists("apiPath"))
{
m_apiPath = jsonValue.GetString("apiPath");
Expand Down Expand Up @@ -86,6 +95,11 @@ JsonValue ApiInvocationInput::Jsonize() const

}

if(m_actionInvocationTypeHasBeenSet)
{
payload.WithString("actionInvocationType", ActionInvocationTypeMapper::GetNameForActionInvocationType(m_actionInvocationType));
}

if(m_apiPathHasBeenSet)
{
payload.WithString("apiPath", m_apiPath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ namespace Model
ApiResult::ApiResult() :
m_actionGroupHasBeenSet(false),
m_apiPathHasBeenSet(false),
m_confirmationState(ConfirmationState::NOT_SET),
m_confirmationStateHasBeenSet(false),
m_httpMethodHasBeenSet(false),
m_httpStatusCode(0),
m_httpStatusCodeHasBeenSet(false),
Expand Down Expand Up @@ -52,6 +54,13 @@ ApiResult& ApiResult::operator =(JsonView jsonValue)
m_apiPathHasBeenSet = true;
}

if(jsonValue.ValueExists("confirmationState"))
{
m_confirmationState = ConfirmationStateMapper::GetConfirmationStateForName(jsonValue.GetString("confirmationState"));

m_confirmationStateHasBeenSet = true;
}

if(jsonValue.ValueExists("httpMethod"))
{
m_httpMethod = jsonValue.GetString("httpMethod");
Expand Down Expand Up @@ -102,6 +111,11 @@ JsonValue ApiResult::Jsonize() const

}

if(m_confirmationStateHasBeenSet)
{
payload.WithString("confirmationState", ConfirmationStateMapper::GetNameForConfirmationState(m_confirmationState));
}

if(m_httpMethodHasBeenSet)
{
payload.WithString("httpMethod", m_httpMethod);
Expand Down
Loading

0 comments on commit 9514d1a

Please sign in to comment.