Skip to content

Commit

Permalink
Updates entity to include Microsoft RDS SAL as a valid type of user s…
Browse files Browse the repository at this point in the history
…ubscription.

Reduce the minimum number of required attack sequence signals from 2 to 1
CloudWatch Database Insights now supports Amazon RDS.
Add webhook status and status message to AWS CodeBuild webhooks
Add support for toolbar configuration under user settings.
Added new capability in the UpdateCluster operation to remove instance groups from your SageMaker HyperPod cluster.
  • Loading branch information
aws-sdk-cpp-automation committed Feb 20, 2025
1 parent c6541cb commit e82eab8
Show file tree
Hide file tree
Showing 49 changed files with 2,013 additions and 858 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.510
1.11.511
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <aws/codebuild/model/WebhookBuildType.h>
#include <aws/core/utils/DateTime.h>
#include <aws/codebuild/model/ScopeConfiguration.h>
#include <aws/codebuild/model/WebhookStatus.h>
#include <aws/codebuild/model/WebhookFilter.h>
#include <utility>

Expand Down Expand Up @@ -181,6 +182,36 @@ namespace Model
inline Webhook& WithScopeConfiguration(const ScopeConfiguration& value) { SetScopeConfiguration(value); return *this;}
inline Webhook& WithScopeConfiguration(ScopeConfiguration&& value) { SetScopeConfiguration(std::move(value)); return *this;}
///@}

///@{
/**
* <p>The status of the webhook. Valid values include:</p> <ul> <li> <p>
* <code>CREATING</code>: The webhook is being created.</p> </li> <li> <p>
* <code>CREATE_FAILED</code>: The webhook has failed to create.</p> </li> <li> <p>
* <code>ACTIVE</code>: The webhook has succeeded and is active.</p> </li> <li> <p>
* <code>DELETING</code>: The webhook is being deleted.</p> </li> </ul>
*/
inline const WebhookStatus& GetStatus() const{ return m_status; }
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
inline void SetStatus(const WebhookStatus& value) { m_statusHasBeenSet = true; m_status = value; }
inline void SetStatus(WebhookStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
inline Webhook& WithStatus(const WebhookStatus& value) { SetStatus(value); return *this;}
inline Webhook& WithStatus(WebhookStatus&& value) { SetStatus(std::move(value)); return *this;}
///@}

///@{
/**
* <p>A message associated with the status of a webhook.</p>
*/
inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
inline Webhook& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
inline Webhook& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
inline Webhook& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
///@}
private:

Aws::String m_url;
Expand Down Expand Up @@ -209,6 +240,12 @@ namespace Model

ScopeConfiguration m_scopeConfiguration;
bool m_scopeConfigurationHasBeenSet = false;

WebhookStatus m_status;
bool m_statusHasBeenSet = false;

Aws::String m_statusMessage;
bool m_statusMessageHasBeenSet = false;
};

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

#pragma once
#include <aws/codebuild/CodeBuild_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace Aws
{
namespace CodeBuild
{
namespace Model
{
enum class WebhookStatus
{
NOT_SET,
CREATING,
CREATE_FAILED,
ACTIVE,
DELETING
};

namespace WebhookStatusMapper
{
AWS_CODEBUILD_API WebhookStatus GetWebhookStatusForName(const Aws::String& name);

AWS_CODEBUILD_API Aws::String GetNameForWebhookStatus(WebhookStatus value);
} // namespace WebhookStatusMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws
30 changes: 29 additions & 1 deletion generated/src/aws-cpp-sdk-codebuild/source/model/Webhook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ Webhook::Webhook() :
m_manualCreation(false),
m_manualCreationHasBeenSet(false),
m_lastModifiedSecretHasBeenSet(false),
m_scopeConfigurationHasBeenSet(false)
m_scopeConfigurationHasBeenSet(false),
m_status(WebhookStatus::NOT_SET),
m_statusHasBeenSet(false),
m_statusMessageHasBeenSet(false)
{
}

Expand Down Expand Up @@ -114,6 +117,20 @@ Webhook& Webhook::operator =(JsonView jsonValue)
m_scopeConfigurationHasBeenSet = true;
}

if(jsonValue.ValueExists("status"))
{
m_status = WebhookStatusMapper::GetWebhookStatusForName(jsonValue.GetString("status"));

m_statusHasBeenSet = true;
}

if(jsonValue.ValueExists("statusMessage"))
{
m_statusMessage = jsonValue.GetString("statusMessage");

m_statusMessageHasBeenSet = true;
}

return *this;
}

Expand Down Expand Up @@ -183,6 +200,17 @@ JsonValue Webhook::Jsonize() const

}

if(m_statusHasBeenSet)
{
payload.WithString("status", WebhookStatusMapper::GetNameForWebhookStatus(m_status));
}

if(m_statusMessageHasBeenSet)
{
payload.WithString("statusMessage", m_statusMessage);

}

return payload;
}

Expand Down
86 changes: 86 additions & 0 deletions generated/src/aws-cpp-sdk-codebuild/source/model/WebhookStatus.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#include <aws/codebuild/model/WebhookStatus.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 CodeBuild
{
namespace Model
{
namespace WebhookStatusMapper
{

static const int CREATING_HASH = HashingUtils::HashString("CREATING");
static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED");
static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE");
static const int DELETING_HASH = HashingUtils::HashString("DELETING");


WebhookStatus GetWebhookStatusForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == CREATING_HASH)
{
return WebhookStatus::CREATING;
}
else if (hashCode == CREATE_FAILED_HASH)
{
return WebhookStatus::CREATE_FAILED;
}
else if (hashCode == ACTIVE_HASH)
{
return WebhookStatus::ACTIVE;
}
else if (hashCode == DELETING_HASH)
{
return WebhookStatus::DELETING;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<WebhookStatus>(hashCode);
}

return WebhookStatus::NOT_SET;
}

Aws::String GetNameForWebhookStatus(WebhookStatus enumValue)
{
switch(enumValue)
{
case WebhookStatus::NOT_SET:
return {};
case WebhookStatus::CREATING:
return "CREATING";
case WebhookStatus::CREATE_FAILED:
return "CREATE_FAILED";
case WebhookStatus::ACTIVE:
return "ACTIVE";
case WebhookStatus::DELETING:
return "DELETING";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}

return {};
}
}

} // namespace WebhookStatusMapper
} // namespace Model
} // namespace CodeBuild
} // namespace Aws
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ namespace Model
* <p>resource.rdsDbInstanceDetails.tags.value</p> </li> <li>
* <p>service.runtimeDetails.process.executableSha256</p> </li> <li>
* <p>service.runtimeDetails.process.name</p> </li> <li>
* <p>service.runtimeDetails.process.name</p> </li> <li>
* <p>service.runtimeDetails.process.executablePath</p> </li> <li>
* <p>resource.lambdaDetails.functionName</p> </li> <li>
* <p>resource.lambdaDetails.functionArn</p> </li> <li>
* <p>resource.lambdaDetails.tags.key</p> </li> <li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ namespace Model

///@{
/**
* <p>Specific indicator keys observed in the attack sequence.</p>
* <p>Specific indicator keys observed in the attack sequence. For description of
* the valid values for key, see <a
* href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_findings-summary.html#guardduty-extended-threat-detection-attack-sequence-finding-details">Attack
* sequence finding details</a> in the <i>Amazon GuardDuty User Guide</i>.</p>
*/
inline const IndicatorType& GetKey() const{ return m_key; }
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
Expand All @@ -57,9 +60,7 @@ namespace Model
* <p>Values associated with each indicator key. For example, if the indicator key
* is <code>SUSPICIOUS_NETWORK</code>, then the value will be the name of the
* network. If the indicator key is <code>ATTACK_TACTIC</code>, then the value will
* be one of the MITRE tactics. </p> <p>For more information about the values
* associated with the key, see GuardDuty Extended Threat Detection in the
* <i>GuardDuty User Guide.</i> </p>
* be one of the MITRE tactics. </p>
*/
inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace Model
* <p>Issue message that specifies the reason. For information about potential
* troubleshooting steps, see <a
* href="https://docs.aws.amazon.com/guardduty/latest/ug/troubleshoot-s3-malware-protection-status-errors.html">Troubleshooting
* Malware Protection for S3 status issues</a> in the <i>GuardDuty User
* Malware Protection for S3 status issues</a> in the <i>Amazon GuardDuty User
* Guide</i>.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ namespace Model
* can be GuardDuty findings or activities observed in data sources that GuardDuty
* monitors. For more information, see <a
* href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_data-sources.html">Foundational
* data sources</a> in the <i>GuardDuty User Guide</i>.</p> <p>A signal type can be
* one of the valid values listed in this API. Here are the related
* data sources</a> in the <i>Amazon GuardDuty User Guide</i>.</p> <p>A signal type
* can be one of the valid values listed in this API. Here are the related
* descriptions:</p> <ul> <li> <p> <code>FINDING</code> - Individually generated
* GuardDuty finding.</p> </li> <li> <p> <code>CLOUD_TRAIL</code> - Activity
* observed from CloudTrail logs</p> </li> <li> <p> <code>S3_DATA_EVENTS</code> -
Expand All @@ -72,7 +72,7 @@ namespace Model
* feature in your account. For more information about S3 Protection and steps to
* enable it, see <a
* href="https://docs.aws.amazon.com/guardduty/latest/ug/s3-protection.html">S3
* Protection</a> in the <i>GuardDuty User Guide</i>.</p> </li> </ul>
* Protection</a> in the <i>Amazon GuardDuty User Guide</i>.</p> </li> </ul>
*/
inline const SignalType& GetType() const{ return m_type; }
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
Expand Down Expand Up @@ -167,7 +167,7 @@ namespace Model
* <p>The severity associated with the signal. For more information about severity,
* see <a
* href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_findings-severity.html">Findings
* severity levels</a> in the <i>GuardDuty User Guide</i>.</p>
* severity levels</a> in the <i>Amazon GuardDuty User Guide</i>.</p>
*/
inline double GetSeverity() const{ return m_severity; }
inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ namespace Model
/**
* <p>The name of the user-based subscription product.</p> <p>Valid values:
* <code>VISUAL_STUDIO_ENTERPRISE</code> | <code>VISUAL_STUDIO_PROFESSIONAL</code>
* | <code>OFFICE_PROFESSIONAL_PLUS</code> </p>
* | <code>OFFICE_PROFESSIONAL_PLUS</code> | <code>REMOTE_DESKTOP_SERVICES</code>
* </p>
*/
inline const Aws::String& GetProduct() const{ return m_product; }
inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ namespace Model
/**
* <p>The name of the user-based subscription product.</p> <p>Valid values:
* <code>VISUAL_STUDIO_ENTERPRISE</code> | <code>VISUAL_STUDIO_PROFESSIONAL</code>
* | <code>OFFICE_PROFESSIONAL_PLUS</code> </p>
* | <code>OFFICE_PROFESSIONAL_PLUS</code> | <code>REMOTE_DESKTOP_SERVICES</code>
* </p>
*/
inline const Aws::String& GetProduct() const{ return m_product; }
inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ namespace Model
/**
* <p>The name of the user-based subscription product.</p> <p>Valid values:
* <code>VISUAL_STUDIO_ENTERPRISE</code> | <code>VISUAL_STUDIO_PROFESSIONAL</code>
* | <code>OFFICE_PROFESSIONAL_PLUS</code> </p>
* | <code>OFFICE_PROFESSIONAL_PLUS</code> | <code>REMOTE_DESKTOP_SERVICES</code>
* </p>
*/
inline const Aws::String& GetProduct() const{ return m_product; }
inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ namespace Model
/**
* <p>The name of the user-based subscription product.</p> <p>Valid values:
* <code>VISUAL_STUDIO_ENTERPRISE</code> | <code>VISUAL_STUDIO_PROFESSIONAL</code>
* | <code>OFFICE_PROFESSIONAL_PLUS</code> </p>
* | <code>OFFICE_PROFESSIONAL_PLUS</code> | <code>REMOTE_DESKTOP_SERVICES</code>
* </p>
*/
inline const Aws::String& GetProduct() const{ return m_product; }
inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ namespace Model
/**
* <p>The name of the user-based subscription product.</p> <p>Valid values:
* <code>VISUAL_STUDIO_ENTERPRISE</code> | <code>VISUAL_STUDIO_PROFESSIONAL</code>
* | <code>OFFICE_PROFESSIONAL_PLUS</code> </p>
* | <code>OFFICE_PROFESSIONAL_PLUS</code> | <code>REMOTE_DESKTOP_SERVICES</code>
* </p>
*/
inline const Aws::String& GetProduct() const{ return m_product; }
inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ namespace Model
/**
* <p>The name of the user-based subscription product.</p> <p>Valid values:
* <code>VISUAL_STUDIO_ENTERPRISE</code> | <code>VISUAL_STUDIO_PROFESSIONAL</code>
* | <code>OFFICE_PROFESSIONAL_PLUS</code> </p>
* | <code>OFFICE_PROFESSIONAL_PLUS</code> | <code>REMOTE_DESKTOP_SERVICES</code>
* </p>
*/
inline const Aws::String& GetProduct() const{ return m_product; }
inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ namespace Model
* this value to <code>advanced</code>, you must also set the
* <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> and the
* <code>PerformanceInsightsRetentionPeriod</code> parameter to 465.</p> <p>Valid
* for Cluster Type: Aurora DB clusters only</p>
* for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
*/
inline const DatabaseInsightsMode& GetDatabaseInsightsMode() const{ return m_databaseInsightsMode; }
inline bool DatabaseInsightsModeHasBeenSet() const { return m_databaseInsightsModeHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ namespace Model
///@{
/**
* <p>The mode of Database Insights to enable for the read replica.</p>
* <p>Currently, this setting is not supported.</p>
* <p>This setting isn't supported.</p>
*/
inline const DatabaseInsightsMode& GetDatabaseInsightsMode() const{ return m_databaseInsightsMode; }
inline bool DatabaseInsightsModeHasBeenSet() const { return m_databaseInsightsModeHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1022,9 +1022,9 @@ namespace Model

///@{
/**
* <p>The mode of Database Insights to enable for the DB instance.</p> <p>This
* setting only applies to Amazon Aurora DB instances.</p> <p>Currently,
* this value is inherited from the DB cluster and can't be changed.</p>
* <p>The mode of Database Insights to enable for the DB instance.</p>
* <p>Aurora DB instances inherit this value from the DB cluster, so you can't
* change this value.</p>
*/
inline const DatabaseInsightsMode& GetDatabaseInsightsMode() const{ return m_databaseInsightsMode; }
inline bool DatabaseInsightsModeHasBeenSet() const { return m_databaseInsightsModeHasBeenSet; }
Expand Down
Loading

0 comments on commit e82eab8

Please sign in to comment.