Definitions for @turbot/aws-secretsmanager

name

{
"type": "string",
"pattern": "^[a-zA-Z0-9/_+=.@-]{1,256}$",
"tests": [
{
"input": "ws-abcdefghij"
},
{
"input": "ws-a1b2c3d4e5"
},
{
"description": "invalid - non permitted character",
"input": "ved,1234",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-secretsmanager#/definitions/name",
"modUri": "tmod:@turbot/aws-secretsmanager"
}
}

secret

{
"type": "object",
"properties": {
"ARN": {
"$ref": "#/definitions/secretAka"
},
"Name": {
"$ref": "#/definitions/name"
},
"Tags": {
"$ref": "aws#/definitions/tagList"
},
"Description": {
"type": "string"
},
"RotationRules": {
"type": "object"
},
"RotationLambdaARN": {
"type": "string"
},
"RotationEnabled": {
"type": "boolean"
},
"ResourcePolicy": {
"type": "string"
},
"LastChangedDate": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"LastAccessedDate": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/secretAka"
}
},
"tags": {
"$ref": "aws#/definitions/tagsMap"
},
"title": {
"$ref": "#/definitions/name"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
},
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "all properties given",
"input": {
"Name": "ved1234",
"Description": "Delete after use",
"RotationRules": {
"AutomaticallyAfterDays": 60
},
"RotationEnabled": true,
"LastChangedDate": "2019-11-24T21:21:11.380Z",
"LastAccessedDate": "2019-11-21T00:00:00.000Z",
"RotationLambdaARN": "arn:aws:lambda:us-west-2:560741234067:function:SecretsManagerrotation-lambda",
"Tags": [
{
"Key": "testKey",
"Value": "testValue"
}
],
"turbot": {
"akas": [
"arn:aws:secretsmanager:us-east-1:123456789012:secret:ved1234"
],
"tags": {
"testKey": "testValue"
},
"title": "ved1234",
"custom": {
"aws": {
"accountId": 123456789012,
"regionName": "us-east-1"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/aws-secretsmanager#/definitions/secret",
"modUri": "tmod:@turbot/aws-secretsmanager"
}
}

secretAka

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:secretsmanager:[a-z]{2}(-gov)?-[a-z]+-[0-9]:[0-9]{12}:secret:[a-zA-Z0-9/_+=.@-]{1,2048}$",
"tests": [
{
"description": "Valid - Base case",
"input": "arn:aws:secretsmanager:us-east-1:123456789012:secret:ved123456"
},
{
"description": "Invalid - Malformed resource collection",
"input": "arn:aws:secretsmanager:us-east-1:123456789012:secret:ved,123456",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-secretsmanager#/definitions/secretAka",
"modUri": "tmod:@turbot/aws-secretsmanager"
}
}

secretsManager

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"const": "Secrets Manager"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/secretsManagerAka"
}
},
"title": {
"const": "Secrets Manager"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Base",
"input": {
"name": "Secrets Manager",
"turbot": {
"akas": [
"arn:aws:secretsmanager:us-east-1:013122550996"
],
"title": "Secrets Manager",
"custom": {
"aws": {
"accountId": "013122550996",
"regionName": "us-east-1"
}
}
}
}
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/aws-secretsmanager#/definitions/secretsManager",
"modUri": "tmod:@turbot/aws-secretsmanager"
}
}

secretsManagerAka

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:secretsmanager:[a-z]{2}(-gov)?-[a-z]+-[0-9]:[0-9]{12}$",
"tests": [
{
"description": "base",
"input": "arn:aws:secretsmanager:us-east-1:013122550996"
},
{
"description": "Invalid - service name",
"input": "arn:aws:secretsmanagesdr:us-east-1:013122550996",
"expected": false
},
{
"description": "Invalid - region name",
"input": "arn:aws:secretsmanager:useast-1:013122550996",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-secretsmanager#/definitions/secretsManagerAka",
"modUri": "tmod:@turbot/aws-secretsmanager"
}
}