Skip to content

One Observability Workshop v3.0.0


One Observability Workshop / microservices/petlist-adoptions / ListAdoptionsServiceProperties

Interface: ListAdoptionsServiceProperties

Defined in: microservices/petlist-adoptions.ts:40

Properties for the List Adoptions ECS service, extending base ECS service configuration.

Extends

Properties

cpu

cpu: number

Defined in: constructs/ecs-service.ts:66

CPU units for the task (256, 512, 1024, 2048, 4096)

Inherited from

EcsServiceProperties.cpu


memoryLimitMiB

memoryLimitMiB: number

Defined in: constructs/ecs-service.ts:68

Memory limit in MiB for the task

Inherited from

EcsServiceProperties.memoryLimitMiB


desiredTaskCount

desiredTaskCount: number

Defined in: constructs/ecs-service.ts:70

Number of desired task instances

Inherited from

EcsServiceProperties.desiredTaskCount


cloudMapNamespace?

optional cloudMapNamespace: IPrivateDnsNamespace

Defined in: constructs/ecs-service.ts:72

Cloud Map namespace for service discovery registration

Inherited from

EcsServiceProperties.cloudMapNamespace


openSearchCollection?

optional openSearchCollection: OpenSearchCollection | { collectionArn: string; collectionEndpoint: string; }

Defined in: constructs/ecs-service.ts:74

OpenSearch Serverless collection for direct log ingestion

Inherited from

EcsServiceProperties.openSearchCollection


openSearchPipeline?

optional openSearchPipeline: OpenSearchPipeline | { pipelineEndpoint: string; pipelineArn?: string; pipelineRoleArn?: string; }

Defined in: constructs/ecs-service.ts:85

OpenSearch ingestion pipeline for log routing When provided, logs will be sent to the pipeline instead of directly to OpenSearch Mutually exclusive with openSearchCollection

Inherited from

EcsServiceProperties.openSearchPipeline


additionalEnvironment?

optional additionalEnvironment: object

Defined in: constructs/ecs-service.ts:93

Extra environment variables merged into the application container

Index Signature

[key: string]: string

Inherited from

EcsServiceProperties.additionalEnvironment


enableCloudWatchAgent?

optional enableCloudWatchAgent: boolean

Defined in: constructs/ecs-service.ts:98

Enable CloudWatch agent sidecar for application signals and OTLP traces When enabled, adds a CloudWatch agent container that listens on port 4317

Inherited from

EcsServiceProperties.enableCloudWatchAgent


cloudWatchAgentTraceMode?

optional cloudWatchAgentTraceMode: CloudWatchAgentTraceMode

Defined in: constructs/ecs-service.ts:103

CloudWatch agent trace collection mode

Default

CloudWatchAgentTraceMode.APPLICATION_SIGNALS

Inherited from

EcsServiceProperties.cloudWatchAgentTraceMode


hostType

hostType: HostType

Defined in: constructs/microservice.ts:53

Where the service runs: ECS, EKS, or None (AgentCore)

Inherited from

EcsServiceProperties.hostType


computeType

computeType: ComputeType

Defined in: constructs/microservice.ts:55

Compute backing: Fargate or EC2

Inherited from

EcsServiceProperties.computeType


tags?

optional tags: object

Defined in: constructs/microservice.ts:57

Resource tags applied to all child constructs

Index Signature

[key: string]: string

Inherited from

EcsServiceProperties.tags


securityGroup?

optional securityGroup: ISecurityGroup

Defined in: constructs/microservice.ts:59

Security group for the service's network interface

Inherited from

EcsServiceProperties.securityGroup


vpc?

optional vpc: IVpc

Defined in: constructs/microservice.ts:61

VPC for network placement

Inherited from

EcsServiceProperties.vpc


eksCluster?

optional eksCluster: ICluster

Defined in: constructs/microservice.ts:63

EKS cluster (required when hostType is EKS)

Inherited from

EcsServiceProperties.eksCluster


ecsCluster?

optional ecsCluster: ICluster

Defined in: constructs/microservice.ts:65

ECS cluster (required when hostType is ECS)

Inherited from

EcsServiceProperties.ecsCluster


logRetentionDays?

optional logRetentionDays: RetentionDays

Defined in: constructs/microservice.ts:67

Default Log Retention

Inherited from

EcsServiceProperties.logRetentionDays


name

name: string

Defined in: constructs/microservice.ts:69

Service name used for resource naming and identification

Inherited from

EcsServiceProperties.name


repositoryURI

repositoryURI: string

Defined in: constructs/microservice.ts:71

ECR repository URI for the container image

Inherited from

EcsServiceProperties.repositoryURI


disableService?

optional disableService: boolean

Defined in: constructs/microservice.ts:73

Skip creating the runtime service (container build only)

Inherited from

EcsServiceProperties.disableService


healthCheck?

optional healthCheck: string

Defined in: constructs/microservice.ts:75

Health check path for the load balancer target group

Inherited from

EcsServiceProperties.healthCheck


subnetType?

optional subnetType: SubnetType

Defined in: constructs/microservice.ts:77

Subnet type for task placement

Inherited from

EcsServiceProperties.subnetType


listenerPort?

optional listenerPort: number

Defined in: constructs/microservice.ts:79

ALB listener port (default: 80)

Inherited from

EcsServiceProperties.listenerPort


containerPort?

optional containerPort: number

Defined in: constructs/microservice.ts:81

Container port the application listens on

Inherited from

EcsServiceProperties.containerPort


createLoadBalancer?

optional createLoadBalancer: boolean

Defined in: constructs/microservice.ts:83

Whether to create an ALB for this service

Inherited from

EcsServiceProperties.createLoadBalancer


enableSLO?

optional enableSLO: boolean

Defined in: constructs/microservice.ts:85

Whether to create Application Signals SLOs

Inherited from

EcsServiceProperties.enableSLO


database

database: IDatabaseCluster

Defined in: microservices/petlist-adoptions.ts:42

Aurora PostgreSQL cluster for reading adoption transactions


secret

secret: ISecret

Defined in: microservices/petlist-adoptions.ts:44

Secrets Manager secret for database credentials