CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-aws-sdk--client-sts

AWS SDK for JavaScript STS Client for Node.js, Browser and React Native, providing temporary security credentials and role assumption capabilities

92

1.05x

Evaluation92%

1.05x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how well the engineer uses the @aws-sdk/client-sts package to implement role assumption and identity retrieval operations. The focus is on proper usage of TypeScript types, command patterns, and client configuration patterns provided by the AWS SDK v3.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "STSClient instantiation",
      "description": "Correctly imports and instantiates STSClient from @aws-sdk/client-sts with proper region configuration",
      "max_score": 15
    },
    {
      "name": "AssumeRoleCommand usage",
      "description": "Correctly imports and uses AssumeRoleCommand with proper input parameters (RoleArn, RoleSessionName) and sends it using client.send()",
      "max_score": 25
    },
    {
      "name": "GetCallerIdentityCommand usage",
      "description": "Correctly imports and uses GetCallerIdentityCommand and sends it using client.send()",
      "max_score": 20
    },
    {
      "name": "Type-safe response handling",
      "description": "Properly uses TypeScript types for command responses (AssumeRoleCommandOutput, GetCallerIdentityCommandOutput) and extracts credentials/identity information with correct property access",
      "max_score": 20
    },
    {
      "name": "Credentials object mapping",
      "description": "Correctly maps the Credentials object from AssumeRoleCommandOutput to the TemporaryCredentials interface, accessing AccessKeyId, SecretAccessKey, SessionToken, and optionally Expiration",
      "max_score": 15
    },
    {
      "name": "Error handling patterns",
      "description": "Implements appropriate error handling for AWS SDK operations, catching and handling service exceptions",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-aws-sdk--client-sts

tile.json