Skip to content

Commit

Permalink
Fix samples paths to units .
Browse files Browse the repository at this point in the history
  • Loading branch information
acj1971 committed Nov 5, 2018
1 parent baa6ae9 commit eb1b784
Show file tree
Hide file tree
Showing 11 changed files with 270 additions and 160 deletions.
133 changes: 133 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -509,3 +509,136 @@ Code-generation/api-descriptions/apigateway-2015-07-09.normal.json
Code-generation/api-descriptions/alexaforbusiness-2017-11-09.normal.json
Code-generation/api-descriptions/acm-pca-2017-08-22.normal.json
Code-generation/api-descriptions/acm-2015-12-08.normal.json
Samples/DynamoDB/Lazarus/CreateTable1/CreateTable1.exe
Samples/DynamoDB/Lazarus/CreateTable1/CreateTable1.exe
*.exe
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdGlobalProtocols.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdGlobalProtocols.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHash.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHash.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHashMessageDigest.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHashMessageDigest.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHashSHA.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHashSHA.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHeaderCoder2022JP.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHeaderCoder2022JP.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHeaderCoderBase.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHeaderCoderBase.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHeaderCoderIndy.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHeaderCoderIndy.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHeaderCoderPlain.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHeaderCoderPlain.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHeaderList.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHeaderList.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHMAC.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHMAC.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHMACSHA1.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHMACSHA1.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHTTP.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHTTP.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHTTPHeaderInfo.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdHTTPHeaderInfo.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdIDN.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdIDN.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdIntercept.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdIntercept.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdIOHandler.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdIOHandler.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdIOHandlerSocket.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdIOHandlerSocket.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdIOHandlerStack.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdIOHandlerStack.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdIPAddress.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdIPAddress.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdMultipartFormData.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdMultipartFormData.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdNTLM.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdNTLM.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdReply.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdReply.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdReplyRFC.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdReplyRFC.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStrings.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStrings.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStrings.rsj
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStringsCore.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStringsCore.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStringsCore.rsj
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStringsOpenSSL.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStringsOpenSSL.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStringsOpenSSL.rsj
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStringsProtocols.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStringsProtocols.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStringsProtocols.rsj
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStringsSSPI.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStringsSSPI.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStringsSSPI.rsj
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStringsUriUtils.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStringsUriUtils.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdResourceStringsUriUtils.rsj
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdScheduler.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdScheduler.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSchedulerOfThread.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSchedulerOfThread.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSchedulerOfThreadDefault.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSchedulerOfThreadDefault.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdServerIOHandler.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdServerIOHandler.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdServerIOHandlerSocket.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdServerIOHandlerSocket.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdServerIOHandlerStack.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdServerIOHandlerStack.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSocketHandle.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSocketHandle.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSocks.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSocks.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSSL.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSSL.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSSLOpenSSL.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSSLOpenSSL.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSSLOpenSSLHeaders.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSSLOpenSSLHeaders.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSSPI.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdSSPI.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStack.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStack.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStackBSDBase.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStackBSDBase.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStackConsts.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStackConsts.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStackWindows.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStackWindows.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStream.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStream.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStreamVCL.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStreamVCL.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStrings.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStrings.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStruct.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdStruct.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdTask.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdTask.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdTCPClient.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdTCPClient.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdTCPConnection.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdTCPConnection.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdTCPServer.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdTCPServer.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdThread.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdThread.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdThreadSafe.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdThreadSafe.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdURI.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdURI.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdUriUtils.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdUriUtils.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdWinsock2.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdWinsock2.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdWship6.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdWship6.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdYarn.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdYarn.ppu
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdZLibCompressorBase.o
Samples/DynamoDB/Lazarus/CreateTable1/lib/x86_64-win64/IdZLibCompressorBase.ppu
Samples/DynamoDB/Lazarus/CreateTable1/libeay32.dll
Samples/DynamoDB/Lazarus/CreateTable1/ssleay32.dll
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5/11/20018* New Lazarus CreateTable1 DynamoDB Sample* Refactored Core for Lazarus / fpc 1.8 or higher * New exception "secret_key or access_key not assigned." in TAmazonClient.execute* New exception "IAmazonRESTClient not assigned." in TAmazonClient.execute* New exception "region not assigned.' in TAmazonClient.execute* DateTimeToISO8601 and DeepCopy removed for Lazarus / fpc in unit * Moved Samples Samples\DynamoDB to Samples\DynamoDB\Delphi03/09/2018* Tested support for Windows 32/64Bit, MacOSX 32Bit* Removed Windows unit from unit Amazon.Utils* Added Region to TAmazonClient.Create30/08/2018* THashSHA2 supported in unit Amazon.Utils for Delphi XE8 and up.* TidBytes reference change to Tbytes in unit Amazon.SignatureV4 for Delphi XE8 and up.* Fixed support for Delphi XE to Delphi XE728/08/2018* New RESTClient class TAmazonDelphiRestClient based on Delphi TRESTClient and TRESTHTTP. Note TAmazonSignatureV4 still requires OpenSSL Library* Updated TAmazonIndyRestClient with latest IAmazonRESTClient interface* New properties UserAgent, AcceptCharset, Accept in IAmazonRESTClient interface23/08/2018* Update DelphiVerion.inc which includes Delphi 10.2 support19/08/2018* Start of the Changelog* Renamed Amazon.RESTClient.pas to Amazon.IndyRESTClient.pas and class TAmazonRESTClient to TAmazonIndyRESTClient * Fixed TAmazonMarshaller function GetSubRttiAttributekeys RTTI in Delphi XE8 moved from List To FObjectList: TObjectList<TObject>
5/11/2018* Fix samples paths to units .5/11/20018* New Lazarus CreateTable1 DynamoDB Sample* Refactored Core for Lazarus / fpc 1.8 or higher * New exception "secret_key or access_key not assigned." in TAmazonClient.execute* New exception "IAmazonRESTClient not assigned." in TAmazonClient.execute* New exception "region not assigned.' in TAmazonClient.execute* DateTimeToISO8601 and DeepCopy removed for Lazarus / fpc in unit * Moved Samples Samples\DynamoDB to Samples\DynamoDB\Delphi03/09/2018* Tested support for Windows 32/64Bit, MacOSX 32Bit* Removed Windows unit from unit Amazon.Utils* Added Region to TAmazonClient.Create30/08/2018* THashSHA2 supported in unit Amazon.Utils for Delphi XE8 and up.* TidBytes reference change to Tbytes in unit Amazon.SignatureV4 for Delphi XE8 and up.* Fixed support for Delphi XE to Delphi XE728/08/2018* New RESTClient class TAmazonDelphiRestClient based on Delphi TRESTClient and TRESTHTTP. Note TAmazonSignatureV4 still requires OpenSSL Library* Updated TAmazonIndyRestClient with latest IAmazonRESTClient interface* New properties UserAgent, AcceptCharset, Accept in IAmazonRESTClient interface23/08/2018* Update DelphiVerion.inc which includes Delphi 10.2 support19/08/2018* Start of the Changelog* Renamed Amazon.RESTClient.pas to Amazon.IndyRESTClient.pas and class TAmazonRESTClient to TAmazonIndyRESTClient * Fixed TAmazonMarshaller function GetSubRttiAttributekeys RTTI in Delphi XE8 moved from List To FObjectList: TObjectList<TObject>
Expand Down
20 changes: 10 additions & 10 deletions Samples/DynamoDB/Delphi/CreateTable1/DynamoDBCreateTable.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
uses
System.SysUtils,
Classes,
Amazon.Interfaces in '..\..\..\..\Source\Core\Amazon.Interfaces.pas',
Amazon.Credentials in '..\..\..\..\Source\Core\Amazon.Credentials.pas',
Amazon.Environment in '..\..\..\..\Source\Core\Amazon.Environment.pas',
Amazon.Utils in '..\..\..\..\Source\Core\Amazon.Utils.pas',
Amazon.Request in '..\..\..\..\Source\Core\Amazon.Request.pas',
Amazon.Response in '..\..\..\..\Source\Core\Amazon.Response.pas',
Amazon.DelphiRESTClient in '..\..\..\..\Source\Core\Amazon.DelphiRESTClient.pas',
Amazon.IndyRESTClient in '..\..\..\..\Source\Core\Amazon.IndyRESTClient.pas',
Amazon.SignatureV4 in '..\..\..\..\Source\Core\Amazon.SignatureV4.pas',
Amazon.Client in '..\..\..\..\Source\Core\Amazon.Client.pas';
Amazon.Interfaces in 'Amazon.Interfaces.pas',
Amazon.Credentials in 'Amazon.Credentials.pas',
Amazon.Environment in 'Amazon.Environment.pas',
Amazon.Utils in 'Amazon.Utils.pas',
Amazon.Request in 'Amazon.Request.pas',
Amazon.Response in 'Amazon.Response.pas',
Amazon.DelphiRESTClient in 'Amazon.DelphiRESTClient.pas',
Amazon.IndyRESTClient in 'Amazon.IndyRESTClient.pas',
Amazon.SignatureV4 in 'Amazon.SignatureV4.pas',
Amazon.Client in 'Amazon.Client.pas';

var
FAmazonRESTClient: IAmazonRestClient;
Expand Down
20 changes: 10 additions & 10 deletions Samples/DynamoDB/Delphi/CreateTable1/DynamoDBCreateTable.dproj
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,16 @@
<DelphiCompile Include="$(MainSource)">
<MainSource>MainSource</MainSource>
</DelphiCompile>
<DCCReference Include="..\..\..\..\Source\Core\Amazon.Interfaces.pas"/>
<DCCReference Include="..\..\..\..\Source\Core\Amazon.Credentials.pas"/>
<DCCReference Include="..\..\..\..\Source\Core\Amazon.Environment.pas"/>
<DCCReference Include="..\..\..\..\Source\Core\Amazon.Utils.pas"/>
<DCCReference Include="..\..\..\..\Source\Core\Amazon.Request.pas"/>
<DCCReference Include="..\..\..\..\Source\Core\Amazon.Response.pas"/>
<DCCReference Include="..\..\..\..\Source\Core\Amazon.DelphiRESTClient.pas"/>
<DCCReference Include="..\..\..\..\Source\Core\Amazon.IndyRESTClient.pas"/>
<DCCReference Include="..\..\..\..\Source\Core\Amazon.SignatureV4.pas"/>
<DCCReference Include="..\..\..\..\Source\Core\Amazon.Client.pas"/>
<DCCReference Include="Amazon.Interfaces.pas"/>
<DCCReference Include="Amazon.Credentials.pas"/>
<DCCReference Include="Amazon.Environment.pas"/>
<DCCReference Include="Amazon.Utils.pas"/>
<DCCReference Include="Amazon.Request.pas"/>
<DCCReference Include="Amazon.Response.pas"/>
<DCCReference Include="Amazon.DelphiRESTClient.pas"/>
<DCCReference Include="Amazon.IndyRESTClient.pas"/>
<DCCReference Include="Amazon.SignatureV4.pas"/>
<DCCReference Include="Amazon.Client.pas"/>
<None Include="..\..\..\Source\DelphiAWSSDK.inc"/>
<BuildConfiguration Include="Release">
<Key>Cfg_2</Key>
Expand Down
8 changes: 4 additions & 4 deletions Samples/DynamoDB/Delphi/CreateTable1/DynamoDBCreateTable.stat
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[Stats]
EditorSecs=3136
EditorSecs=3844
DesignerSecs=1
InspectorSecs=1
CompileSecs=337524
OtherSecs=629
CompileSecs=355433
OtherSecs=839
StartTime=24/11/2016 9:24:40 AM
RealKeys=0
EffectiveKeys=0
DebugSecs=14314
DebugSecs=14319
37 changes: 18 additions & 19 deletions Samples/DynamoDB/Delphi/CreateTable2/DynamoDBCreateTable.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,39 @@ program DynamoDBCreateTable;

uses
System.SysUtils,
Amazon.Client in '..\..\..\Source\Core\Amazon.Client.pas',
Amazon.Interfaces in '..\..\..\Source\Core\Amazon.Interfaces.pas',
Amazon.Credentials in '..\..\..\Source\Core\Amazon.Credentials.pas',
Amazon.Environment in '..\..\..\Source\Core\Amazon.Environment.pas',
Amazon.Utils in '..\..\..\Source\Core\Amazon.Utils.pas',
Amazon.Request in '..\..\..\Source\Core\Amazon.Request.pas',
Amazon.Response in '..\..\..\Source\Core\Amazon.Response.pas',
//Amazon.IndyRESTClient in '..\..\..\Source\Core\Amazon.IndyRESTClient.pas',
Amazon.DelphiRESTClient in '..\..\..\Source\Core\Amazon.DelphiRESTClient.pas',
Amazon.SignatureV4 in '..\..\..\Source\Core\Amazon.SignatureV4.pas',
Amazon.Marshaller in '..\..\..\Source\Core\Amazon.Marshaller.pas',
Amazon.DynamoDB in '..\..\..\Source\SDK\DynamoDB\Amazon.DynamoDB.pas';
Amazon.Client in 'Amazon.Client.pas',
Amazon.Interfaces in 'Amazon.Interfaces.pas',
Amazon.Credentials in 'Amazon.Credentials.pas',
Amazon.Environment in 'Amazon.Environment.pas',
Amazon.Utils in 'Amazon.Utils.pas',
Amazon.Request in 'Amazon.Request.pas',
Amazon.Response in 'Amazon.Response.pas',
Amazon.IndyRESTClient in 'Amazon.IndyRESTClient.pas',
Amazon.DelphiRESTClient in 'Amazon.DelphiRESTClient.pas',
Amazon.SignatureV4 in 'Amazon.SignatureV4.pas',
Amazon.Marshaller in 'Amazon.Marshaller.pas',
Amazon.DynamoDB in 'Amazon.DynamoDB.pas';

Var
FAmazonRESTClient: TAmazonDelphiRESTClient;
//FAmazonRESTClient : TAmazonIndyRESTClient;
FAmazonRESTClient: IAmazonRestClient;
FAmazonDynamoDBClient: TAmazonDynamoDBClient;
FsTableName: String;
FCreateTableRequest: TCreateTableRequest;
FAmazonDynamoDBResponse: TAmazonDynamoDBResponse;
begin
try
Try
Writeln('DynamoDB API (CreateTable) using Amazon.DynamoDB class');

//FAmazonRESTClient := TAmazonIndyRESTClient.Create;
FAmazonRESTClient := TAmazonDelphiRESTClient.Create;
FAmazonRESTClient := TAmazonIndyRESTClient.Create;
//FAmazonRESTClient := TAmazonDelphiRESTClient.Create;

fsTableName := 'ProductCatalog';

FAmazonDynamoDBClient:= TAmazonDynamoDBClient.Create(FAmazonRESTClient);

FAmazonDynamoDBClient.endpoint := 'https://dynamodb.ap-southeast-2.amazonaws.com/';

FCreateTableRequest := TCreateTableRequest.Create;
FCreateTableRequest.Tablename := fsTableName;
FCreateTableRequest.Tablename := 'ProductCatalog';

FCreateTableRequest.AttributeDefinitions.Add(TAttributeDefinition.Create('Id', 'S'));

Expand Down
Loading

0 comments on commit eb1b784

Please sign in to comment.