AwsServerAnchorSchema
Hierarchy
- BaseAnchorSchema
- AwsServerAnchorSchema
Index
Properties
Properties
inheritedanchorId
The ID of the anchor, unique within its parent.
inheritedparent
The model that declared the anchor.
properties
Input properties.
properties.grants.dynamodb- The DynamoDB tables the code may reach, each by region and name, and whether it may read and write them.properties.grants.iamStatements- The IAM statements the code is allowed, each by actions and resource ARNs, as the user wrote them.properties.grants.lambda- The Lambda functions the code may invoke, each by account, region and name.properties.grants.s3- The S3 bucket prefixes the code may reach, each by bucket and prefix, and whether it may read and write them.properties.serverKey- The server key.
Type declaration
grants: { dynamodb: { allowRead: boolean; allowWrite: boolean; awsRegionId: string; tableName: string }[]; iamStatements: { actions: string[]; resources: string[] }[]; lambda: { awsAccountId: string; awsRegionId: string; functionName: string }[]; s3: { accessPrefix: string; allowRead: boolean; allowWrite: boolean; bucketName: string }[] }
dynamodb: { allowRead: boolean; allowWrite: boolean; awsRegionId: string; tableName: string }[]
iamStatements: { actions: string[]; resources: string[] }[]
lambda: { awsAccountId: string; awsRegionId: string; functionName: string }[]
s3: { accessPrefix: string; allowRead: boolean; allowWrite: boolean; bucketName: string }[]
serverKey: string
This anchor is associated with a Server model built by an AWS server module. It names the server and holds what the server's code may reach, for any AWS execution module to grant to the role it runs the code as, whichever runtime that is.
Anchors/AwsServer
AModel's
getAnchorsMatchingSchema()to consume this anchor from your own module.