Skip to content

Commit

Permalink
Removed service libs from the git ignore file.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHenson committed May 14, 2015
1 parent 43dbf2c commit 5fb5947
Show file tree
Hide file tree
Showing 797 changed files with 82,626 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,3 @@ openssl
zlib
credentials

#Service Libs
aws-cpp-sdk-cognito-identity
aws-cpp-sdk-dynamodb
aws-cpp-sdk-sqs
aws-cpp-sdk-lambda
aws-cpp-sdk-kinesis
aws-cpp-sdk-s3

61 changes: 61 additions & 0 deletions aws-cpp-sdk-cognito-identity/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
cmake_minimum_required(VERSION 2.6)
project(aws-cpp-sdk-cognito-identity)

file(GLOB AWS_COGNITO-IDENTITY_HEADERS
"include/aws/cognito-identity/*.h"
)

file(GLOB AWS_COGNITO-IDENTITY_MODEL_HEADERS
"include/aws/cognito-identity/model/*.h"
)

file(GLOB AWS_COGNITO-IDENTITY_SOURCE
"source/*.cpp"
)

file(GLOB AWS_COGNITO-IDENTITY_MODEL_SOURCE
"source/model/*.cpp"
)

file(GLOB COGNITO-IDENTITY_SRC
${AWS_COGNITO-IDENTITY_HEADERS}
${AWS_COGNITO-IDENTITY_MODEL_HEADERS}
${AWS_COGNITO-IDENTITY_SOURCE}
${AWS_COGNITO-IDENTITY_MODEL_SOURCE}
)

if(WIN32)
#if we are compiling for visual studio, create a sane directory tree.
if(MSVC)
source_group("Header Files\\aws\\cognito-identity" FILES ${AWS_COGNITO-IDENTITY_HEADERS})
source_group("Header Files\\aws\\cognito-identity\\model" FILES ${AWS_COGNITO-IDENTITY_MODEL_HEADERS})
source_group("Source Files" FILES ${AWS_COGNITO-IDENTITY_SOURCE})
source_group("Source Files\\model" FILES ${AWS_COGNITO-IDENTITY_MODEL_SOURCE})
endif(MSVC)
endif()

set(COGNITO-IDENTITY_INCLUDES
"${CMAKE_CURRENT_SOURCE_DIR}/include/"
"${CORE_DIR}/include/"
)

include_directories(${COGNITO-IDENTITY_INCLUDES})

if(MSVC AND BUILD_SHARED_LIBS)
add_definitions("-DAWS_COGNITOIDENTITY_EXPORTS")
endif()

add_library(aws-cpp-sdk-cognito-identity ${LIBTYPE} ${COGNITO-IDENTITY_SRC})
target_link_libraries(aws-cpp-sdk-cognito-identity aws-cpp-sdk-core)

if(NOT MSVC)
add_definitions(-std=c++11)
endif()

#uncomment when unit tests are automatically generated
#add_test(run${metadata.namespace}Tests run${metadata.namespace}Tests)

install (TARGETS aws-cpp-sdk-cognito-identity DESTINATION lib)
install (FILES ${AWS_COGNITO-IDENTITY_HEADERS} DESTINATION include/aws/cognito-identity)
install (FILES ${AWS_COGNITO-IDENTITY_MODEL_HEADERS} DESTINATION include/aws/cognito-identity/model)

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
#pragma once
#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace Aws
{

enum class Region;

namespace CognitoIdentity
{
namespace CognitoIdentityEndpoint
{
AWS_COGNITOIDENTITY_API Aws::String ForRegion(Region region);
} // namespace CognitoIdentityEndpoint
} // namespace CognitoIdentity
} // namespace Aws
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
#pragma once

#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>

namespace Aws
{
namespace Client
{

class AWS_COGNITOIDENTITY_API CognitoIdentityErrorMarshaller : public Client::AWSErrorMarshaller
{
public:
CognitoIdentityErrorMarshaller() {}
virtual ~CognitoIdentityErrorMarshaller() {}

virtual Client::AWSError<Client::CoreErrors> FindErrorByName(const char* exceptionName) const;
};

} // namespace CognitoIdentity
} // namespace Aws
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
#pragma once

#include <aws/core/client/CoreErrors.h>
#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>

namespace Aws
{
namespace CognitoIdentity
{
enum class AWS_COGNITOIDENTITY_API CognitoIdentityErrors
{
//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,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////

DEVELOPER_USER_ALREADY_REGISTERED= static_cast<int>(Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INTERNAL_ERROR,
INVALID_IDENTITY_POOL_CONFIGURATION,
INVALID_PARAMETER,
LIMIT_EXCEEDED,
NOT_AUTHORIZED,
RESOURCE_CONFLICT,
TOO_MANY_REQUESTS
};
namespace CognitoIdentityErrorMapper
{
AWS_COGNITOIDENTITY_API Client::AWSError<Client::CoreErrors> GetErrorForName(const char* errorName);
}

} // namespace CognitoIdentity
} // namespace Aws
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
#pragma once
#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>

namespace Aws
{
namespace CognitoIdentity
{
class AWS_COGNITOIDENTITY_API CognitoIdentityRequest : public AmazonSerializableWebServiceRequest
{
public:
virtual ~CognitoIdentityRequest () {}
virtual Aws::String SerializePayload() const override = 0;

void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }

inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
headers.insert(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, AMZN_JSON_CONTENT_TYPE_1_1 ));
return std::move(headers);
}

protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection();};

};


} // namespace CognitoIdentity
} // namespace Aws
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
#pragma once

#ifdef _WIN32
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif

#if defined (_MSC_VER)
#pragma warning(disable : 4251)
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_COGNITOIDENTITY_EXPORTS
#define AWS_COGNITOIDENTITY_API __declspec(dllexport)
#else
#define AWS_COGNITOIDENTITY_API __declspec(dllimport)
#endif /* AWS_COGNITOIDENTITY_EXPORTS */
#else
#define AWS_COGNITOIDENTITY_API
#endif //
#else /* defined (_WIN32) */
#define AWS_COGNITOIDENTITY_API
#endif
Loading

0 comments on commit 5fb5947

Please sign in to comment.