Class ReportAwsEmulatorTask

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
All Implemented Interfaces:
Comparable<org.gradle.api.Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, org.gradle.api.Named, org.gradle.api.plugins.ExtensionAware, org.gradle.api.Task, org.gradle.util.Configurable<org.gradle.api.Task>

@DisableCachingByDefault(because="Reads live emulator state on every invocation") public abstract class ReportAwsEmulatorTask extends AbstractAwsResourceTask
Captures metadata for all thirteen provisioned service families from an existing emulator: S3, SQS, SNS, DynamoDB, CloudFormation, EventBridge, Kinesis, SSM, Secrets Manager, KMS, CloudWatch Logs, Cognito User Pools, and SES. Omits resource payloads and secret values. Writes index.html and report.json, including collection errors. Never starts an owned runtime. Custom tasks inherit awsEmulator.defaultMode (initially MANAGED); convenience tasks use DEVELOPMENT.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.gradle.api.Task

    org.gradle.api.Task.Namer
  • Field Summary

    Fields inherited from interface org.gradle.api.Task

    TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract org.gradle.api.provider.Property<Boolean>
    Fail after writing both reports if any service could not be fully inspected.
    abstract org.gradle.api.file.DirectoryProperty
    Output directory; defaults to build/reports/aws-emulator/runtime/mode/taskName.
    protected abstract org.gradle.workers.WorkerExecutor
     
    void
     
    void
    setFailOnErrorOption(boolean value)
     

    Methods inherited from class io.github.gregwhitaker.awsemulator.aws.AbstractAwsResourceTask

    connection, getApiCallTimeoutSeconds, getMode, setModeOption

    Methods inherited from class io.github.gregwhitaker.awsemulator.core.AbstractAwsEmulatorTask

    getRuntime, getRuntimeName, setRuntimeNameOption

    Methods inherited from class org.gradle.api.DefaultTask

    compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService

    Methods inherited from class org.gradle.api.internal.AbstractTask

    acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.gradle.api.Task

    doNotTrackState, getConvention, notCompatibleWithConfigurationCache
  • Constructor Details

    • ReportAwsEmulatorTask

      public ReportAwsEmulatorTask()
  • Method Details

    • getWorkerExecutor

      @Inject protected abstract org.gradle.workers.WorkerExecutor getWorkerExecutor()
    • getReportDirectory

      @OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getReportDirectory()
      Output directory; defaults to build/reports/aws-emulator/runtime/mode/taskName.
    • getFailOnError

      @Input public abstract org.gradle.api.provider.Property<Boolean> getFailOnError()
      Fail after writing both reports if any service could not be fully inspected. Defaults to false.
    • setFailOnErrorOption

      public void setFailOnErrorOption(boolean value)
    • report

      public void report()