* fix(lambda): accept layer ARNs when deleting versions
* test(lambda): share layer publication cleanup
* test(iam): include layer deletion in the resource inventory
* fix(lambda): read Lambda's IAM resources whole from the generated table
With Floci in a container and the MWAA proxy range published on that
container (`8760-8769` in compose), every CreateEnvironment ended
CREATE_FAILED with "No free port available in range". The allocator
counts every host port any container publishes as taken, Floci's own
included, but the proxy listens inside Floci's container, so a port
Floci's container publishes is its way in, not a conflict.
PortAllocator gains allocateForInProcessListener: inside a container it
decides on the bind probe in Floci's own namespace alone, and outside
one it is allocate. The MWAA proxy allocates its port with it.
16f-UPSTREAM-REPO (#8261) gave every container-backed format its own
repository-to-repository upstream importer except cargo, since cargo didn't
exist yet when that PR merged. Adds cargo's own share of it.
CodeArtifactCargoUpstreamRepositoryImporter mirrors
CodeArtifactNuGetUpstreamRepositoryImporter's own claim/fence/walk shell
(transitive search via resolveUpstreamSearchOrder, Archived/Disposed
propagation, falling through to UpstreamExternalConnectionFetch for the last
leg through a candidate's own external connection), reusing
CodeArtifactCargoExternalConnectionImporter's own index-line/wire-body helpers
directly rather than duplicating the index-shape to publish-shape mapping a
second time.
The one new piece: mergeUpstreamRepositoryVersions, a real multi-version
sparse-index merge across the whole upstream chain, the same reason
mergeExternalVersions exists for the external-connection side. Unlike pypi's
own single-target additionalInternalFilenames, this walks every reachable
upstream candidate in search order rather than stopping at the first one with
anything to offer, since it is merging real version lines across however many
hops the chain has; each candidate's own external connection, if it has one,
is layered in too via a direct mergeExternalVersions call with that candidate
as the repository argument.
Wired into CodeArtifactCargoController's existing two call sites, matching
every sibling controller's own "external connection or upstreams, never both"
shape. A live Docker integration test proves the real synthesized wire body
this importer builds from one Kellnr container's own sparse-index line is
accepted by a second, genuinely different Kellnr container, not just
internally consistent against mocks.
RunJobFlow kept the SecurityConfiguration it was given, but
DescribeCluster never wrote it out, so the cluster came back with
none, although the model's Cluster has the member. It is given back
now.
RunJobFlow also took a security configuration that was never created.
A cluster names one CreateSecurityConfiguration made, so one that does
not exist is now refused with ValidationException "Security
configuration does not exist: <name>". No source gives AWS's answer,
so the code is the one RunJobFlow refuses its other input with in
Floci, and the wording that of DescribeSecurityConfiguration and
DeleteSecurityConfiguration; emr.md says so.
ListFunctionUrlConfigs answers GET /2021-10-31/functions/{FunctionName}/urls,
which returned 404 before. It returns the stored URL configurations of the
unpublished function and its aliases, with signed markers scoped to the
function, account and Region, and refuses GovCloud and China like the other
URL operations. MaxItems and the marker go through LambdaPagination, and a
missing or foreign function answers Function not found.
The URL, S3 code and permission tests share one Node.js ZIP builder,
LambdaCodeFixtures.nodeJsZip.
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
A Redshift cluster is Regional, but Floci found clusters by identifier
alone, so DescribeClusters in one Region listed a cluster created in
another, and that Region could modify, pause, reboot, snapshot or delete
it. Every call naming a cluster now finds it only in the Region it was
created in, through regionalCluster, and answers ClusterNotFound
elsewhere; DescribeClusters and DescribeTags list only the request
Region's clusters. A managed password rotation refuses changes only in
its cluster's Region, so it is not seen from another.
Work done outside a request, such as snapshot copies, zero-ETL, Firehose
delivery and metrics, still finds a cluster in any Region, and a cluster
identifier stays unique across the account, as the CreateCluster
reference documents.
Part of #8218
CreateWebLoginToken returned a token nothing accepted: the proxy had no
/aws_mwaa/login, so a client following Amazon MWAA's REST API guide got
a 404, and with Airflow's session-only API auth every /api/v1 call then
answered 403.
Web login tokens are now kept per environment for the 60 seconds AWS
documents. The proxy intercepts POST /aws_mwaa/login: a valid token in
the `token` form field signs in through Airflow's own login form (CSRF
token and anonymous session from GET /login/, then the admin
credentials Floci generated) and answers 302 to /home with Airflow's
session cookie, which the UI and /api/v1 accept. An unknown or expired
token gets 401.
With floci.tls.enabled, WebserverUrl already named an https endpoint
while the proxy only spoke HTTP; the proxies now serve TLS with Floci's
server certificate and follow its reissues, so a client that builds
https://{WebServerHostname} reaches them.
Athena queries go straight to DuckDB, which has no json_extract_scalar,
json_parse or json_format and cannot parse Trino's ARRAY<T> type
syntax, so `json_extract_scalar(col, '$.a')` and
`CAST(json_parse(col) AS ARRAY<JSON>)` both failed.
Every query now gets DuckDB macros for json_extract_scalar (a scalar as
text, NULL for an object, array, JSON null or missing path, as Trino),
json_parse, json_format, json_size and is_json_scalar, with Trino's
bracketed path members accepted. CAST and TRY_CAST target types are
rewritten to DuckDB's syntax: ARRAY<T> and ARRAY(T) to T[], MAP<K, V> to
MAP(K, V), ROW(...) to STRUCT(...). JSON result columns are reported as
json and unsigned counts as bigint, as Athena types them.
A statement's Effect was compared without regard to case, so "Effect":"allow"
granted and "Effect":"deny" overrode an allow, on a document no write of this
package would have stored: the write validator holds that element to the two
words the language defines, compared literally. The guide is explicit about the
element, "The Effect value is case sensitive", so the two words are the words
themselves here too, and a statement that spells one of them another way states
nothing, which is how an absent effect and one that is no string are already
read. The two service-reachability readers ask the statement for its effect
rather than spelling the word a third time, and denyStatementsOf, the one other
reader of the element in this package, collects a Deny written as Deny.
The principal half is an element that names nobody. A Principal or NotPrincipal
written as a string or a list came to a map carrying whatever the list named, an
empty one included, where the typed spelling already dropped a type whose
entries named nobody. It tells on NotPrincipal, the element whose statement
covers every caller it does not name: "NotPrincipal": [], or a list whose only
entry is no string, spared nobody and so covered everyone the statement
otherwise covered, an Allow written that way granting to any caller there is.
Each entry is written as a <principal_id_string>, so an element whose entries
are no strings names nobody, and a statement whose principal element names
nobody matches no caller now, which is how a NotAction or NotResource naming
nothing already leaves a statement matching neither. An element that is written
and names nobody is still the element the statement carries, so a statement
carrying both of them is decided by its Principal either way, that being the one
the grammar gives precedence, rather than by the NotPrincipal beside it.
S3 reads the same two elements in a pass of its own, the one that decides an
unsigned request, and it read both the old way: an effect without regard to
case, and any NotPrincipal that was there at all as an exclusion. Its readers
take the effect through one place that compares the words as written now, and a
NotPrincipal has to name somebody before it carves anybody out, so one bucket
policy answers a signed request and an anonymous one alike.
The Block Public Access status keeps the old question, and on purpose. It asks
what a policy could grant rather than whom a statement covers: S3 "begins by
assuming that the policy is public" and calls it non-public only when it grants
"only to fixed values" of a principal or of one of the recognised condition
keys. A NotPrincipal pins no principal to a fixed value whether it names
anybody or not, so a statement written that way leaves the policy public there
while granting nobody anything in the readers that decide a request. The effect
is the one element that reads alike everywhere, the guide's case rule being
about the element itself.
Every half reads a document already stored or supplied rather than checking one
being written: no code and no status moves, and nothing is refused that was not
refused before. A Deny whose NotPrincipal names nobody denies nobody for the
same reason an Allow written that way grants nobody, which is this emulator's
own reading of an element AWS leaves undefined.
EventBridge Scheduler was built by hand in ResourceArnBuilder. It now moves
out of HAND_BUILT into NAMESPACES, so every operation's resources come from
iam-request-resources.json, and the hand builder and the enforcement filter's
routing to it are gone.
A schedule a request names with no group is in the default group, as
botocore documents GroupName: "If you omit this, the default schedule group
is used" (CreateSchedule, DeleteSchedule), and "EventBridge Scheduler
assumes that the schedule is associated with the default group"
(GetSchedule, UpdateSchedule). The rule that reads ECS's "If you do not
specify a cluster, the default cluster is assumed" now reads this phrasing
too, and SchedulerService answers the default group's ARN, reading only. A
resource already chosen by whether its member names the default (an
EventBridge rule on the default bus or on another) takes no default of its
own, so EventBridge's entries stay as they are.
Tagging is checked on the group Scheduler's modeled /tags/{ResourceArn}
carries, the only tagging route AWS gives it. The shared tags controller
now serves a namespace the generated table reads whole only on the routes
its model gives: the bare /tags, or an ARN whose slash is not encoded, is
refused for Scheduler, EMR Serverless, GuardDuty and Security Hub with the
controller's existing "Invalid resource ARN", and tags nothing, rather than
being checked on * where a Deny on the resource would not apply.
* feat(stepfunctions): evaluate the execution role on the remaining task integrations
* fix(stepfunctions): check a Secrets Manager task from the generated request resources
ModifyRule stored a rule's new actions but left the target groups' links
to the load balancer as they were: the group the rule moved to did not
list the load balancer, and the one it left still did, so
DeleteTargetGroup refused it with ResourceInUse although nothing routed
to it. ModifyRule now links the groups its new actions forward to and
unlinks the ones nothing routes to any more, as ModifyListener does.
CreateRule, ModifyRule and DeleteRule now change a rule and its links
while holding the load balancer, as listener changes do, so one rule
change can no longer drop the link of a group another rule still
forwards to. underLoadBalancerLock and loadBalancerOf replace the inline
copies in DeleteListener and RestoreListener, and the ModifyRule
integration test builds its resources with AlbFixtures.
A step's script that ran sudo -u hadoop spark-submit ..., as a step
does on EMR, failed with exit code 127, as the image steps run in has
no sudo. The Release Guide's "Using HBase snapshots" runs a
command-runner.jar step of sudo -u hbase, and the Management Guide's
Kerberos users page a script-runner.jar script running sudo
kadmin.local. Only bootstrap actions had Floci's sudo, which went
before the image was kept.
Each step on a cluster now finds that same sudo first on its PATH,
written next to the hdfs and hadoop-streaming stand-ins the cluster's
Hadoop setup already writes there, and a Hive step's shell commands
find it too, written while its container is still root. It drops its
options, a long one's value given apart included, and runs the command
as the step's own hadoop user, so sudo -u hadoop runs as on EMR, while
a command that needs root fails as it would for hadoop. The script
moves to EmrServerlessSparkRunner, where the setup is, and the
bootstrap actions write it from there.
IMDS answered /latest/meta-data/placement/availability-zone but not
availability-zone-id, which AWS serves and scripts read to pick
zone-specific resources. It now returns the zone's ID, the same one
DescribeSubnets and DescribeAvailabilityZones report for that zone.
GetTable and GetTableMetadataLocation never returned warehouseLocation,
which the S3 Tables model marks required, so Spark's S3TablesCatalog
had nowhere to write: CREATE TABLE failed with "Invalid S3 URI, cannot
determine scheme: null/metadata/00000-...metadata.json".
CreateTable now creates the table's warehouse, a bucket of its own named
like AWS's (<uuid>--table-s3), and both responses report it; a table
persisted before this gets one the first time it is read. An Iceberg
client writes the table's files there and commits with
UpdateTableMetadataLocation, which already existed. DeleteTable deletes
the warehouse with its contents, as deleting an S3 Tables table deletes
its data. GetTable also reports the required createdBy and modifiedBy.
Seven Redshift integration tests carried their own copy of the JDBC
connection poll beside RedshiftConnections. They now call
RedshiftConnections.waitForConnection, so the poll and its final unguarded
attempt, which surfaces the driver's original error, live once.
RedshiftInterceptorIamRoleEnforcedIntegrationTest keeps only the helpers
that build its preferQueryMode URLs, and the four loops
RedshiftSpectrumIntegrationTest inlined are gone too.
Athena runs Hive DDL against the Glue Data Catalog, but Floci sent every
statement other than CREATE DATABASE to DuckDB: CREATE EXTERNAL TABLE,
ALTER TABLE ADD PARTITION, MSCK REPAIR TABLE and SHOW PARTITIONS failed
to parse, and DROP TABLE succeeded without touching Glue.
AthenaHiveDdl parses CREATE EXTERNAL TABLE (columns, PARTITIONED BY,
CLUSTERED BY, ROW FORMAT DELIMITED or SERDE, STORED AS, LOCATION,
TBLPROPERTIES, with the SerDe parameters and input/output formats Hive
stores), DROP TABLE, ALTER TABLE ADD/DROP PARTITION, MSCK REPAIR TABLE
and SHOW PARTITIONS; AthenaHiveDdlExecutor applies them to Glue as
Athena does: DROP TABLE keeps the data, MSCK only adds Hive-style
partitions, IF [NOT] EXISTS turns duplicates and misses into no-ops,
and SHOW PARTITIONS writes its rows as the query's result. A CREATE
TABLE without EXTERNAL fails unless it is Iceberg or CREATE TABLE AS,
which still go to the query engine. Mock mode keeps DDL result rows.
With Floci in a container and no bootstrap hostname configured,
GetBootstrapBrokers returned the broker container's IP, a bare address
where AWS returns broker hostnames. The broker's internal listener
already advertises <container-name>:9092, so a client that bootstrapped
from the IP was handed that name by the first Metadata response anyway.
GetBootstrapBrokers now returns <container-name>:9092.
RunInstances already refused an AMI whose architecture the instance type
cannot run, as AWS does, but said "The architecture 'x86_64' of the
specified image does not match the architecture supported by instance
type 'm6g.large'.". AWS names the instance type's architecture first:
"The architecture 'arm64' of the specified instance type does not match
the architecture 'x86_64' of the specified AMI."
Deferrable tasks stayed deferred forever: the Airflow container ran only
the scheduler and the webserver. The bootstrap now runs `airflow
triggerer` beside the scheduler in a restart loop, as MWAA runs one for
Airflow 2.2 and later, and an environment is only AVAILABLE once
/health reports the triggerer healthy.
requirements.txt was never installed. It was installed by a docker exec
of `pip` after the container started, and in the apache/airflow image
`pip` resolves to /root/bin/pip, which the airflow user cannot read, so
the exec exited 126; the exec was also cut off after 30 seconds. The
file is now fetched at CreateEnvironment and installed by the container
bootstrap after the startup script and before Airflow starts, the order
AWS documents. One install script serves the bootstrap and the DAG-sync
reinstall: it sources the environment saved after the startup script,
runs `timeout 900 python -m pip install`, and records pip's exit code.
The first DAG-sync pass reinstalls only when that bootstrap install
failed. Reinstalls run on their own pool, one at a time per
environment, so a slow pip no longer holds up the DAG sync. Only a
missing requirements object leaves CreateEnvironment going; other S3
errors fail it, as they do for the startup script.
A cluster's release image is named after the ids of the two images it
is made of, so a newer pull of either makes another, and the older one
stayed on the Docker daemon for good. Each release image is now
labelled with its kind: its release, the names of the two images and
what is copied. Once Floci makes a newer image of a kind, it removes the
others of that kind, without force, so one a container still uses stays
until the next newer one. Another kind (with or without Hive, or other
image names) is never touched, and an image made before the label is
left as it is.
Images of one kind are made one at a time, the two names resolved to
ids under that kind's lock, so one made of the older images never comes
after the newer one to remove it. A step or a bootstrap holds the image
it was given until it ends, as it may have no container of it yet, and
a held image is not removed either. A failure to remove one is logged
with its exception; the new image is there, so it fails nothing.
The default supported-versions list held 2.10.5, 2.9.3 and 2.8.4, none
of which real MWAA offers, so a CreateEnvironment with an AirflowVersion
AWS accepts (2.9.2, 2.10.3, 2.11.0 and the rest) failed validation.
Add 2.7.2, 2.8.1, 2.9.2, 2.10.1, 2.10.3, 2.11.0 and 2.11.2 to the
default list and keep the three versions Floci already offered. With
2.7.2 offered, the CLI proxy refuses "providers notifications" below
Airflow 2.8, as AWS's CLI reference lists it from v2.8 only.
SignUp and ResendConfirmationCode use EmailMessageByLink and
EmailSubjectByLink when DefaultEmailOption is CONFIRM_WITH_LINK, and
replace {##link text##} with a link to /cognito-idp/confirmUser, or to
/confirmUser on a custom domain. Opening the link confirms the user.
Password reset, attribute verification, sign-in codes and SMS stay on
the code template.
The link is built only when that email places it in the body, so code
and SMS deliveries never scan the stored domains. A shared-host
confirmUser request carries no AWS credential, so it confirms in the
account that owns the client id, while a custom domain keeps the
account it pins.
Cognito HTML escaping goes through one helper, CognitoHtml, and the
tests read another account's SES mail through SesMailbox, signed with
EnforcementFixtures.auth.
Closes#5662
* chore(redshift): let the audit log publisher work on a target instead of a cluster
* fix(redshift): contain audit target construction failures in the cluster publish overloads
EnableAlarmActions and DisableAlarmActions now work over the Query and
JSON APIs. They change only whether an alarm's actions run, keeping its
state and configuration. AlarmNames is required, up to 100 names of 1 to
255 characters, and the whole list is validated before any alarm
changes. The evaluator reads the alarm's current setting before it
dispatches, so a disabled alarm sends nothing.
SDK, validation, notification and IAM tests cover both operations, and
the alarm action, composite alarm, DescribeAlarms filter and alarm
history tests share CloudWatchTestRequests for their Query and JSON
requests.
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
UpdateOriginAccessControl was routed without the /config suffix, so the
SDK's PUT /2020-05-31/origin-access-control/{Id}/config answered 405
before reaching configuration validation. It now takes that route,
authorized through the generated CloudFront metadata.
SDK and IAM integration tests cover the configuration readback, a missing
If-Match, a scoped grant and another control's denial, encoded
identifiers and misleading action hints, and share
CloudFrontOriginAccessControlFixtures for the configuration and the
ETag-aware delete.
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Add RestoreTableFromClusterSnapshot and DescribeTableRestoreStatus for
provisioned clusters, and RestoreTableFromSnapshot, GetTableRestoreStatus
and ListTableRestoreStatus for Redshift Serverless. The table's CREATE TABLE
statement and rows are lifted out of the snapshot dump, renamed, and
replayed in one transaction. The restore runs inside the request, so a
described request is already SUCCEEDED or FAILED.
The name checks, script, pending copy, replay and status of a table restore
live once in RedshiftTableRestorer, and both services keep only their
lookups and storage. ListTableRestoreStatus answers a bad nextToken with
InvalidPaginationException. A Docker backed integration test writes rows,
snapshots, restores under a new name and reads them back, connecting through
RedshiftConnections, and the Redshift compatibility tests share one
TestFixtures.awaitRedshiftConnection.
Closes#7806
From release 7.11.0 a BATCH run's executionTimeoutMinutes is 1 to 10080,
"from this release onwards" as its release notes say, but Floci only
read emr-x.y labels, so an application on the AWS runtime for Apache
Spark (emr-spark-8.0.0 and on, emr-spark-8.0-preview) took 0 and
anything up to 1,000,000. The release list puts those releases after
EMR Serverless 7.14.0, so their BATCH runs are now held to the same
1 to 10080 minutes; a STREAMING run keeps 0 as no timeout.
The values a statement's resource elements name were gathered from the entries
that were already text, so "Resource": 123 and "Resource": [123] were stored
while "Resource": "123" was refused with Resource 123 must be in ARN format or
"*". One text, two answers, depending on whether it was written in quotes. A
value that is no string names the text of that value now, which is how the
Version and the Effect are already read, so both spellings of the same text are
refused alike. An element carrying null still names nothing, which is the
element's own sentence rather than a value to check.
The policy grammar writes a resource as a <resource_string>, and AWS reports a
value whose JSON type is not the expected one as an error of its own,
DATA_TYPE_MISMATCH, "The text does not match the expected JSON data type". The
two other clauses that can carry a non-string are recorded: a Version of
20121017 and an Effect of true are each refused with that clause's own sentence
rather than read past.
The second half is which sentence that effect clause gets. A statement
declaring an effect the language does not define was answered The policy failed
legacy parsing whichever write was handed the document, where the inline
validator words it that way and the managed one Syntax errors in policy, both
recorded. The sentence follows the validator that read it now, so CreatePolicy
and CreatePolicyVersion answer the managed wording while PutUserPolicy,
PutGroupPolicy and PutRolePolicy keep theirs.
No code and no status moves: every refusal here is MalformedPolicyDocument at
400, as it was. The version and resource sentences are worded alike by both
validators and stay that way, and condition values are not read by either.
CodeArtifact's Rust/Cargo repositories had no native support at all: no sidecar,
no wire protocol, no external connection. Adds it following the same shape as
the existing Maven/npm/pypi/NuGet container-backed formats.
KellnrSidecarManager/KellnrSidecarClient run a real Kellnr container per
cargo-enabled repository and speak its native HTTP API for publish, download,
and the sparse index. CodeArtifactCargoController implements the real `cargo`
sparse-registry wire protocol (publish, download, sparse index lookup,
config.json) and forwards Kellnr's own publish rejections (e.g. republishing an
existing version, which the Cargo Book documents as permanently disallowed)
verbatim rather than swallowing them into an opaque error.
Adds the `public:crates-io` external connection via CargoExternalConnectionClient
(real index.crates.io/static.crates.io wire calls) and
CodeArtifactCargoExternalConnectionImporter, reusing the existing
claim/fence/retention-origin machinery the same way NuGet's own importer does.
Cargo's sparse index covers every version of a crate name in one file and a
real cargo client always consults it first, so unlike the other formats'
importers this one also merges real upstream-only version lines into the local
index response (mergeExternalVersions), a read-only proxy step with no
retention write of its own, so an upstream-only crate is actually visible to a
client's dependency resolution before anything is retained.
Fixes against the live Kellnr/crates.io protocols found while addressing
review: KellnrSidecarClient now implements listPackages (its absence made
every ListPackages call 500 once cargo joined the container-backed formats);
sparse-index bucket paths are lowercased per the Cargo Book's own spec
(crates.io's own index is case-sensitive about this even though a crate's
real name isn't); the admin account behind Kellnr's internal publish token is
given a fresh random password per container rather than Kellnr's own shared
default; a stale cached publish token (e.g. after a silent container restart)
is retried once rather than 401ing forever; both publish-body parsing and the
external sparse-index fetch are now bounded against an oversized allocation;
a renamed dependency's alias and real name are mapped correctly between the
index and publish shapes, and features2/links/rust_version now survive a
retained crate's synthesized metadata; the Kellnr image is pinned to the
exact version this was built and tested against rather than a floating major
tag.
Known gaps, called out in docs/services/codeartifact.md: no repository-to-repository
upstream importer yet for cargo (every other native format already has one), and
no yank/owner/search routes.
Secrets Manager was built by hand in ResourceArnBuilder. It now moves out of
HAND_BUILT into NAMESPACES, so every operation's resources come from
iam-request-resources.json, and the hand builder and the enforcement filter's
routing to it are gone.
The six characters Secrets Manager mints after a secret's name come from
botocore, which documents CreateSecret's Name: "Secrets Manager automatically
adds a hyphen and six random characters after the secret name at the end of
the ARN". A new rule records them as mintedSuffixes ("-??????") and has the
create name the secret it makes by Name. The reader appends them open to a
secret Secrets Manager does not hold. An ARN given for a secret, a partial
one included, is checked on the ARN of the secret the operations read it as,
alone: SecretsManagerService resolves it through resolveStoredArn to the
caller's secret in the ARN's Region, else to the one the ARN's account holds
under that full ARN, reading only.
ARNs the table renders, and the resource a create makes that its tags are
checked on, take the request's partition for every namespace, as the
Secrets Manager builder did, so a Region Floci does not know keeps the
partition of the request.
Probed against SES on 2026-11-14:
- GetExportJob and CancelExportJob answer 404 NotFoundException
"Job ID: <id> not found" for an unknown id shaped like a UUID, and keep
400 "Invalid JobId" for any other id.
- CancelExportJob on an already cancelled job succeeds instead of being
refused. A completed job is still refused.
- A cancelled job no longer gains a CompletedTimestamp.
- GetExportJob always returns the Statistics structure, empty until a
record count exists.
The probe used one random UUID and one plain word, so the canonical UUID
form is Floci's reading of where SES separates the two errors.
The Config handler read each member with asText, asInt or path and
checked only some of them by hand, so an empty or over-long Arn on the
two recorder Describe calls answered
NoSuchConfigurationRecorderException, and an empty ResourceArn on the
three tag operations was accepted, as was an over-long one that isn't
a Config resource's ARN.
tools/aws/regen_config_shapes.py now vendors every Config operation's
request constraints from botocore, kept in sync by make aws-data-check,
and RequestConstraintCheck checks each served operation's request
before it runs. A violation is a ValidationException, which the model
documents for missing required fields and input that fails validation,
and a Limit out of range answers the InvalidLimitException its
operation models.
The hand-written checks the table covers are gone, putConfigRule's
included: ConfigCfnProvisioner now checks the rule it builds as a
PutConfigRule request before storing it, so a template property outside
the constraints fails the resource. A rule without a ConfigRuleName
keeps its InvalidParameterValueException, since the model doesn't
require the member.
The loop that drops blob and timestamp members moves into
request_shapes as drop_blob_and_timestamp_members, used by both the
Config and Kinesis generators. Both vendored files are unchanged.
The comment above sparkSettings backed Spark's Hive client using the
cluster's metastore with the Glue Data Catalog page's "persistent Hive
metastore or a Hive metastore shared by different clusters", which
emr.md no longer leans on. It now gives emr.md's sources: Spark's
default catalog "always connects to a Hive metastore" (the Release
Guide's "Use an Iceberg cluster with Spark"), and "Using HCatalog" has
Spark SQL read a table the HCat CLI made.
* fix(ec2): resolve interface identity for tag authorization
* fix(ec2): read resource condition keys through the generated table
* fix(ec2): look up a tag batch's interfaces in one pass
An AWS::ECS::Service update that left DesiredCount out set the service
back to 1. AWS omits it from the update ("For existing services, if a
desired count is not specified, it is omitted from the operation"), so a
count set through UpdateService now stays. A new service without it
still starts at 1, and a rollback puts the count back only when the
update sent one.
GetLayerVersion took an unversioned layer ARN as a literal layer name
and answered ResourceNotFoundException. It now resolves the ARN through
the existing layer resolver, keeping its account and partition checks,
and builds the archive URL from the layer's own Region.
Both GetLayerVersion and GetLayerVersionByArn take their IAM resources
from the generated request-resource table. The generator reads a
name-or-ARN alternative on URI and query members, and fills an ARN
variable from the integer shape named after it, so the layer version is
read from the model. A REST route keeps its modeled operation when AWS
authorizes it under another action name, and an ARN selector is checked
on the stored version it resolves to, in that version's account and
Region. The lookup tests share one layer archive fixture.
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <akurait@amazon.com>
An AWS::Lambda::Version resource reported its deletion but left the
version published. CloudFormation now deletes the version through
Lambda's qualified DeleteFunction when the stack is deleted, the
resource leaves the template, or its creation rolls back, unless its
DeletionPolicy retains it. $LATEST and other versions stay, an
already-missing version counts as deleted, and an alias still pointing
at the version fails the delete until it is removed. A placeholder,
unqualified or alias identity is never turned into a whole-function
delete.
The SDK regressions use the shared CfnStackWaits, now with an SDK
deleteStack that follows the stack id, and AwsSdkErrors for their error
checks.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
UpdateApplication answered {applicationId, arn, name}, while the model's
UpdateApplicationResponse is {application}, required: "Information about
the updated application". A client reading it found no application: a
KeyError in boto3, a null in the Java SDK. It now answers with the
application as GetApplication reports it, without the clientToken
storage keeps for CreateApplication's retries.
Under IAM enforcement, CreateAssociation is checked on the document its
Name gives as well as the association it makes, which the generated
request-resource table has done since #8203. An enforcement test now
shows a user allowed on one document can associate it and is refused
for another, and a request-resource test shows a shared document given
by its ARN is checked on that ARN. The SSM docs note the check.