Skip to main content

AwsServerAnchorSchema

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.

@group

Anchors/AwsServer

@see

AModel's getAnchorsMatchingSchema() to consume this anchor from your own module.

Hierarchy

  • BaseAnchorSchema
    • AwsServerAnchorSchema

Index

Properties

inheritedanchorId

anchorId: string

The ID of the anchor, unique within its parent.

inheritedparent

parent: IModelReference & { type: NodeType }

The model that declared the anchor.

properties

properties: { 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 }[] }; serverKey: string }

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
Page Options