-- Generated by Gleam CI helpers. module CI.Component (run, version, identity, s3_cp, s3_sync, cloudformation_deploy) where import Prelude import CI.Contract as Contract import Data.Maybe (Maybe) import Effect (Effect) import CI.ModuleDependencies as Dependencies import CI.CLI as Native -- | Execute arbitrary literal CLI arguments. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique. -- | @param arguments Literal native CLI argument tokens, passed without shell expansion. run :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe (Array String), arguments :: Array String } -> Effect Contract.ExecutionResult run args = do json <- Contract.cliInput (Contract.encodeInput args) Native.executeWithSetup Dependencies.ensureFor "aws" "run" json -- | Print the CLI version. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique. version :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe (Array String) } -> Effect Contract.ExecutionResult version args = do json <- Contract.cliInput (Contract.encodeInput args) Native.executeWithSetup Dependencies.ensureFor "aws" "version" json -- | Inspect the authenticated AWS principal. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique. -- | @param region Region supplied to the aws identity operation. -- | @param profile Profile supplied to the aws identity operation. -- | @param endpointUrl Endpoint Url supplied to the aws identity operation. -- | @param output Destination path for generated packages. Allowed values: json, text, table, yaml, yaml-stream. identity :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe (Array String), region :: Maybe String, profile :: Maybe String, endpointUrl :: Maybe String, output :: Maybe String } -> Effect Contract.ExecutionResult identity args = do json <- Contract.cliInput (Contract.encodeInput args) Native.executeWithSetup Dependencies.ensureFor "aws" "identity" json -- | Copy files to, from, or between S3 locations. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique. -- | @param region Region supplied to the aws s3_cp operation. -- | @param profile Profile supplied to the aws s3_cp operation. -- | @param endpointUrl Endpoint Url supplied to the aws s3_cp operation. -- | @param recursive Recursive supplied to the aws s3_cp operation. -- | @param exclude Exclude supplied to the aws s3_cp operation. -- | @param include Include supplied to the aws s3_cp operation. -- | @param source Source supplied to the aws s3_cp operation. -- | @param destination Destination supplied to the aws s3_cp operation. s3_cp :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe (Array String), region :: Maybe String, profile :: Maybe String, endpointUrl :: Maybe String, recursive :: Maybe Boolean, exclude :: Maybe (Array String), include :: Maybe (Array String), source :: String, destination :: String } -> Effect Contract.ExecutionResult s3_cp args = do json <- Contract.cliInput (Contract.encodeInput args) Native.executeWithSetup Dependencies.ensureFor "aws" "s3_cp" json -- | Synchronize a directory or S3 prefix. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique. -- | @param region Region supplied to the aws s3_sync operation. -- | @param profile Profile supplied to the aws s3_sync operation. -- | @param endpointUrl Endpoint Url supplied to the aws s3_sync operation. -- | @param delete Delete supplied to the aws s3_sync operation. -- | @param dryrun Dryrun supplied to the aws s3_sync operation. -- | @param exclude Exclude supplied to the aws s3_sync operation. -- | @param include Include supplied to the aws s3_sync operation. -- | @param source Source supplied to the aws s3_sync operation. -- | @param destination Destination supplied to the aws s3_sync operation. s3_sync :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe (Array String), region :: Maybe String, profile :: Maybe String, endpointUrl :: Maybe String, delete :: Maybe Boolean, dryrun :: Maybe Boolean, exclude :: Maybe (Array String), include :: Maybe (Array String), source :: String, destination :: String } -> Effect Contract.ExecutionResult s3_sync args = do json <- Contract.cliInput (Contract.encodeInput args) Native.executeWithSetup Dependencies.ensureFor "aws" "s3_sync" json -- | Deploy a CloudFormation template. -- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".". -- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist. -- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool. -- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000. -- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique. -- | @param region Region supplied to the aws cloudformation_deploy operation. -- | @param profile Profile supplied to the aws cloudformation_deploy operation. -- | @param endpointUrl Endpoint Url supplied to the aws cloudformation_deploy operation. -- | @param templateFile Template File supplied to the aws cloudformation_deploy operation. -- | @param stackName Stack Name supplied to the aws cloudformation_deploy operation. -- | @param capabilities Capabilities supplied to the aws cloudformation_deploy operation. -- | @param parameterOverrides Parameter Overrides supplied to the aws cloudformation_deploy operation. -- | @param noFailOnEmptyChangeset No Fail On Empty Changeset supplied to the aws cloudformation_deploy operation. cloudformation_deploy :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe (Array String), region :: Maybe String, profile :: Maybe String, endpointUrl :: Maybe String, templateFile :: String, stackName :: String, capabilities :: Maybe (Array String), parameterOverrides :: Maybe (Array String), noFailOnEmptyChangeset :: Maybe Boolean } -> Effect Contract.ExecutionResult cloudformation_deploy args = do json <- Contract.cliInput (Contract.encodeInput args) Native.executeWithSetup Dependencies.ensureFor "aws" "cloudformation_deploy" json