|
| 1 | +apiVersion: operator.aws/v1alpha1 |
| 2 | +kind: ModelDefinition |
| 3 | +metadata: |
| 4 | + name: DynamoDBResource |
| 5 | +spec: |
| 6 | + kind: DynamoDB |
| 7 | + type: Spec # can be Spec or Data |
| 8 | + queue: true |
| 9 | + useCloudFormation: true |
| 10 | + resource: |
| 11 | + name: dynamodb |
| 12 | + plural: dynamodbs |
| 13 | + shortNames: |
| 14 | + - name: ddb |
| 15 | + - name: ddbs |
| 16 | + - name: dynamo |
| 17 | + - name: dynamotable |
| 18 | + - name: dynamotables |
| 19 | + body: |
| 20 | + schema: |
| 21 | + title: DynamoDB |
| 22 | + type: object |
| 23 | + properties: |
| 24 | + - key: tableName |
| 25 | + type: string |
| 26 | + description: | |
| 27 | + TableName is the name of the DynamoDB Table to be created. |
| 28 | + structKey: TableName |
| 29 | + templateKey: TableName |
| 30 | + - key: rangeAttribute |
| 31 | + type: object |
| 32 | + description: | |
| 33 | + RangeAttribute is the configuration for the range attribute. |
| 34 | + structKey: RangeAttribute |
| 35 | + templateKey: RangeAttribute |
| 36 | + properties: |
| 37 | + - key: Name |
| 38 | + type: string |
| 39 | + description: | |
| 40 | + Name is the name of the range attribute on the table. |
| 41 | + structKey: Name |
| 42 | + templateKey: RangeAttributeName |
| 43 | + - key: Type |
| 44 | + type: string |
| 45 | + description: | |
| 46 | + Type is the kind of range attribute that should be used. |
| 47 | + structKey: Type |
| 48 | + templateKey: RangeAttributeType |
| 49 | + - key: readCapacityUnits |
| 50 | + type: int |
| 51 | + description: | |
| 52 | + ReadCapacityUnits specifies the read capacity of the table. |
| 53 | + structKey: ReadCapacityUnits |
| 54 | + templateKey: ReadCapacityUnits |
| 55 | + - key: writeCapacityUnits |
| 56 | + type: int |
| 57 | + description: | |
| 58 | + WriteCapacityUnits specifies the write capacity of the table. |
| 59 | + structKey: WriteCapacityUnits |
| 60 | + templateKey: WriteCapacityUnits |
| 61 | + - key: hashAttribute |
| 62 | + type: object |
| 63 | + description: | |
| 64 | + HashAttribute is the configuration for the hash attribute on the table. |
| 65 | + structKey: HashAttribute |
| 66 | + templateKey: HashAttribute |
| 67 | + properties: |
| 68 | + - key: Name |
| 69 | + type: string |
| 70 | + description: | |
| 71 | + Name is the name of the hashing attribute on the table. |
| 72 | + structKey: Name |
| 73 | + templateKey: HashAttributeName |
| 74 | + - key: Type |
| 75 | + type: string |
| 76 | + description: | |
| 77 | + Type is the kind of hash attribute that should be used. |
| 78 | + structKey: Type |
| 79 | + templateKey: HashAttributeType |
| 80 | + output: |
| 81 | + schema: |
| 82 | + type: object |
| 83 | + properties: |
| 84 | + - key: tableName |
| 85 | + type: string |
| 86 | + description: | |
| 87 | + TableName is the output tablename incase it changed |
| 88 | + structKey: TableName |
| 89 | + templateKey: TableName |
| 90 | + - key: tableARN |
| 91 | + type: string |
| 92 | + description: | |
| 93 | + TableARN is the full Amazon ARN for the table created |
| 94 | + structKey: TableARN |
| 95 | + templateKey: TableArn |
0 commit comments