Skip to content

Commit

Permalink
Adding SDK reference examples for Amazon ECS operations.
Browse files Browse the repository at this point in the history
This change is only for updating the model regexp of CopySource which is not for validation but only for documentation and user guide change.
Doc only update for Route 53 Domains that fixes several customer-reported issues
  • Loading branch information
aws-sdk-cpp-automation committed Jan 3, 2025
1 parent b96f81b commit f28a13d
Show file tree
Hide file tree
Showing 18 changed files with 1,078 additions and 1,073 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.477
1.11.478
19 changes: 10 additions & 9 deletions generated/smoke-tests/codepipeline/CodePipelineSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <aws/testing/AwsTestHelpers.h>
#include <aws/codepipeline/CodePipelineClient.h>
#include <aws/codepipeline/model/GetPipelineRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codepipeline/model/ListPipelinesRequest.h>

namespace CodePipelineSmokeTest{
Expand All @@ -31,7 +32,7 @@ class CodePipelineSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char CodePipelineSmokeTestSuite::ALLOCATION_TAG[] = "CodePipelineSmokeTest";
TEST_F(CodePipelineSmokeTestSuite, GetPipelineFailure )
TEST_F(CodePipelineSmokeTestSuite, ListPipelinesSuccess )
{
Aws::CodePipeline::CodePipelineClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -40,12 +41,11 @@ TEST_F(CodePipelineSmokeTestSuite, GetPipelineFailure )
auto clientSp = Aws::MakeShared<CodePipelineClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

GetPipelineRequest input;
input.SetName("fake-pipeline");
auto outcome = clientSp->GetPipeline(input);
EXPECT_FALSE( outcome.IsSuccess());
ListPipelinesRequest input;
auto outcome = clientSp->ListPipelines(input);
EXPECT_TRUE( outcome.IsSuccess());
}
TEST_F(CodePipelineSmokeTestSuite, ListPipelinesSuccess )
TEST_F(CodePipelineSmokeTestSuite, GetPipelineFailure )
{
Aws::CodePipeline::CodePipelineClientConfiguration clientConfiguration;
clientConfiguration.region = "us-west-2";
Expand All @@ -54,8 +54,9 @@ TEST_F(CodePipelineSmokeTestSuite, ListPipelinesSuccess )
auto clientSp = Aws::MakeShared<CodePipelineClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

ListPipelinesRequest input;
auto outcome = clientSp->ListPipelines(input);
EXPECT_TRUE( outcome.IsSuccess());
GetPipelineRequest input;
input.SetName("fake-pipeline");
auto outcome = clientSp->GetPipeline(input);
EXPECT_FALSE( outcome.IsSuccess());
}
}
19 changes: 9 additions & 10 deletions generated/smoke-tests/route53/Route53SmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <aws/route53/Route53Client.h>
#include <aws/route53/model/GetHostedZoneRequest.h>
#include <aws/route53/model/ListHostedZonesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace Route53SmokeTest{
using namespace Aws::Auth;
Expand All @@ -32,7 +31,7 @@ class Route53SmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char Route53SmokeTestSuite::ALLOCATION_TAG[] = "Route53SmokeTest";
TEST_F(Route53SmokeTestSuite, ListHostedZonesSuccess )
TEST_F(Route53SmokeTestSuite, GetHostedZoneFailure )
{
Aws::Route53::Route53ClientConfiguration clientConfiguration;
clientConfiguration.region = "us-east-1";
Expand All @@ -41,11 +40,12 @@ TEST_F(Route53SmokeTestSuite, ListHostedZonesSuccess )
auto clientSp = Aws::MakeShared<Route53Client>(ALLOCATION_TAG, clientConfiguration);
//populate input params

ListHostedZonesRequest input;
auto outcome = clientSp->ListHostedZones(input);
EXPECT_TRUE( outcome.IsSuccess());
GetHostedZoneRequest input;
input.SetId("fake-zone");
auto outcome = clientSp->GetHostedZone(input);
EXPECT_FALSE( outcome.IsSuccess());
}
TEST_F(Route53SmokeTestSuite, GetHostedZoneFailure )
TEST_F(Route53SmokeTestSuite, ListHostedZonesSuccess )
{
Aws::Route53::Route53ClientConfiguration clientConfiguration;
clientConfiguration.region = "us-east-1";
Expand All @@ -54,9 +54,8 @@ TEST_F(Route53SmokeTestSuite, GetHostedZoneFailure )
auto clientSp = Aws::MakeShared<Route53Client>(ALLOCATION_TAG, clientConfiguration);
//populate input params

GetHostedZoneRequest input;
input.SetId("fake-zone");
auto outcome = clientSp->GetHostedZone(input);
EXPECT_FALSE( outcome.IsSuccess());
ListHostedZonesRequest input;
auto outcome = clientSp->ListHostedZones(input);
EXPECT_TRUE( outcome.IsSuccess());
}
}
21 changes: 11 additions & 10 deletions generated/smoke-tests/ssm-quicksetup/SSMQuickSetupSmokeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
#include <algorithm>
#include <aws/testing/AwsCppSdkGTestSuite.h>
#include <aws/testing/AwsTestHelpers.h>
#include <aws/ssm-quicksetup/model/GetConfigurationManagerRequest.h>
#include <aws/ssm-quicksetup/model/ListConfigurationManagersRequest.h>
#include <aws/ssm-quicksetup/model/GetConfigurationManagerRequest.h>
#include <aws/ssm-quicksetup/SSMQuickSetupClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace SSMQuickSetupSmokeTest{
using namespace Aws::Auth;
Expand All @@ -31,7 +32,7 @@ class SSMQuickSetupSmokeTestSuite : public Aws::Testing::AwsCppSdkGTestSuite {
static const char ALLOCATION_TAG[];
};
const char SSMQuickSetupSmokeTestSuite::ALLOCATION_TAG[] = "SSMQuickSetupSmokeTest";
TEST_F(SSMQuickSetupSmokeTestSuite, GetConfigurationManagerFailure )
TEST_F(SSMQuickSetupSmokeTestSuite, ListConfigurationManagersSuccess )
{
Aws::SSMQuickSetup::SSMQuickSetupClientConfiguration clientConfiguration;
clientConfiguration.region = "us-east-1";
Expand All @@ -40,12 +41,11 @@ TEST_F(SSMQuickSetupSmokeTestSuite, GetConfigurationManagerFailure )
auto clientSp = Aws::MakeShared<SSMQuickSetupClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

GetConfigurationManagerRequest input;
input.SetManagerArn("arn:aws:ssm-quicksetup:us-east-1:602768233532:configuration-manager/7cac1a1b-64a9-4c9a-97e8-8c68928b8f13");
auto outcome = clientSp->GetConfigurationManager(input);
EXPECT_FALSE( outcome.IsSuccess());
ListConfigurationManagersRequest input;
auto outcome = clientSp->ListConfigurationManagers(input);
EXPECT_TRUE( outcome.IsSuccess());
}
TEST_F(SSMQuickSetupSmokeTestSuite, ListConfigurationManagersSuccess )
TEST_F(SSMQuickSetupSmokeTestSuite, GetConfigurationManagerFailure )
{
Aws::SSMQuickSetup::SSMQuickSetupClientConfiguration clientConfiguration;
clientConfiguration.region = "us-east-1";
Expand All @@ -54,8 +54,9 @@ TEST_F(SSMQuickSetupSmokeTestSuite, ListConfigurationManagersSuccess )
auto clientSp = Aws::MakeShared<SSMQuickSetupClient>(ALLOCATION_TAG, clientConfiguration);
//populate input params

ListConfigurationManagersRequest input;
auto outcome = clientSp->ListConfigurationManagers(input);
EXPECT_TRUE( outcome.IsSuccess());
GetConfigurationManagerRequest input;
input.SetManagerArn("arn:aws:ssm-quicksetup:us-east-1:602768233532:configuration-manager/7cac1a1b-64a9-4c9a-97e8-8c68928b8f13");
auto outcome = clientSp->GetConfigurationManager(input);
EXPECT_FALSE( outcome.IsSuccess());
}
}
2 changes: 1 addition & 1 deletion generated/src/aws-cpp-sdk-ecs/include/aws/ecs/ECSClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ namespace ECS

/**
* <p>This operation lists all the service deployments that meet the specified
* filter criteria.</p> <p>A service deployment happens when you release a softwre
* filter criteria.</p> <p>A service deployment happens when you release a software
* update for the service. You route traffic from the running service revisions to
* the new service revison and control the number of running tasks. </p> <p>This
* API returns the values that you use for the request parameters in <a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ namespace Model
///@{
/**
* <p>The IDs of the subnets associated with the task or service. There's a limit
* of 16 subnets that can be specified per <code>awsvpcConfiguration</code>.</p>
* <p>All specified subnets must be from the same VPC.</p>
* of 16 subnets that can be specified.</p> <p>All specified subnets must be
* from the same VPC.</p>
*/
inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
Expand All @@ -63,9 +63,8 @@ namespace Model
/**
* <p>The IDs of the security groups associated with the task or service. If you
* don't specify a security group, the default security group for the VPC is used.
* There's a limit of 5 security groups that can be specified per
* <code>awsvpcConfiguration</code>.</p> <p>All specified security groups
* must be from the same VPC.</p>
* There's a limit of 5 security groups that can be specified.</p> <p>All
* specified security groups must be from the same VPC.</p>
*/
inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ namespace Model

///@{
/**
* <p>The ID of the invoice that is associated with the billing record.</p>
* <p>Deprecated property. This field is retained in report structure for backwards
* compatibility, but will appear blank.</p>
*/
inline const Aws::String& GetInvoiceId() const{ return m_invoiceId; }
inline bool InvoiceIdHasBeenSet() const { return m_invoiceIdHasBeenSet; }
Expand Down
Loading

0 comments on commit f28a13d

Please sign in to comment.