Commit Graph
3677 Commits
Author SHA1 Message Date
Francisco Javier Barón 481b7f8d6d fix(lambda): pass LoggingConfig log format and level to the runtime (#6775)
* fix(lambda): pass LoggingConfig log format and level to the runtime

A function with LogFormat=JSON logged text: neither launcher set AWS_LAMBDA_LOG_FORMAT or AWS_LAMBDA_LOG_LEVEL, which the runtime interface clients read. Both launchers now pass them, and a JSON function without an ApplicationLogLevel gets INFO, the level the API reports, through one default shared with the response.

Closes #6774

* docs(lambda): note the log format and level the runtime receives

* refactor(lambda): build the runtime environment in one place for both launchers

ContainerLauncher and KubernetesPodLauncher wrote the same AWS_LAMBDA_* lines, the LoggingConfig ones included. LambdaRuntimeEnv.of now builds them once.
2026-10-28 09:04:14 -04:00
Aniket Shukla 119b7e9580 fix(athena): paginate query execution listings (#6816) 2026-10-28 09:03:55 -04:00
Jackson Price a83fa9c9e4 fix(ec2): keep the KMS key a volume is created with (#6756)
* fix(ec2): keep the KMS key a volume is created with

CreateVolume ignored KmsKeyId, so neither CreateVolume nor
DescribeVolumes reported kmsKeyId, even for a volume created encrypted
with a named key. A volume CreateVolume makes encrypted now keeps the
request's KmsKeyId as given, or gets the region's default EBS key when
it names none, and both responses report it. A volume that is not
encrypted keeps no key, and volumes stored before this change load as
they were, with no kmsKeyId.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* test(ec2): read volume responses with XmlParser

The volume KMS key tests read CreateVolume and DescribeVolumes
responses with a regular expression, substring offsets and plain
string matches. They now read them with XmlParser, as other EC2 tests
do, so element values are parsed and decoded as XML. Test-only; the
assertions are unchanged.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* fix(ec2): keep the KMS key a launch's block device mapping names

A launch's encrypted volumes got the region's default EBS key even
when their block device mapping, or the launch template's, named
Ebs.KmsKeyId. The key now goes from the mapping to the volume, root
included, and a mapping that names none still gets the default.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* test(ec2): pin the launch volume key rules

Pin that a launch mapping naming a key without Encrypted leaves the
volume unencrypted and keyless, and that a request entry's key wins
over its launch template's. Delete the test's launch template, reuse
the launch helpers in the root-volume test, and document that a launch
volume encrypted only by its snapshot gets the region's default key,
since snapshots record no key.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-28 08:46:27 -04:00
kenny-ish db86fc7d72 fix(cloudmap): keep an empty HealthCheckCustomConfig and report FailureThreshold 1 (#6792)
CreateService dropped a HealthCheckCustomConfig sent as {}. The handler
passed it through rawJson, which returns null for an empty object, so
the CreateService, GetService and ListServices responses left the field
out. Terraform sends {} when failure_threshold is unset and then sees a
change to the block on every plan.

FailureThreshold is no longer supported, and the Cloud Map API
reference says AWS always sets it to 1. The handler now keeps an empty
object for this field, and CloudMapService stores
{"FailureThreshold":1} for any HealthCheckCustomConfig, so a service
created through CloudFormation reads back the same way.

Fixes #6751
2026-10-28 07:24:01 -04:00
Daniël van Ziel 0ee1d10659 fix(cognito): refuse a reused TOTP code for SOFTWARE_TOKEN_MFA (#6808)
A software-token code now answers one SOFTWARE_TOKEN_MFA challenge only. The step of the
last accepted code is stored on the user, and a code from that step or an earlier one fails
with ExpiredCodeException, as AWS does (RFC 6238 section 5.2). VerifySoftwareToken does not
record a step, and activating a new authenticator clears it.

Fixes #6804
2026-10-28 07:20:05 -04:00
Mohith ad2089e662 fix(bedrock-agentcore): check tag ARNs against the request account (#6802)
ListTagsForResource, TagResource and UntagResource compared the ARN's
account with the configured default account, while the create calls mint
ARNs with the request's account. Any caller outside the default account
was answered ResourceNotFoundException for its own resources.

Compare with the request account instead. An ARN naming another account
or region is still answered ResourceNotFoundException.

Closes #6008
2026-10-28 07:13:41 -04:00
Liron CohenandliRONCO11 548788840c feat(cloudfront): serve execute-api custom origins of this Floci in-process (#6754)
* feat(cloudfront): serve execute-api custom origins of this Floci in-process

A custom origin whose domain is an execute-api endpoint of an HTTP or
REST API in this Floci is now served through Floci's own listener, as
Lambda Web Function endpoints are, with the execute-api domain as Host.
Before, the origin went through DNS and the viewer got 502.

ApiGatewayExecuteApiHostFilter.routes() says whether the host filter
rewrites a host and path onto an API. A request that it does not route
(a WebSocket API, a disabled endpoint, a missing stage, another region)
answers 404 and never reaches Floci's other endpoints. Dot segments in
the forwarded path are resolved before that check. A forwarded viewer
Host answers 502. Every other origin is unchanged.

* refactor(cloudfront): share the execute-api routing decision with the host filter

ApiGatewayExecuteApiHostFilter.decide() returns the routing decision
without touching the request, with its lookups under the API owner's
account. filter() applies the decision and routes() reuses it, so the
two cannot drift.

This fixes two cases where routes() differed from filter(): an HTTP API
owned by another account than the viewer is now served through
CloudFront, and a REST API origin whose region label is not the API's
region now answers 404. The 404 body is one constant.

* refactor(apigateway): keep Optional out of the route decision record

RouteDecision stores the API owner as a nullable value, and the decision
helpers take it as a plain parameter. Optional stays the return type of
the owner lookup only, as AGENTS.md asks.

* refactor(cloudfront): name the ignored host parse failure and drop the Optional test field

---------

Co-authored-by: liRONCO11 <7966063+liRONCO11@users.noreply.github.com>
2026-10-28 07:12:47 -04:00
Aniket Shukla a636de20dc fix(backup): persist and manage backup plan tags (#6796) 2026-10-28 07:08:52 -04:00
Jimmy Liu Jia 7332c69c7d fix(cloudfront): return modeled UpdateFunction ETtag header (#6801) 2026-10-28 07:08:18 -04:00
Aniket Shukla da517acc65 fix(cognito): verify SRP proofs in custom authentication (#6794)
* fix(cognito): verify SRP proofs in custom authentication

* fix(cognito): include password-change challenge parameters
2026-10-28 07:07:12 -04:00
Jimmy Liu Jia 582dba6419 fix(cloudfront): retain distribution tags by ARN (#6797) 2026-10-28 07:05:00 -04:00
Andre Kurait 9fcf1683ee fix(ecs): reclaim anonymous task volumes (#6793)
* fix(ecs): reclaim anonymous task volumes

Opt ECS lifecycle cleanup into anonymous-volume removal while preserving named volumes, shared defaults, admission and retries. Retain actual Docker regression coverage.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(ecs): reclaim volumes after rejected task starts

Use the existing ephemeral lifecycle path for ordinary task containers so Docker start failures reclaim anonymous volumes before ECS records the container. Preserve named volumes and shared defaults, close fixture callbacks, and retain a real Docker rejected-entrypoint regression.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-28 07:02:11 -04:00
lex00 967e87d7f7 fix(iam): set iam: condition keys from a table generated from the Service Reference (#6762) 2026-10-28 07:00:43 -04:00
TATSUNO “Taz” Yasuhiro 0c549d267b fix(lambdaweb): refuse an Allow for a federated principal as public (#6789)
AWS blocks an Allow whose principal is Federated unless its values include "*" or a trusted condition pins the caller. It checks no pattern on Federated or CanonicalUser values.
2026-10-28 06:54:08 -04:00
Priamo Germosen 74a313a587 fix(codeartifact): block Archived version downloads on native per-format routes (#6782)
GetPackageVersionAsset already 404s an Archived or Disposed version's bytes,
but the native per-format passthroughs (Maven's GAV path, npm's tarball
route, pypi's filename route, nuget's content route) proxied straight to
their own sidecar with no awareness of that override, so a plain mvn/npm/
pip/nuget client could still download an Archived version's real bytes.

Disposed already self-resolves: DisposePackageVersions genuinely deletes the
sidecar's own bytes, so those routes already 404 for the real reason, nothing
to add there. Archived is the real gap, closed the same way for all four
formats via one new CodeArtifactService#requireContainerBackedVersionDownloadable
check, called right before each controller's own proxy:

- Maven and nuget already carry namespace/package/version as path params, so
  this is a direct call.
- npm's tarball GET has no version as its own path segment, only embedded in
  the filename; detected with the same `/-/` marker-splitting technique
  nativeUnpublishTarget already uses for its own `/-rev/` marker.
- pypi's download route is a bare filename with no package name or version
  anywhere in the URL at all, so the coordinate is resolved by matching the
  filename against this repository's own Archived/Disposed status overrides,
  the same way the upload-side guard already does. Whichever path put the file
  there (a native upload or CopyPackageVersions), a later status override is
  found the same way.
- npm resolves the requested tarball's real version against Verdaccio's own
  packument (dist.tarball), and only when the package has a status override
  at all.

Verified live against all four real sidecar containers (Reposilite,
Verdaccio, pypiserver, BaGetter): archive a version, confirm the download
404s while the real file is still present, then un-archive and confirm the
exact same bytes come back unchanged.
2026-10-27 23:42:20 -05:00
Priamo Germosen 897667f4e6 feat(emr): run command-runner.jar commands and script-runner.jar scripts (#6747)
In the docker runner mode a step that was not a Spark step failed
without running, so a cluster whose steps copy files with the AWS CLI,
run a shell or Python script, or call script-runner.jar could not run
its steps in Floci. Such steps now run in the same per-step container
of the release's EMR Serverless image, with the same credentials,
endpoint, logs and lifecycle as a Spark step, as the Release Guide's
"Run commands and scripts on an Amazon EMR cluster" describes them:

- command-runner.jar runs its arguments as a command, the first naming
  it, unless that is spark-submit (the Spark step, as before) or a tool
  the image does not have: hive-script, pig-script, hadoop-streaming,
  hadoop-lzo and s3-dist-cp still fail without running.
- script-runner.jar, by name (7.13 on) or by its
  s3://<region>.elasticmapreduce/libs/script-runner/script-runner.jar
  URI, fetches its script from S3 with the image's AWS CLI and the
  step's credentials, then runs it with the step's other arguments. A
  local script named without a path runs from the working directory
  when a file there has that name.

The image runs them as its hadoop user in /home/hadoop, with bash,
Python 3, Java, curl and AWS CLI v2, which reaches Floci through
AWS_ENDPOINT_URL. A spark-submit they start runs in local mode on
Floci's S3 with the cluster's spark-defaults: the image's
spark-defaults.conf names EMR Serverless's resource manager as its
master, which a system property cannot override, so the container
starts through a wrapper that copies the image's Spark configuration,
drops that master, and adds local mode, Floci's settings and the
cluster's spark-defaults, in a SPARK_CONF_DIR of its own, each setting
escaped for the Properties file Spark reads it as. A step's own --conf
still wins. A failed command reads "The step's command exited
with code N.".

SparkJobRunner.Job gets a command, run in place of spark-submit.
2026-10-27 23:41:56 -05:00
Jimmy Liu Jia ac42b3064e fix(ram): serialize resource share mutations (#6784) 2026-10-28 00:38:12 -04:00
Andre Kurait 2d3fb0ce87 fix(ecs): bound FireLens socket volume paths (#6787)
Bound the FireLens socket volume name while retaining full ownership labels and cleanup retries, and validate the inspected host path before creating containers.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-28 00:30:44 -04:00
Andre Kurait a46a2b32fd fix(lambda): honor platform-specific runtime image overrides (#6786)
Select runtime images with the effective Docker platform while preserving runtime-wide defaults, explicit platform precedence and code-volume helper platform.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-28 00:06:26 -04:00
Andre Kurait 80dbdbc0f8 fix(elb): default omitted classic listener instance protocols (#6785) 2026-10-27 23:55:13 -04:00
Vũ Thế Huy d3c4732b31 feat(cloudformation): provision Redshift event subscriptions (#6664)
* feat(redshift): support event history and SNS notifications

* fix(redshift): guard stale delivery failures and prune all event scopes

* feat(cloudformation): provision Redshift event subscriptions

* fix(redshift): scope snapshot events and serialize subscription tag mutations

* feat(cloudformation): provision Redshift event subscriptions

* fix(cloudformation): resolve Redshift subscription list parameters

Use the shared list reader for SourceIds and EventCategories. Cover CommaDelimitedList and List<String> parameters through the AWS SDK and verify concurrent tag requests preserve CloudFormation tag updates.

* fix(redshift): honor event disablement and restore rollback attributes

Check the EventBridge external service key before publishing API events. Snapshot and restore CloudFormation resource attributes alongside subscription state during in-place rollback.

* fix(redshift): drop API event publisher and share subscription setup

Remove RedshiftApiEventPublisher, its handler hook, tests and docs, which are not part of the CloudFormation resource and emit CloudTrail-style events without a trail. Route createSubscription and replaceSubscription through one helper that normalizes the subscription fields.
2026-10-27 23:28:52 -04:00
Andre Kurait 5c20d54646 fix(appconfig): reject ambiguous configuration names (#6783) 2026-10-27 23:17:05 -04:00
Andre Kurait b5033e970d fix(ec2): model scheduled capacity reservations (#6764)
* fix(ec2): reject unsupported future capacity reservations

Reject StartDate before capacity reservation creation or client-token replay. Preserve immediate reservation behavior.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(ec2): model scheduled capacity reservations

Retain future start and commitment metadata, activate through capacity reconciliation, and preserve client-token replay.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(ec2): preserve activation membership and replay tags

Reuse open-reservation instance matching during activation, persist creation tag identity, and keep replay from overwriting later tag edits.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(ec2): validate future reservation matching and capacity

Require targeted matching, supported instance families and at least 32 vCPUs before future reservation publication. Preserve scheduling, tag replay and immediate reservation behavior.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-27 23:15:52 -04:00
TATSUNO “Taz” Yasuhiro 3649b18e15 fix(dynamodb): wait for unfinished writes in full exports and point-in-time restores (#6781) 2026-10-27 23:08:11 -04:00
Vũ Thế Huy 5bd4bd481a feat(redshift): publish CloudWatch cluster metrics (#6740)
* feat(redshift): publish CloudWatch cluster metrics

* fix(redshift): skip duplicate CloudWatch publication minutes

* test(redshift): isolate metrics publisher between integration tests

* fix(test): use Java 17 list access in Redshift metrics compatibility test

* fix(metrics): share minute publishing and prevent duplicate SQS samples

Centralize daemon scheduling, minute claims, per-target failures, retention and shutdown for SQS and Redshift. Carry the Redshift proxy key in metric targets and use the shared compatibility await fixture.

* docs(metrics): restore publisher class docs after the shared publisher move

Keep the SQS sample shape on SqsMetricsPublisher and document minute stamping, 15-day retention and the nothing-may-escape rule on MinuteMetricsPublisher.
2026-10-27 22:03:23 -04:00
Andre Kurait f4ace9ebbe fix(appconfig): return no content for cached configurations (#6777) 2026-10-27 22:00:37 -04:00
TATSUNO “Taz” Yasuhiro 701b04c410 feat(lambdaweb): reject resource policies whose principal does not exist (#6769)
* feat(lambdaweb): reject resource policies whose principal does not exist

PutResourcePolicy now looks up every AWS principal a policy names, as Lambda
does before it stores the policy. A role or user ARN has to name one IAM
holds in that account, under its own path, and a unique id one in the
function's account. A missing principal, an assumed-role session, a
CanonicalUser or an ARN in another partition gets the invalid principal
message, and a role or user named under another path gets the message
that the ARN does not match the actual one.

The principals are looked up after every statement passes its other
checks and before any statement is refused as public, which is the order
AWS checks them in.

* docs(lambdaweb): drop the principal check from the items not implemented yet

* refactor(lambdaweb): find policy principals through IamService and the resolver's partition

IamService.heldPrincipalArn now gives the ARN IAM holds what a principal
ARN names under, the root as given or the role or user at its own path.
DSQL's principal check and Lambda Web's use it, and Lambda Web keeps only
the path comparison and its messages. Lambda Web takes the partition from
RegionResolver.partitionForRegion, so a custom region falls back to the
deployment's partition.
2026-10-27 22:00:28 -04:00
Jackson Price a6cf29ea86 fix(cloudformation): copy a SAM function's VersionDescription to its version (#6770)
With AutoPublishAlias, SAM passes a function's VersionDescription to the
Description of the AWS::Lambda::Version it generates. The transform
dropped it, so a version published from a SAM template never had the
description the template gave it.

The version now takes it as written, leaving an intrinsic function for
CloudFormation to resolve. As in SAM, it stays out of the hash that
names the version, and Globals cannot set it: the transform refuses it
there, as it already refuses AutoPublishCodeSha256.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-27 19:13:02 -04:00
Andre Kurait 1a5decbb4a fix(ec2): honor default subnet filters (#6772)
Handle both documented default-subnet filter aliases and preserve safe asynchronous ENI cleanup.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-27 19:09:11 -04:00
Liron Cohen 4fffb5a8c1 feat(apigatewayv2): route VPC link integrations to Cloud Map service instances (#6753) 2026-10-27 19:06:02 -04:00
Jimmy Liu Jia a8151ff56b fix(stepfunctions): paginate ListExecutions (#6727)
* fix(stepfunctions): paginate ListExecutions

Honor maxResults and nextToken after applying statusFilter, with newest-first scoped cursors. Add regression coverage for continuation pages and token isolation.

* fix(stepfunctions): snapshot ListExecutions status

* fix(stepfunctions): order terminal executions by stop time

* fix(stepfunctions): expire signed ListExecutions tokens

* fix(stepfunctions): compact ListExecutions continuation scope

* fix(stepfunctions): reuse expiring history pagination

* fix(stepfunctions): validate history token before execution lookup
2026-10-27 19:05:29 -04:00
Liron CohenandliRONCO11 41717057c5 refactor(apigateway): decide execute-api host routing before applying it (#6763)
* refactor(apigateway): decide execute-api host routing before applying it

ApiGatewayExecuteApiHostFilter.decide() returns a RouteDecision for a
host and path without touching the request. filter() applies it:
account and region of the API owner, the REST or HTTP API rewrite, or
the 404 for a disabled endpoint. The lookups for an API with an owner
run under the owner's account, and the caller's account and region are
restored afterwards. No change in behavior for execute-api requests.

* test(apigateway): give the API owner its own region in the restore tests

The owner and the caller used the same region, so the tests passed even
if underAccountOf() did not restore the caller's region. The owner now
uses eu-west-1, and each restore test asserts the caller's region.

---------

Co-authored-by: liRONCO11 <7966063+liRONCO11@users.noreply.github.com>
2026-10-27 19:04:45 -04:00
Jimmy Liu Jia 4bf399b5a1 fix(sagemaker): honor list sorting options (#6745) 2026-10-27 18:53:54 -04:00
TATSUNO “Taz” Yasuhiro 3370d0ff62 chore(style): remove var and inline qualified names from more files no open PR touches (#6768)
Each var now names the type javac inferred for it, and each fully qualified type name is
imported instead. The suppression list keeps only the files that open pull requests edit.
2026-10-27 17:53:15 -05:00
Priamo Germosen 32cbf73adc fix(eventbridge): answer PutEvents to a missing event bus as AWS does (#6748)
A PutEvents entry naming an event bus that does not exist failed with
InvalidArgument "EventBus not found" and counted in FailedEntryCount.
The EventBridge User Guide, on handling PutEvents failures: "If you use
PutEvents to publish an event to an event bus that does not exist,
EventBridge event matching will not find a corresponding rule and will
drop the event. Although EventBridge will send a 200 response, it will
not fail the request or include the event in the FailedEntryCount value
of the request response." botocore models no not-found error for
PutEvents, only InternalException, and the API Reference lists none.

Such an entry is now answered as published, with an event id and not
counted as failed, and dropped: it reaches no rule and no archive.
Floci logs the drop at INFO. An entry that is not valid, missing a
required field or with a Detail that is no JSON object, still fails as
before, whichever bus it names.

Only the PutEvents action changes. Floci's own deliveries to a bus, for
a rule's event bus target, a pipe, a schedule, a Lambda destination or
a replay, still fail an entry for a bus that does not exist: the
guide's sentence is about the action, and no document says how AWS
answers those deliveries.

Step Functions' optimized events:putEvents integration calls the
action, so a task publishing to a missing bus no longer fails with
EventBridge.FailedEntry; step-functions.md listed that as a deviation,
which is gone. Its two tests that used a missing bus to have an entry
rejected now leave out the entry's Source instead, and a third checks
that a task publishing to a missing bus succeeds.
2026-10-27 17:34:34 -05:00
Andre Kurait b6d9e4c7a4 feat(lambda): list provisioned concurrency configurations (#6758)
* feat(lambda): list provisioned concurrency configurations

Dispatch List=ALL to a paginated view of existing provisioned concurrency allocations. Preserve qualified ARNs, current status and existing pool lifecycle.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(lambda): share function ARN region resolution

Share the existing Lambda region validation and error message across function resolution and provisioned-concurrency lookup/listing.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-27 18:13:24 -04:00
Aniket Shukla c37e0aaba9 fix(ecr): explain unavailable registry responses (#6752)
* fix(ecr): explain unavailable registry responses

* refactor(ecr): share registry errors and data-plane fixtures
2026-10-27 18:13:10 -04:00
Jackson Price c2482e2844 fix(appconfig): list deployments with the settings they started with (#6759)
ListDeployments built each deployment's summary from the deployment
strategy as it is now: once a strategy that one of an environment's
deployments used was deleted, ListDeployments on that environment
answered 404 "Deployment strategy not found", while GetDeployment
still returned the deployment. The summary also took the profile's
current name over the one the deployment recorded. AWS documents these
values as the deployment's own (GetDeployment's
DeploymentDurationInMinutes is "Total amount of time the deployment
lasted"), and DeleteDeploymentStrategy, unlike DeleteEnvironment and
DeleteConfigurationProfile, has no ConflictException for a resource
in use.

- StartDeployment records the strategy's DeploymentDurationInMinutes,
  FinalBakeTimeInMinutes, GrowthFactor and GrowthType on the
  deployment, and StartDeployment and GetDeployment return them, as
  AWS documents for both.
- ListDeployments reports the recorded profile name and strategy
  settings, so deleting the strategy leaves earlier deployments as
  they started. Floci serves no UpdateDeploymentStrategy or
  UpdateConfigurationProfile yet; the recorded values also keep
  earlier deployments as they were once anything changes a strategy
  or renames a profile in place.
- Deployments stored by earlier builds load unchanged: GetDeployment
  still omits the settings they never recorded, and ListDeployments
  reads them from the strategy while it exists and reports them as
  null once it is gone, instead of failing.

Type is unchanged: it is still read from the profile.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-27 16:44:29 -04:00
Andre Kurait 0332b5cc24 fix(lambda): preserve alias identity in qualified reads (#6757)
Preserve the requested alias ARN while returning the resolved published version configuration. Retain snapshot-versus-latest regressions for both read APIs.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-27 16:24:36 -04:00
Jackson Price 65df465fc3 fix(ec2): create the EBS volumes a launch's block device mappings describe (#6734)
* fix(ec2): create the EBS volumes a launch's block device mappings describe

RunInstances gave every instance one 8 GiB root at /dev/xvda and took
only the root's VolumeType from its block device mappings. Launches now
plan their volumes before anything is stored: the AMI's mappings, or an
8 GiB root when it maps none, with the launch's own entries merged over
them field by field, under either spelling of a device. The instance is
rooted at the AMI's RootDeviceName. NoDevice removes an AMI device and a
VirtualName entry takes one over, never the root. Snapshot sizes apply,
a smaller size, a missing snapshot, a missing or invalid device name and
a device named twice are refused with nothing stored, and IOPS and
throughput are kept only for the types that take them.

DescribeInstances lists every attached volume with its own state and
DeleteOnTermination, and termination treats the root like any other
volume. Volume reads settle attachments to an instance that ended
terminated without TerminateInstances, as a failed container launch does.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* fix(ec2): delete every volume of a launch that is rolled back

A launch undone after its instances were stored, an instant CreateFleet
whose later launch fails or a RunInstances whose capacity reservation
was taken in the meantime, terminated its instances. Termination keeps
the volumes whose DeleteOnTermination is false, so the refused launch
left them behind as available.

Each launch now records the volumes it creates on its reservation, and
the rollback deletes those termination left unattached. The ids do not
depend on attachments, which a read can end first when a failed
container's volumes are settled. DeleteOnTermination is never changed,
so an instance whose termination fails keeps its volumes as they were,
and a volume attached to another instance since stays.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* fix(ec2): size a snapshot-only root from its snapshot

For an AMI that maps no root device, the launch gave the root a fallback
8 GiB size before merging the launch's own entries, so a root entry
naming only Ebs.SnapshotId kept that size and a larger snapshot was
refused with InvalidBlockDeviceMapping. The fallback size now applies
only after the merge, when the root names neither a size nor a
snapshot.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* perf(ec2): read volume attachments once per DescribeInstances

Listing an instance's block device mapping scanned the whole volume
store, once for every instance in a RunInstances or DescribeInstances
response. The attachments of all the response's instances are now
gathered in one scan per region and looked up per instance.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-27 16:13:37 -04:00
Aniket Shukla ecb39dd7e0 fix(backup): paginate backup plan listings (#6714)
* fix(backup): paginate backup plan listings

* test(backup): share SDK clients and seed large fixtures locally
2026-10-27 15:52:32 -04:00
jwoa95 9303ec2872 fix(cloudtrail): isolate account buffers and partition matching (#6689)
* fix(cloudtrail): isolate account buffers and partition matching

* fix(cloudtrail): honor deployment partitions and cover region deletion

* refactor(cloudtrail): share account delivery test helpers
2026-10-27 15:49:38 -04:00
Andre Kurait 196ae07aa8 fix(lambda): preserve Kubernetes bootstrap paths (#6585) 2026-10-27 15:47:30 -04:00
Kenshin Okinaka 24d989cb07 refactor(ses): build not-null violations with SmithyValidationErrors (#6746)
The "Value at '<path>' failed to satisfy constraint: Member must not be
null" violation was still written by hand in 26 places across the SES
services and controllers. They now call
SmithyValidationErrors.notNullWithoutValue(path), keeping each site's
badRequest or validationError factory.

The length checks on websiteURL, additionalContactEmailAddresses and
certificateArn, which tested a lower and an upper bound side by side,
now go through SmithyValidationErrors.sizeOutOfRange.

The message text is unchanged, and the private wrappers stay because
their enum and other constraint callers still use them.
2026-10-27 12:03:18 -04:00
Kenshin Okinaka afdd4b46ec fix(ses): answer invalid v1 bulk destination entries on their own (#6742)
SendBulkTemplatedEmail rejected the whole call for an entry with more
than 50 recipients, for template data that is not a JSON object, and
for a tag with an empty name. AWS answers each of these with a 200 and
that entry's InvalidParameterValue ("Recipient count exceeds 50.",
"The template data is invalid", "The tag name must be specified."),
while the other entries still send. DefaultTemplateData that is not a
JSON object, or a DefaultTags tag with an empty name, fails every
entry. Within one entry an address syntax error wins over an empty tag
name, which wins over invalid template data, which wins over the
recipient count.

A DefaultTags or ReplacementTags tag without a Name or a Value is a
model violation, and a skipped tag index is a tag with neither, listed
in the 400 ValidationError after the top-level members. A missing or
empty DefaultTemplateData is a 400 InvalidParameterValue, "The default
template data does not exist".

The handler marks such an entry with its message, and the send answers
it in the per-entry loop after the address syntax. The recipient limit
stays in the service: per entry for v1, whole call for v2 SendBulkEmail,
which was not probed.
2026-10-27 11:43:25 -04:00
TATSUNO “Taz” Yasuhiro 33e74f7728 chore(style): remove var and inline qualified names from files no open PR touches (#6710)
* chore(style): remove var and inline qualified names from files no open PR touches

Each var now names the type javac inferred for it, and each fully qualified type name is
imported instead. The suppression list keeps only the files that open pull requests edit.

* chore(style): catch qualified names before a member, a nested type or .class, and on annotations

UnnecessaryFullyQualifiedType does not report those. A MatchXpath rule under the same id now
does, with the same exemption for a simple name that another type in the file uses. The files
no open PR touches import them instead.
2026-10-27 11:38:32 -04:00
Vũ Thế Huy 3d30bbcf7a feat(redshift): add event subscriptions with SNS delivery (#6705)
* feat(redshift): add event subscriptions with SNS delivery

Add Create, Modify, Delete and DescribeEventSubscriptions, subscription tagging, and publication of matching events to the subscription's SNS topic, honouring the topic policy.

* fix(redshift): deliver events from a consistent subscription snapshot and reject nameless subscription ARNs

Delivery copied no state under the lock modifySubscription holds, so a concurrent
update could change the topic between matching and publishing. Match and publish
from a snapshot taken under that lock.

A tag ARN ending in eventsubscription: passed an empty name to
describeSubscriptions, which lists all subscriptions. Reject it up front.
2026-10-27 11:34:38 -04:00
Liron CohenandliRONCO11 c538fb5520 feat(cloudfront): model AWS managed cache policies (#6698)
* feat(cloudfront): model AWS managed cache policies

Serve the 7 AWS managed cache policies that AWS documents with full
settings through GetCachePolicy, GetCachePolicyConfig and
ListCachePolicies, by their AWS IDs. ListCachePolicies honors
Type=managed|custom. UpdateCachePolicy and DeleteCachePolicy refuse a
managed policy with IllegalUpdate and IllegalDelete, as for managed
origin request policies. A cache behavior that references a managed
policy now forwards what that policy selects.

The 4 Amplify-only policies are not modeled: AWS publishes their IDs
but not their settings.

Closes #6691

* refactor(cloudfront): share the policy list merge and the managed ETag

listCachePolicies, listOriginRequestPolicies and listResponseHeadersPolicies
now call one helper for the Type check, the merge of custom and managed
policies, and the sort by name. Each method keeps its own paging, so the
response headers list still rejects an unknown marker.

The managed policy ETag is one constant beside the managed policy maps.

---------

Co-authored-by: liRONCO11 <7966063+liRONCO11@users.noreply.github.com>
2026-10-27 11:34:06 -04:00
jwoa95 3890378728 fix(elasticache): enforce user permissions in backend ACL sessions (#6608)
* fix(elasticache): enforce user permissions in backend ACL sessions

* fix(elasticache): block replication commands for ACL users

* fix(elasticache): deny persistence and migration commands
2026-10-27 10:36:05 -04:00
Andre Kurait d58ce5c31c fix(cloudformation): validate prefix list entries before update diffing (#6725) 2026-10-27 10:33:15 -04:00