Class AwsConverters
The static Aws
Inheritance
Namespace: LambdaSharp
Assembly: LambdaSharp.dll
Syntax
public static class AwsConverters
Methods
ConvertBucketArnToName(String)
Convert an S3 bucket ARN into a bucket name.
Declaration
public static string ConvertBucketArnToName(string arn)
Parameters
Type | Name | Description |
---|---|---|
System. |
arn | S3 bucket ARN. |
Returns
Type | Description |
---|---|
System. |
S3 bucket name. |
ConvertDynamoDBArnToName(String)
Convert a DynamoDB table ARN into a table name.
Declaration
public static string ConvertDynamoDBArnToName(string arn)
Parameters
Type | Name | Description |
---|---|---|
System. |
arn | DynamoDB table ARN. |
Returns
Type | Description |
---|---|
System. |
DynamoDB table name. |
ConvertFunctionArnToName(String)
Convert a Lambda function ARN into a function name.
Declaration
public static string ConvertFunctionArnToName(string arn)
Parameters
Type | Name | Description |
---|---|---|
System. |
arn | Lambda function ARN. |
Returns
Type | Description |
---|---|
System. |
Lambda function name. |
ConvertQueueArnToUrl(String)
Convert an SQS queue ARN into a queue URL.
Declaration
public static string ConvertQueueArnToUrl(string arn)
Parameters
Type | Name | Description |
---|---|---|
System. |
arn | SQS queue ARN. |
Returns
Type | Description |
---|---|
System. |
SQS queue URL. |
ReadDynamoDBTableName(LambdaConfig, String)
Read a DynamoDB table ARN from Lambda
Declaration
public static string ReadDynamoDBTableName(this LambdaConfig config, string key)
Parameters
Type | Name | Description |
---|---|---|
Lambda |
config | The Lambda |
System. |
key | The key to read. |
Returns
Type | Description |
---|---|
System. |
DynamoDB table name. |
ReadLambdaFunctionName(LambdaConfig, String)
Read a Lambda function ARN from Lambda
Declaration
public static string ReadLambdaFunctionName(this LambdaConfig config, string key)
Parameters
Type | Name | Description |
---|---|---|
Lambda |
config | The Lambda |
System. |
key | The key to read. |
Returns
Type | Description |
---|---|
System. |
Lambda function name. |
ReadS3BucketName(LambdaConfig, String)
Read an S3 bucket ARN from Lambda
Declaration
public static string ReadS3BucketName(this LambdaConfig config, string key)
Parameters
Type | Name | Description |
---|---|---|
Lambda |
config | The Lambda |
System. |
key | The key to read. |
Returns
Type | Description |
---|---|
System. |
S3 bucket name. |
ReadSqsQueueUrl(LambdaConfig, String)
Read an SQS queue ARN from Lambda
Declaration
public static string ReadSqsQueueUrl(this LambdaConfig config, string key)
Parameters
Type | Name | Description |
---|---|---|
Lambda |
config | The Lambda |
System. |
key | The key to read. |
Returns
Type | Description |
---|---|
System. |
SQS queue URL. |
ToStream(String)
The To
Declaration
public static Stream ToStream(this string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The System. |
Returns
Type | Description |
---|---|
System. |
The UTF-8 encoded stream. |