@finnairoyj/cdk-constructs-lib
    Preparing search index...

    Class EcsFargateServiceBaseAbstract

    Hierarchy (View Summary)

    Implements

    • IConnectable
    • IFargateService
    • IGrantable
    Index

    Constructors

    Properties

    containerEnv: Record<string, string>
    gitCommitSha?: string
    gitCommitShaParamName: string
    gitRepositoryUrl?: string
    imageTagParamName: string
    logGroup: LogGroup
    node: Node

    The tree node.

    repository: IRepository
    service: FargateService
    serviceContainer: ContainerDefinition
    serviceName: string

    The name of the service.

    serviceScope: FargateServiceScope
    serviceType: FargateServiceType
    taskDefinition: TaskDefinition
    taskExecutionRole: IRole
    taskRole: IRole
    version: string
    vpc: IVpc

    Accessors

    • get env(): ResourceEnvironment

      The environment this resource belongs to.

      For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.

      For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.

      Returns ResourceEnvironment

    Methods

    • Apply the given removal policy to this resource

      The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.

      The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).

      Parameters

      • policy: RemovalPolicy

      Returns void

    • Returns a string representation of this construct.

      Returns string

    • Checks if x is a construct.

      Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked.

      Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.

      Parameters

      • x: any

        Any object

      Returns x is Construct

      true if x is an object created from a class which extends Construct.