Skip to main content

AwsDeploymentAnchorSchema

This anchor is associated with a Deployment model built by an AWS deployment module. It holds the code the deployment runs and what that code needs, for any AWS execution module to read.

@group

Anchors/AwsDeployment

@see

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

Hierarchy

  • BaseAnchorSchema
    • AwsDeploymentAnchorSchema

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: { command: string[] | null; cpu: number | null; image: { imageId: string; imageTag: string; kind: ecr } | { kind: uri; uri: string }; memory: number | null; ports: AwsDeploymentAnchorPortSchema[]; timeoutInSeconds: number | null }

Input properties. See AwsDeploymentAnchorPropertiesSchema for options.


Type declaration

  • command: string[] | null

    The command to run, one argument per element, replacing the image's own, or null to keep the image's own command.

  • cpu: number | null

    The CPU units the code needs, where 1024 units are one vCPU, or null to leave it to the runtime.

  • image: { imageId: string; imageTag: string; kind: ecr } | { kind: uri; uri: string }

    The container image the code is in. It is either an image octo publishes into ECR, named by its image and tag, or any other image, named by its URI.

  • memory: number | null

    The memory the code needs in MiB, or null to leave it to the runtime.

  • ports: AwsDeploymentAnchorPortSchema[]

    The ports the code listens on. See AwsDeploymentAnchorPortSchema for options.

  • timeoutInSeconds: number | null

    How long one request may run in seconds, or null to leave it to the runtime.

Page Options