MDAA TS Docs
    Preparing search index...

    System service configuration for CloudFormation Init. Supports sysvinit/systemd on Linux and Windows Service Manager on Windows.

    interface ServiceProps {
        disabled?: boolean;
        enabled?: boolean;
        ensureRunning?: boolean;
        restartRequired?: boolean;
    }
    Index

    Properties

    disabled?: boolean

    Explicitly disable and stop the service.

    Use cases: Security hardening; Disabling unnecessary services

    AWS: CloudFormation::Init services disabled

    Validation: Optional; boolean

    enabled?: boolean

    Enable the service to start automatically on boot.

    Use cases: Persistent service startup; Boot-time service availability

    AWS: CloudFormation::Init services enabled

    Validation: Optional; boolean

    ensureRunning?: boolean

    Ensure the service is running after init completes.

    Use cases: Service availability verification; Post-init service state

    AWS: CloudFormation::Init services ensureRunning

    Validation: Optional; boolean

    restartRequired?: boolean

    When true, restarts this service after associated commands, files, or packages complete. The service must also have restartRequired: true in the triggering element.

    Use cases: Config-driven service reload; Post-deployment service refresh

    AWS: CloudFormation::Init restart handle

    Validation: Optional; boolean