import { BlockchainListener } from '@odfdata/blockchain-listener'
new BlockchainListener(scope: Construct, id: string, props: BlockchainListenerProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
BlockchainListenerProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: BlockchainListenerProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { BlockchainListener } from '@odfdata/blockchain-listener'
BlockchainListener.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
blockchainListenerContainer |
aws-cdk-lib.aws_ecs.ContainerDefinition |
The blockchain listener docker container. |
ecsLogGroup |
aws-cdk-lib.aws_logs.LogGroup |
The AWS LogGroup the ECS Fargate Task will write logs in. |
eventBus |
aws-cdk-lib.aws_events.EventBus |
The AWS EventBus you can use to send events to. |
securityGroup |
aws-cdk-lib.aws_ec2.SecurityGroup |
The AWS Security Group created to allow connections just from the inside to the outside. |
vpc |
aws-cdk-lib.aws_ec2.Vpc |
The AWS VPC created for the ECS Cluster. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly blockchainListenerContainer: ContainerDefinition;
- Type: aws-cdk-lib.aws_ecs.ContainerDefinition
The blockchain listener docker container.
It gives you the control to set environment variables, if it's necessary
public readonly ecsLogGroup: LogGroup;
- Type: aws-cdk-lib.aws_logs.LogGroup
The AWS LogGroup the ECS Fargate Task will write logs in.
public readonly eventBus: EventBus;
- Type: aws-cdk-lib.aws_events.EventBus
The AWS EventBus you can use to send events to.
public readonly securityGroup: SecurityGroup;
- Type: aws-cdk-lib.aws_ec2.SecurityGroup
The AWS Security Group created to allow connections just from the inside to the outside.
public readonly vpc: Vpc;
- Type: aws-cdk-lib.aws_ec2.Vpc
The AWS VPC created for the ECS Cluster.
It's the Blockchain Listener properties interface.
import { BlockchainListenerProps } from '@odfdata/blockchain-listener'
const blockchainListenerProps: BlockchainListenerProps = { ... }
Name | Type | Description |
---|---|---|
cidrBlock |
string |
The range of IP addresses in which the ECS Fargate Task will be put in. |
containerImageDirectory |
string |
The directory in which the Docker file is placed. |
cpuArchitecture |
aws-cdk-lib.aws_ecs.CpuArchitecture |
The CPU architecture you want to use for your Fargate Task. |
public readonly cidrBlock: string;
- Type: string
- Default: 11.1.0.0/24
The range of IP addresses in which the ECS Fargate Task will be put in.
public readonly containerImageDirectory: string;
- Type: string
- Default: src/
The directory in which the Docker file is placed.
public readonly cpuArchitecture: CpuArchitecture;
- Type: aws-cdk-lib.aws_ecs.CpuArchitecture
- Default: aws-cdk-lib.aws_ecs.CpuArchitecture.ARM64
The CPU architecture you want to use for your Fargate Task.
Remember that it needs to be the same one of your building environment (pipeline or local machine)