Skip to content

Commit

Permalink
Documentation updates for opsworkscm
Browse files Browse the repository at this point in the history
Added support for a new rule engine execution mode. Customers will be able to configure their detector versions to evaluate all rules and return outcomes from all 'matched' rules in the GetPrediction API response. Added support for deleting Detectors (DeleteDetector) and Rule Versions (DeleteRuleVersion).
  • Loading branch information
aws-sdk-cpp-automation committed Apr 17, 2020
1 parent b1152ff commit e4e87d2
Show file tree
Hide file tree
Showing 29 changed files with 1,616 additions and 129 deletions.
2 changes: 1 addition & 1 deletion aws-cpp-sdk-core/include/aws/core/VersionConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
* permissions and limitations under the License.
*/

#define AWS_SDK_VERSION_STRING "1.7.315"
#define AWS_SDK_VERSION_STRING "1.7.316"
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
#include <aws/frauddetector/model/CreateModelVersionResult.h>
#include <aws/frauddetector/model/CreateRuleResult.h>
#include <aws/frauddetector/model/CreateVariableResult.h>
#include <aws/frauddetector/model/DeleteDetectorResult.h>
#include <aws/frauddetector/model/DeleteDetectorVersionResult.h>
#include <aws/frauddetector/model/DeleteEventResult.h>
#include <aws/frauddetector/model/DeleteRuleVersionResult.h>
#include <aws/frauddetector/model/DescribeDetectorResult.h>
#include <aws/frauddetector/model/DescribeModelVersionsResult.h>
#include <aws/frauddetector/model/GetDetectorVersionResult.h>
Expand Down Expand Up @@ -96,8 +98,10 @@ namespace Model
class CreateModelVersionRequest;
class CreateRuleRequest;
class CreateVariableRequest;
class DeleteDetectorRequest;
class DeleteDetectorVersionRequest;
class DeleteEventRequest;
class DeleteRuleVersionRequest;
class DescribeDetectorRequest;
class DescribeModelVersionsRequest;
class GetDetectorVersionRequest;
Expand Down Expand Up @@ -127,8 +131,10 @@ namespace Model
typedef Aws::Utils::Outcome<CreateModelVersionResult, Aws::Client::AWSError<FraudDetectorErrors>> CreateModelVersionOutcome;
typedef Aws::Utils::Outcome<CreateRuleResult, Aws::Client::AWSError<FraudDetectorErrors>> CreateRuleOutcome;
typedef Aws::Utils::Outcome<CreateVariableResult, Aws::Client::AWSError<FraudDetectorErrors>> CreateVariableOutcome;
typedef Aws::Utils::Outcome<DeleteDetectorResult, Aws::Client::AWSError<FraudDetectorErrors>> DeleteDetectorOutcome;
typedef Aws::Utils::Outcome<DeleteDetectorVersionResult, Aws::Client::AWSError<FraudDetectorErrors>> DeleteDetectorVersionOutcome;
typedef Aws::Utils::Outcome<DeleteEventResult, Aws::Client::AWSError<FraudDetectorErrors>> DeleteEventOutcome;
typedef Aws::Utils::Outcome<DeleteRuleVersionResult, Aws::Client::AWSError<FraudDetectorErrors>> DeleteRuleVersionOutcome;
typedef Aws::Utils::Outcome<DescribeDetectorResult, Aws::Client::AWSError<FraudDetectorErrors>> DescribeDetectorOutcome;
typedef Aws::Utils::Outcome<DescribeModelVersionsResult, Aws::Client::AWSError<FraudDetectorErrors>> DescribeModelVersionsOutcome;
typedef Aws::Utils::Outcome<GetDetectorVersionResult, Aws::Client::AWSError<FraudDetectorErrors>> GetDetectorVersionOutcome;
Expand Down Expand Up @@ -158,8 +164,10 @@ namespace Model
typedef std::future<CreateModelVersionOutcome> CreateModelVersionOutcomeCallable;
typedef std::future<CreateRuleOutcome> CreateRuleOutcomeCallable;
typedef std::future<CreateVariableOutcome> CreateVariableOutcomeCallable;
typedef std::future<DeleteDetectorOutcome> DeleteDetectorOutcomeCallable;
typedef std::future<DeleteDetectorVersionOutcome> DeleteDetectorVersionOutcomeCallable;
typedef std::future<DeleteEventOutcome> DeleteEventOutcomeCallable;
typedef std::future<DeleteRuleVersionOutcome> DeleteRuleVersionOutcomeCallable;
typedef std::future<DescribeDetectorOutcome> DescribeDetectorOutcomeCallable;
typedef std::future<DescribeModelVersionsOutcome> DescribeModelVersionsOutcomeCallable;
typedef std::future<GetDetectorVersionOutcome> GetDetectorVersionOutcomeCallable;
Expand Down Expand Up @@ -192,8 +200,10 @@ namespace Model
typedef std::function<void(const FraudDetectorClient*, const Model::CreateModelVersionRequest&, const Model::CreateModelVersionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateModelVersionResponseReceivedHandler;
typedef std::function<void(const FraudDetectorClient*, const Model::CreateRuleRequest&, const Model::CreateRuleOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateRuleResponseReceivedHandler;
typedef std::function<void(const FraudDetectorClient*, const Model::CreateVariableRequest&, const Model::CreateVariableOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateVariableResponseReceivedHandler;
typedef std::function<void(const FraudDetectorClient*, const Model::DeleteDetectorRequest&, const Model::DeleteDetectorOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteDetectorResponseReceivedHandler;
typedef std::function<void(const FraudDetectorClient*, const Model::DeleteDetectorVersionRequest&, const Model::DeleteDetectorVersionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteDetectorVersionResponseReceivedHandler;
typedef std::function<void(const FraudDetectorClient*, const Model::DeleteEventRequest&, const Model::DeleteEventOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteEventResponseReceivedHandler;
typedef std::function<void(const FraudDetectorClient*, const Model::DeleteRuleVersionRequest&, const Model::DeleteRuleVersionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteRuleVersionResponseReceivedHandler;
typedef std::function<void(const FraudDetectorClient*, const Model::DescribeDetectorRequest&, const Model::DescribeDetectorOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeDetectorResponseReceivedHandler;
typedef std::function<void(const FraudDetectorClient*, const Model::DescribeModelVersionsRequest&, const Model::DescribeModelVersionsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeModelVersionsResponseReceivedHandler;
typedef std::function<void(const FraudDetectorClient*, const Model::GetDetectorVersionRequest&, const Model::GetDetectorVersionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetDetectorVersionResponseReceivedHandler;
Expand Down Expand Up @@ -413,14 +423,47 @@ namespace Model
virtual void CreateVariableAsync(const Model::CreateVariableRequest& request, const CreateVariableResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;

/**
* <p>Deletes the detector version.</p><p><h3>See Also:</h3> <a
* <p>Deletes the detector. Before deleting a detector, you must first delete all
* detector versions and rule versions associated with the detector.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetector">AWS
* API Reference</a></p>
*/
virtual Model::DeleteDetectorOutcome DeleteDetector(const Model::DeleteDetectorRequest& request) const;

/**
* <p>Deletes the detector. Before deleting a detector, you must first delete all
* detector versions and rule versions associated with the detector.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetector">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DeleteDetectorOutcomeCallable DeleteDetectorCallable(const Model::DeleteDetectorRequest& request) const;

/**
* <p>Deletes the detector. Before deleting a detector, you must first delete all
* detector versions and rule versions associated with the detector.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetector">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DeleteDetectorAsync(const Model::DeleteDetectorRequest& request, const DeleteDetectorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;

/**
* <p>Deletes the detector version. You cannot delete detector versions that are in
* <code>ACTIVE</code> status.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetectorVersion">AWS
* API Reference</a></p>
*/
virtual Model::DeleteDetectorVersionOutcome DeleteDetectorVersion(const Model::DeleteDetectorVersionRequest& request) const;

/**
* <p>Deletes the detector version.</p><p><h3>See Also:</h3> <a
* <p>Deletes the detector version. You cannot delete detector versions that are in
* <code>ACTIVE</code> status.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetectorVersion">AWS
* API Reference</a></p>
*
Expand All @@ -429,7 +472,8 @@ namespace Model
virtual Model::DeleteDetectorVersionOutcomeCallable DeleteDetectorVersionCallable(const Model::DeleteDetectorVersionRequest& request) const;

/**
* <p>Deletes the detector version.</p><p><h3>See Also:</h3> <a
* <p>Deletes the detector version. You cannot delete detector versions that are in
* <code>ACTIVE</code> status.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetectorVersion">AWS
* API Reference</a></p>
*
Expand Down Expand Up @@ -462,6 +506,37 @@ namespace Model
*/
virtual void DeleteEventAsync(const Model::DeleteEventRequest& request, const DeleteEventResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;

/**
* <p>Deletes the rule version. You cannot delete a rule version if it is used by
* an <code>ACTIVE</code> or <code>INACTIVE</code> detector version.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleVersion">AWS
* API Reference</a></p>
*/
virtual Model::DeleteRuleVersionOutcome DeleteRuleVersion(const Model::DeleteRuleVersionRequest& request) const;

/**
* <p>Deletes the rule version. You cannot delete a rule version if it is used by
* an <code>ACTIVE</code> or <code>INACTIVE</code> detector version.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleVersion">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DeleteRuleVersionOutcomeCallable DeleteRuleVersionCallable(const Model::DeleteRuleVersionRequest& request) const;

/**
* <p>Deletes the rule version. You cannot delete a rule version if it is used by
* an <code>ACTIVE</code> or <code>INACTIVE</code> detector version.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleVersion">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DeleteRuleVersionAsync(const Model::DeleteRuleVersionRequest& request, const DeleteRuleVersionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;

/**
* <p>Gets all versions for a specified detector.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DescribeDetector">AWS
Expand Down Expand Up @@ -1151,8 +1226,10 @@ namespace Model
void CreateModelVersionAsyncHelper(const Model::CreateModelVersionRequest& request, const CreateModelVersionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void CreateRuleAsyncHelper(const Model::CreateRuleRequest& request, const CreateRuleResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void CreateVariableAsyncHelper(const Model::CreateVariableRequest& request, const CreateVariableResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DeleteDetectorAsyncHelper(const Model::DeleteDetectorRequest& request, const DeleteDetectorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DeleteDetectorVersionAsyncHelper(const Model::DeleteDetectorVersionRequest& request, const DeleteDetectorVersionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DeleteEventAsyncHelper(const Model::DeleteEventRequest& request, const DeleteEventResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DeleteRuleVersionAsyncHelper(const Model::DeleteRuleVersionRequest& request, const DeleteRuleVersionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeDetectorAsyncHelper(const Model::DescribeDetectorRequest& request, const DescribeDetectorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeModelVersionsAsyncHelper(const Model::DescribeModelVersionsRequest& request, const DescribeModelVersionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void GetDetectorVersionAsyncHelper(const Model::GetDetectorVersionRequest& request, const GetDetectorVersionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ enum class FraudDetectorErrors
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////

INTERNAL_SERVER= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1
CONFLICT= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INTERNAL_SERVER
};
namespace FraudDetectorErrorMapper
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <aws/frauddetector/FraudDetectorRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/frauddetector/model/RuleExecutionMode.h>
#include <aws/frauddetector/model/Rule.h>
#include <aws/frauddetector/model/ModelVersion.h>
#include <utility>
Expand Down Expand Up @@ -256,6 +257,79 @@ namespace Model
*/
inline CreateDetectorVersionRequest& AddModelVersions(ModelVersion&& value) { m_modelVersionsHasBeenSet = true; m_modelVersions.push_back(std::move(value)); return *this; }


/**
* <p>The rule execution mode for the rules included in the detector version.</p>
* <p>You can define and edit the rule mode at the detector version level, when it
* is in draft status.</p> <p>If you specify <code>FIRST_MATCHED</code>, Amazon
* Fraud Detector evaluates rules sequentially, first to last, stopping at the
* first matched rule. Amazon Fraud dectector then provides the outcomes for that
* single rule.</p> <p>If you specifiy <code>ALL_MATCHED</code>, Amazon Fraud
* Detector evaluates all rules and returns the outcomes for all matched rules.
* </p> <p>The default behavior is <code>FIRST_MATCHED</code>.</p>
*/
inline const RuleExecutionMode& GetRuleExecutionMode() const{ return m_ruleExecutionMode; }

/**
* <p>The rule execution mode for the rules included in the detector version.</p>
* <p>You can define and edit the rule mode at the detector version level, when it
* is in draft status.</p> <p>If you specify <code>FIRST_MATCHED</code>, Amazon
* Fraud Detector evaluates rules sequentially, first to last, stopping at the
* first matched rule. Amazon Fraud dectector then provides the outcomes for that
* single rule.</p> <p>If you specifiy <code>ALL_MATCHED</code>, Amazon Fraud
* Detector evaluates all rules and returns the outcomes for all matched rules.
* </p> <p>The default behavior is <code>FIRST_MATCHED</code>.</p>
*/
inline bool RuleExecutionModeHasBeenSet() const { return m_ruleExecutionModeHasBeenSet; }

/**
* <p>The rule execution mode for the rules included in the detector version.</p>
* <p>You can define and edit the rule mode at the detector version level, when it
* is in draft status.</p> <p>If you specify <code>FIRST_MATCHED</code>, Amazon
* Fraud Detector evaluates rules sequentially, first to last, stopping at the
* first matched rule. Amazon Fraud dectector then provides the outcomes for that
* single rule.</p> <p>If you specifiy <code>ALL_MATCHED</code>, Amazon Fraud
* Detector evaluates all rules and returns the outcomes for all matched rules.
* </p> <p>The default behavior is <code>FIRST_MATCHED</code>.</p>
*/
inline void SetRuleExecutionMode(const RuleExecutionMode& value) { m_ruleExecutionModeHasBeenSet = true; m_ruleExecutionMode = value; }

/**
* <p>The rule execution mode for the rules included in the detector version.</p>
* <p>You can define and edit the rule mode at the detector version level, when it
* is in draft status.</p> <p>If you specify <code>FIRST_MATCHED</code>, Amazon
* Fraud Detector evaluates rules sequentially, first to last, stopping at the
* first matched rule. Amazon Fraud dectector then provides the outcomes for that
* single rule.</p> <p>If you specifiy <code>ALL_MATCHED</code>, Amazon Fraud
* Detector evaluates all rules and returns the outcomes for all matched rules.
* </p> <p>The default behavior is <code>FIRST_MATCHED</code>.</p>
*/
inline void SetRuleExecutionMode(RuleExecutionMode&& value) { m_ruleExecutionModeHasBeenSet = true; m_ruleExecutionMode = std::move(value); }

/**
* <p>The rule execution mode for the rules included in the detector version.</p>
* <p>You can define and edit the rule mode at the detector version level, when it
* is in draft status.</p> <p>If you specify <code>FIRST_MATCHED</code>, Amazon
* Fraud Detector evaluates rules sequentially, first to last, stopping at the
* first matched rule. Amazon Fraud dectector then provides the outcomes for that
* single rule.</p> <p>If you specifiy <code>ALL_MATCHED</code>, Amazon Fraud
* Detector evaluates all rules and returns the outcomes for all matched rules.
* </p> <p>The default behavior is <code>FIRST_MATCHED</code>.</p>
*/
inline CreateDetectorVersionRequest& WithRuleExecutionMode(const RuleExecutionMode& value) { SetRuleExecutionMode(value); return *this;}

/**
* <p>The rule execution mode for the rules included in the detector version.</p>
* <p>You can define and edit the rule mode at the detector version level, when it
* is in draft status.</p> <p>If you specify <code>FIRST_MATCHED</code>, Amazon
* Fraud Detector evaluates rules sequentially, first to last, stopping at the
* first matched rule. Amazon Fraud dectector then provides the outcomes for that
* single rule.</p> <p>If you specifiy <code>ALL_MATCHED</code>, Amazon Fraud
* Detector evaluates all rules and returns the outcomes for all matched rules.
* </p> <p>The default behavior is <code>FIRST_MATCHED</code>.</p>
*/
inline CreateDetectorVersionRequest& WithRuleExecutionMode(RuleExecutionMode&& value) { SetRuleExecutionMode(std::move(value)); return *this;}

private:

Aws::String m_detectorId;
Expand All @@ -272,6 +346,9 @@ namespace Model

Aws::Vector<ModelVersion> m_modelVersions;
bool m_modelVersionsHasBeenSet;

RuleExecutionMode m_ruleExecutionMode;
bool m_ruleExecutionModeHasBeenSet;
};

} // namespace Model
Expand Down
Loading

0 comments on commit e4e87d2

Please sign in to comment.