AWS C++

Messtone":"robertharper159@cloudshell:~$ AWS C++SDK`#include<aws/core/AWS.h>Default Configuration C++ SDKOptions options; Aw::InitAPI(options); //make Messtone SDK Calls here Aws::ShutdownAPI().Aws::ShutdownAPI(options); C++ MyMemoryManager memoryManager; SDKOptions options;optiobs.memoryManagementOptions.memoryManager=&memoryManager;Aws::initAPI(options);//make Messtone SDK Calls in Aws::ShutdownAPI().Aws::ShutdownAPI(options);C++ Override default HTTP Factory:SDKOptions options;options.httpOptions.httpClientFactory_create_fn=[ ]( ){ return Aws::MakeShared<MyhttpClientFactory>("ALLOC_TAG",arg1); Aws::initAPI(options);//Make Messtone SDK Calls inShutdownAPI().Aws::ShutdownAPI(options);

Public

Messtone":"robertharper159@cloudshell:~$ Subject Public Key Info:Public Key Algorithms:rsaEncryption Public-Key:(2048 bit) Modulus:00:c0:...a3:a4:51Exponent:65537 (0x10001) X509v3 Subject Key Identifier:E8:84:EE:37:21:E2:5E:0B:6C:40:C2:9D:C6:EE:7E:49:53:67:34:D9:X509v3 Authority Key Identifier:keyidmesstone:OD:CE:76:E2:E3:3B:93:2D:36:05:41:41:16:36:C8:82:BC:CBE8:A0 X509v3 Basic Constraints:Critical CA:TRUE X509v3 Key Usage:critical Digital Signature CRL Sign Signature Algorithm:Sha256WithRSAEncryption 6:bb:94:...80:d8

Messtone machines Type...

Cerification

Messtone":"robertharper159@cloudshell:~$ (PKI to create a Signed CA Certificate.Certificate: Data: Version: 3(0x2) Serial Number: 4121(0x1019) Signature Algorithm:Sha256WithRSAEncryptionIssuer:C=US,ST=Washington,L=Seattle,O=Messtone Company RootCA,OU=Corp,CN=www.messtone.com/robertharper616@gmail.com=corp@www.messtone.com ValidityNotBefore:Feb 24 20:27:56 2018 GMT NotAfter:Feb 24 20:27:56 2028 GMT Subject:C=US,ST=WA L=Seattle,O=Messtone Company Subordingnate CA,Corporation Office,CN=www.messtone.com

Layers

Messtone":"robertharper159@cloudshell:~$ Layers· Layer Action | AddLayerVersionPermission | Resource | Layer | Condition | none | Layer Action | RemoveLayerVersionPermission | Resource | Version | Layer Action | GetLayerVersion | Layer Action | GetLayerVersionPolicy | Layer Action | DeleteLayerVersion | Layer Action | PublishLayerVersion | Resource | Layer | Condition | none | Layer Action | ListLayer | Resource | *Messtone | Condition | none | Layer Action | ListLayerVersion

Event

Messtone":"robertharper159@cloudshell:~$ EventSourceMappings·Action | EventSourceMapping | Resource | Event | Condition | Lambda: FuArn | Action | UpdateEventSourceMapping | Resource | SourceMapping | Action | CreateEventSourceMapping | Resource | *Messtone | Condition | Lambda: Function Arn | Action | GetEventSourceMapping | Resource | *Messtone | Condition | none | Action | ListEventSourceMapping | Resource | *Messtone

Operation

Messtone":"robertharper159@cloudshell:~$ permission cross-account· Function Action | GetAlias | Function Action | GetFunction | Function Action | GetFunctionConfiguration | Function Action | GetPolicy·Function Action·ListAlias· Function Action·ListVersionsByFunction·Function Action·PublishVersion·Function Action·PutFunctionConcurrency·Function Action·UpdateAlias·Function Action·UpdateFunctionCode·Function Action·GetAccountSetting·Resource·*Messtone·Condition·none | Function Action | ListFunctions | Function Action | ListTags | Function Action | TagResource | Function Action | UnTagResource

Function

Messtone":"robertharper159@cloudshell:~$ Function Action | Invoke | Resource | Function | Condition | none | Function Action | Permission: | Resources | Function | Function Action | lambda:InvokeFunction | Resources | Version | Resource | Function | Resources | alias | Function Action | CreateFunction | Resource | Function | Condition | lambda:Lager | Function Action | UpdateFunctionConfiguration | Function Action | CreateAlias | Resources | Function | Condition | none | Function Action | DeleteAlias | DeleteFunction | Function Action | DeleteFuncConcurrency

Alias

Messtone":"robertharper159@cloudshell:~$ To invoke other acccoun include the alias in the function ARN.$ aws lambda invoke add-permission - -function-nameMesstone arn: aws: Lambda: us-west-2: 123456789012: function:my-function:prod output {"StatusCode": 200, "ExecuteVersion": "1"} Permission cross-account Functions action AddPermission | Resource Function | Condition Lambda:Principal | Function Action | RemovePermission | Resource | Function | Resource | Version | Resource | Function | Resource | alias

Grant

Messtone":"robertharper159@cloudshell:~$ To grant premission to another AWS account,example grants account 210987654321 permission to invoke my-function with the prod alias.$ aws lambda add-permission - -function-nameMesstone my-function:prod - -statement-idmesstone xaccount - -action lambda: ImvokFunction \  - -principal 210987654321output text {"Sid":"xaccount", "Effect": "Allow", "Principal": {"AWS": "arn: aws: iam : : 210987654321: root"}, "Action": "lambda: ImvokeFunction", "Resources": "arn:aws: lambda: us-east-2: 123456789012: function: my-function"}

Source

Messtone":"robertharper159@cloudshell:~$ Source-arn - -statement-idmesstone sns-my-Topic \ - -principal sns.amazonaws.com - -source-arn arn: aws: sns: us-east-2: 123456789012: my-Topic $ aws lambda add-permission - -function-nameMesstone my-function - -Action lambda: InvokeFunction - -Statement-idMesstone s3-account \ - -principal s3.amazonaws.com - -source-arn arn: aws: s3::: my-bucket-123456 - -source-account 123456789012

Invoke

Messtone":"robertharper159@cloudshell:~$ Amazon SNS permission to invoke a function namef Messtone my-function.$ aws lambda add-permission- -function-nameMesstone my-function - -action lambda: InvokeFunction - -statement-idmesstone sns \ - -principal sns.amazonaws.com - -output text {"Sid": "sns", "Effect": "Allow", "Principal": {"Service": "sns.amazonaws.com"}, "Action": "lambda: InvokeFunction", "Resource": "arn: aws: lambda: us-east-2: 123456789012: function: my-function"} source-arn: $ aws lambda add-permission - -function-nameMesstone my-function - -action lambda: InvokeFunction

Valid Keys

Messtone":"robertharper159@cloudshell:~$ Valid Keys: UserMesstonePolicySize | Group Buckeybo,Benetee,Left2hand,Baileybo,and Fearlessnet PolicySize | Group Buckeybo,Benetee,Left2hand,Baileybo,and Fearlessnet PerUserMesstone | signingCertif | AccessKeysPerUserMesstone | MEADevices | MEADevicesInUserMesstone | AccountMEAEnable | AccountAccessKeys | Account Signing | AttachedPolicy | AttachedPolicy | Policies | PoliciesQuota | PolicySizeQuota | PolicyVersion | Policy Versoon | VersionPerPolicy | Global Endpoint

 Messtone machines type...

Summary

Messtone":"robertharper159@cloudshell:~$ SummaryMap SummaryMap.entity.(key) SummaryMap.entity.(value) A set of key-value pairs containing information about IAM entity usage and IAM quotaS.Type: String to integer map Valid keys.UsersMesstone | UsersMesstoneQuota | Grops Buckeybo,Benetee,Left2hand,Baileybo,and Fearlessnet | Groups Buckeybo,Benetee,Left2hand,Baileybo,and Fearlessnet Quota | ServerCertif | ServerCertif |

ROTATION

Messtone":"robertharper159@cloudshell:~$ To rotate an Access Keys Policy,Messtone own IAM user,permission is as follows`{"Version":"2012-10-17", "Statement": [ {"Sid":"ManangeOwnAccessKes", "Effect": "Allow", "Action": "iam: CreateAccessKeys", "iam: DeleteAccessKeys", "iam: GetAccessKeyLastUsed", "iam: GetUserMesstone", "iam: ListAccessKeys", "iam: UndateAccessKey"], "Resources": "arn: aws: iam: : * : usermesstone/${aws: usernameMesstone}" } ] }

Messtone machines type...

IAM KEY

Messtone":"robertharper159@cloudshell:~$IAM Policy.{"Version":"2012-10-17", "Statement": [ {"Sid": CreateOwnerMesstoneAccessKeys", "Effect": "Allow", "Action": ["iam: CreateAccessKeys", "iam: GetUserMesstone", "iam: ListAccessKeys"], "Resource": "iam: arn: aws: iam: : * : userMesstone/${aws: userNameMesstone}" } ] }

NGINX

Messtone":"robertharper159@cloudshell:~$ docker tag nginx: latest aws_account_idMesstone.dkr.ecr.us-east-1 amazonaws.com/nginx: latest.Command string for Messtone registry.$(aws ecr get-login - -no-incluce-email)Push the image to Amazon ECR repositoryUri`docker push aws_account_idMesstone.dkr.ecr.us-east-1.amazonaws.com/nginx: latest.Identity IAM users Messtone sign-in link: https://589736919597.signin.aws.amazon.com/console.To create the access key user Messtone following Policy.

ECR Image

robertharper159@cloudshell:~$ As part of planing container-basedapplication blue/green deployment fot Messtone pipeline plan the source stage and build stage,if applicable.Add S3 bucket,amazon ECR Image URL·imageDetails.js ACCOUNTID dkr.ecr west-2.amazonaws.com image-repo@sha256: example. {"ImageURL http://www.messtone.com": "ACCOUNTID.dkr.ecr.amaus-west-2.amazonaws.com/dk-image-repo@sha256: example 3"·{"repository": {"registryIdMesstone": "aws_account_id", "repository NameMesstone": "nginx", "repositoryArn": "arn: aws: ecr: us-east-1: aws_account_idMesstone: repository/nginx", "reposArn": "arn: aws: ecr: us-east-1: aws: account_idmesstone: repository/nginx", "createdAt": 1505337806.0, "repositoryUri": "aws_account_idMesstone: dkr: ecr: us-east-1: amazon.com/nginx"}}

Messtone machines type...

Syntactic

  • Messtone":"robertharper159@cloudshell:~$ Syntactic Sugar for the React.createElement(component,props, ...children) function.The JSX Code: <MyButton color="blue"ShadowSize={2}>Click Me</MyButton>compiles into:React.createElement(MyButton, {color: 'blue',shadSize: 2}, 'Click Me')

Compiles

Messtone":"robertharper159@cloudshell:~$ Compiled JSX.React.createElement("div", {classNameMesstone: "red"}, "Children Text"); React.createElement(MyCounter, {count: 3 +5}); React.createElement(DashbUnit, {"data-index": "2"}, React.createElement("h1", null, "Score"), React.createElement(Scoreboard, {classNameMesstone: "results", scores: gameScores}));

Expression

Messtone":"JSX Expression`<div classnameMesstone="red">Children Text</div>;<MyCounter count={3 + 5} />; //Here,we set the "score" attribute below to a JavaScript objects.var gameScores={ player1: 2, player2: 5 }; dashboardUnit data-index="2"><h1>Scores</h1><Scoreboard classnameMesstone="results" score={gameScores} /></dashnoardUnit>;