mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
fee688bd051a5bde4e2e8a4d5e0f5d75c7ffe00a
213
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
1a871392b7 |
feat(redshift): support pausing and resuming provisioned clusters (#6911)
* feat(redshift): support pausing and resuming provisioned clusters * docs(redshift): sync supported operation count * fix(redshift): harden pause and resume failure recovery * fix(redshift): skip unchanged idle integration writes * fix: consolidate Redshift pause and resume state persistence |
||
|
|
da8e22744b | feat(redshift-data): implement ListSessions (#6892) | ||
|
|
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. |
||
|
|
454d7b6ebd |
feat(codeartifact): add ListPackages for every format (#6622)
Lists every package a repository holds across all five formats, with each package's origin-control restrictions, filterable by format, namespace prefix, package-name prefix, and publish/upstream restriction. generic is enumerated by scanning stored package-version and origin-config records repository-wide; each container-backed format gets a new RepositorySidecarManager#listPackages primitive, confirmed live against each real sidecar: Reposilite has no list-everything endpoint, so Maven walks its directory tree, peeking one representative child per directory to tell a group/artifact directory apart from a plain namespace segment (both look identical one level up); Verdaccio's /-/all, pypiserver's root simple index, and BaGetter's Search resource (pressed into service for this admin listing only, not the native NuGet protocol) answer directly. |
||
|
|
e9e2b38da6 | feat(redshift): add event history and DescribeEvents (#6663) | ||
|
|
d10db3ce9b |
feat(ecr): repository creation templates (#5955)
* feat(ecr): repository creation templates CreateRepositoryCreationTemplate, DescribeRepositoryCreationTemplates, UpdateRepositoryCreationTemplate and DeleteRepositoryCreationTemplate store templates per account and Region, keyed by prefix, with each field checked against the service model. An update replaces the fields it sets, and an empty string or list clears one. Templates are recorded, not applied, as nothing in Floci creates repositories through replication, pull through cache or create-on-push. Closes #5804 * refactor(ecr): check repository creation templates against the vendored model The four template actions join the registry settings in ecr-request-shapes.json, so the handler checks their requests against the ECR model's types, lengths, patterns and enums and answers in ECR's "failed to satisfy constraint" form. The handwritten copies of those rules go. What the model can't state stays in the service: appliedFor naming at least one value, and policy text being a JSON object. The model gives imageTagMutabilityExclusionFilters at least one entry, so an update sending an empty list is now refused rather than clearing the filters. Terraform omits the member when the filters are removed and moves to a mode without exclusions, so an update that leaves the template in such a mode now drops the filters. Before, they stayed, and every plan showed them again. * fix(ecr): lock creation template writes, share one JSON object check and fold a trailing slash Create, update and delete each read a template and then wrote it without a lock, so two creates of one prefix could both succeed and an update racing a delete wrote the deleted template back. They now take the registry lock the registry settings use. The template policies and the registry policy share one JSON object check that also refuses text after the object, such as {}{}. ECR assumes a / after every prefix, so prod and prod/ are now one template. The test helper imports Executable. * fix(ecr): describe each template once when prefixes differ only by a slash Describe removed duplicate prefixes before folding the trailing slash, so prefixes prod and prod/ returned the template twice, and with maxResults 1 a token followed by an empty page. It now removes duplicates by template key. The lock tests use the shared testing ParkingStore instead of their own copy. |
||
|
|
ec21cf38c7 |
feat(rds): DescribeCertificates, ModifyCertificates and an instance's CA certificate (#6106)
* feat(rds): DescribeCertificates, ModifyCertificates and an instance's CA certificate DescribeCertificates lists the Region's RDS certificate authorities with the thumbprint and validity AWS reports, vendored from the certificate bundles AWS publishes by tools/aws/regen_rds_ca_certificates.py, and pages them. ModifyCertificates sets or removes the account's default for new instances. CreateDBInstance, ModifyDBInstance, the two instance restores and CreateDBInstanceReadReplica take CACertificateIdentifier, and instances report it with CertificateDetails. AWS::RDS::DBInstance takes the property and resolves the two CertificateDetails attributes. The identifier is metadata: the auth proxy keeps presenting Floci's own CA. Closes #5806 * fix(rds): follow the user guide on CAs and leave a blank CA alone - An instance stored without a CA reports rds-ca-rsa2048-g1, since an override applies only to instances created after it. - ap-south-1, ap-southeast-4, ca-west-1, eu-central-2, eu-south-2 and il-central-1 offer only rds-ca-rsa2048-g1, as the user guide says. - A blank CACertificateIdentifier on modify leaves the instance's CA. - --download skips a Region only on 403 or 404 and exits 1 on other failures. - Reuse regionFromArn, add a createDbInstance stub helper and import Executable in the tests. |
||
|
|
5c7c84374b |
feat(codeartifact): add DeletePackageVersions for every format (#6559)
Permanently removes one or more versions of a package, real assets included. Confirmed against the wire model: the request shape has no versionRevisions field at all (unlike UpdatePackageVersionsStatus/DisposePackageVersions), only a single expectedStatus applied to the whole batch, and expectedStatus itself accepts the full, unrestricted PackageVersionStatus enum. Deleting is allowed from every status, Disposed included: the User Guide is explicit that "the only action that can be taken on a package version that has been disposed is for it to be deleted." Unlike DisposePackageVersions, which keeps a tombstone record so DescribePackageVersion keeps answering Disposed, a deleted version is "no longer in the repository" at all: the generic record is removed outright and a container-backed version's status override is cleared rather than replaced, so DescribePackageVersion/GetPackageVersionAsset 404 on it afterward and the freed coordinate can be freely republished. Reuses deleteContainerBackedVersionAssets as-is for the real sidecar deletion, byte accounting, and Maven metadata.xml cleanup, since those are identical regardless of which action triggered them. |
||
|
|
4c55ec6b77 |
feat(sts): vend a signed web identity token for the calling identity (#6517)
GetWebIdentityToken is the last operation the pinned STS model publishes and Floci did not dispatch, which takes STS to 11 of 11. It answers "a signed JSON Web Token (JWT) that represents the calling Amazon Web Services identity", signed by STS and verifiable against the keys the issuer publishes. The issuer is IAM's. Outbound web identity federation mints one issuer URL per account, so the token names it as iss and the operation reads the switch behind it: while the feature is off the answer is OutboundWebIdentityFederationDisabledException, not the FeatureDisabled the IAM getter answers. SessionDurationEscalationException is the other refusal with a published trigger, for a caller on temporary credentials asking for a token that would outlive its own session, "beyond what was granted when the session was originally created". JWTPayloadSizeExceededException is modelled and nothing published says what the maximum payload is, so no size is invented here to refuse a request with. A temporary credential with no live session behind it is refused as expired rather than read as a caller that cannot be identified. IamEnforcementFilter answers ExpiredTokenException for one and it never reaches the operation, but with enforcement off, or in the window between that check and this one, the session lookup comes back empty and the caller would fall to the account root ARN this file hands an unresolvable caller, as GetCallerIdentity does. A token is not a request: its subject is signed and outlives the call, so a session already gone does not get one that speaks for the account, while an unknown long-term key keeps the stand-in. The filter's wording is shared rather than copied a second time. The declared constraints are read ahead of all of it, as #6402 put them elsewhere in this package: Audience required and 1 to 10 members of 1 to 1000 characters, SigningAlgorithm required at a fixed length of 5, DurationSeconds 60 to 3600 defaulting to 300, and Tags at most 50 with its keys and values held to their own lengths and pattern. A member sent empty is a member that is present, breaking its length rather than reading as absent, and a list member's violation names the index the request sent rather than the number it reads as, which is what #6478 settled. The claim layout is the IAM User Guide's. The standard OIDC claims sit at the top level, iss, aud, sub, iat, exp and jti, with the caller's ARN as the subject, and the custom claims are nested under the https://sts.amazonaws.com/ namespace the guide names: aws_account for the account the token was asked for, source_region for the region it was asked from, and the request's tags under request_tags. "All these claims may not be present in a token at the same time", so the organization, principal tag and session context claims the guide also lists are left out rather than invented, and request_tags is absent from a token whose request named none. The nesting is also what keeps a tag off a claim STS sets, a tag named exp being a key under request_tags rather than the claim that chooses the token's lifetime. Two answers are readings and docs/services/sts.md says so. The model publishes no enum for SigningAlgorithm, only the fixed length, so a five-character value that is neither RS256 nor ES384 is answered with this package's enum violation over the two values the reference names. The global endpoint refusal borrows the wording AWS publishes for AssumeRoot, the note for this operation giving none of its own. Signing goes through a new core.common helper rather than a third copy of the assembly: Cognito and EKS each already sign a JWT, and EksOidcService moves onto it here. ES384 signs through the JDK's P1363 variant, so the signature is the raw R || S pair JWS defines rather than the DER sequence a default ECDSA signer returns. Each account's key is minted on first use per algorithm and stored, so a restart does not invalidate a token already handed out. Eleven tests over the wire, including the claim set with the namespaced account and region, both signature shapes by their exact lengths, the tags arriving under request_tags rather than as claims of their own, the ceiling the caller's own session puts on a token, the refusal for a session already gone, and the constraints read while the feature is off. Beside them, a unit test verifies a minted token against the public half of the stored key for both algorithms, a length being no evidence of what was signed, and holds that one token's signature does not verify over another's claims; and the handler test takes the session ceiling to its own boundary on a fixed clock, where a token ending exactly with the session is issued, one ending a second later is refused, and nothing is minted on the refusal. What is not here is the other half: nothing publishes the verification key yet, so the discovery documents the issuer URL would host are not served, and the docs say that plainly. |
||
|
|
6b21aebdc3 |
feat(ram): support GetResourceShareAssociations (#6558)
* feat(ram): support GetResourceShareAssociations * test(ram): cover association listing through Java SDK * refactor(ram): share association visibility filter |
||
|
|
3053b35b84 |
feat(codeartifact): add UpdatePackageVersionsStatus and DisposePackageVersions (#6435)
Moves package versions between Published/Unlisted/Archived (UpdatePackageVersionsStatus) or permanently to Disposed with real asset deletion (DisposePackageVersions), for generic and every container-backed format. Both share the same all-or-nothing batch semantics, NOT_FOUND/MISMATCHED_REVISION/MISMATCHED_STATUS/NOT_ALLOWED error codes, and SKIPPED fallback confirmed against the User Guide's own worked examples. Container-backed formats (maven/npm/pypi/nuget) get a new in-memory status-override store, since none of their sidecars have a native status concept beyond existing-or-not; generic already had status/revision on its own record. GetPackageVersionAsset now 404s for Archived/Disposed versions (assets undownloadable per the User Guide), and ListPackageVersions correctly surfaces real Archived/Disposed/Unlisted data instead of the previously-unreachable filtering branch. Verified end to end against all four real sidecar containers, not just mocks. |
||
|
|
32663a24ad |
feat(iam): dispatch GetMFADevice, AcquireRole and GetRoleTemplateVersion (#6453)
The last three operations the IAM model publishes and Floci did not dispatch. All three can only ever answer NoSuchEntity here, and that is the argument for dispatching them rather than against it: a 404 both their API pages model beats the UnsupportedOperation 400 an undispatched action answers, which no SDK maps to anything for these operations. GetMFADevice reads a FIDO security key. The reference says of its serial number that "For this API, we only accept FIDO security key ARNs", and nothing in the IAM API creates such a device: CreateVirtualMFADevice is the only operation that mints one here and it mints an mfa/ device, so there is never a FIDO key to find. A virtual device's serial is refused the same way, deliberately, since answering with it would hand back a device AWS would not return for the same request. The page models NoSuchEntity and ServiceFailure and nothing else, so there is no validation answer to prefer over the 404. Role templates are AWS's own. The user guide has role manager using "AWS-managed role templates" and a role created from one with iam:AcquireRole and the template's ARN, and the model agrees from the other side: GetRoleTemplateVersion is the only operation that names a template and there is no create, list, update or delete, so nothing a client can call puts a template into an account. Both operations answer NoSuchEntity naming the ARN they were handed. RoleTemplateDisabled is the other refusal AcquireRole models and it is not this one: it reads "the specified role template is disabled", which is a statement about a template that exists. That this is a reading, and what would change it, is written into docs/services/iam.md rather than left in a commit message. The guide publishes the template ARNs but not their bodies, so a published body would turn those ARNs into answers and leave the 404 for every other, and RoleManager/Enabled, role manager's own switch, is a separate question this does not read. The declared constraints are read before the lookup, as #6402 put them elsewhere in this package: SerialNumber to serialNumberType's 9 to 256 and its pattern, UserName to userNameType whenever the request carries the member, a blank one included, the member being present whatever it holds, TemplateArn to arnType's 20 to 2048, the two minor versions to being integers, answering InvalidInput for a value that is not a number, and ReplacementValues to the 30 entries it declares. The ARN check is #6402's, read through one helper now rather than copied, and the member path validation messages spell is a helper too. role-template leaves ResourceArnBuilder.UNRESOLVED_TYPES, which is empty now. GetRoleTemplateVersion carries the template's ARN, so the type resolves like any other the request names, in the aws account rather than the caller's. AcquireRole stays on *, AWS's service reference publishing no action for it. Eleven tests. Five on GetMFADevice: the FIDO serial reported missing rather than unsupported, a virtual device refused and still listed afterwards, the serial's length and pattern as counted violations, a user the account does not hold reported instead of the device, and a blank UserName read as a value rather than as absent, which breaks both of userNameType's constraints when it is empty and its pattern when it is whitespace. Six on the templates: both operations' 404s, TemplateArn under its length and absent on each, a minor version that is not a number on each, and 31 replacement values refused where 30 reach the 404. The unresolved-types test lost a guard an empty map would fail and gained the claim that emptied it. |
||
|
|
4a95c1bb95 |
feat(ec2): support DHCP options lifecycle (#6428)
* feat(ec2): support DHCP options lifecycle * fix(ec2): validate DHCP options lifecycle edge cases * fix(ec2): reuse region-aware private DNS domain for DHCP defaults * fix(ec2): isolate DHCP options review regressions |
||
|
|
5116b3c578 | feat(kms): add GenerateDataKeyPair and GenerateDataKeyPairWithoutPlaintext (#6359) | ||
|
|
d4f454a1cf |
fix(elasticache): preserve and mutate resource tags (#6327)
* fix(elasticache): preserve and mutate resource tags * fix(elasticache): complete resource tag mutations * docs(elasticache): sync tag actions * docs(services): update ElastiCache action count * fix(elasticache): use AWS InvalidARN tag error code * fix(elasticache): align resource tag mutations with lifecycle and AWS errors |
||
|
|
63d577a245 |
feat(emr-serverless): tag job runs and report their attempts (#6297)
TagResource, UntagResource and ListTagsForResource now take job run ARNs
(.../applications/<id>/jobruns/<id>), which the model's ResourceArn
allows ("the supported resources are Amazon EMR Serverless applications
and job runs"). They work on the tags StartJobRun stores, so GetJobRun
reports the current set, under the same rules as an application's: at
most 50 tags, no "aws:" prefix. An ARN must be the run's own, so one of
another application or account names nothing, and once an application
is deleted its runs' ARNs name nothing, as its own ARN already does. A
session ARN, which the pattern also allows, now answers
ResourceNotFoundException rather than ValidationException, as sessions
are not emulated.
ListJobRunAttempts (GET .../jobruns/{jobRunId}/attempts) and GetJobRun's
attempt parameter report attempts. Nothing runs, so no run fails and
none is retried: every run is one attempt, number 1, created and updated
with the run. GetJobRun, ListJobRuns and ListJobRunAttempts carry it.
GetJobRun with attempt 1 or none returns the run; another attempt
answers ResourceNotFoundException, in Floci's words, as no source shows
AWS's answer for an attempt a run never made, and leaves the run as it
was.
Also from the #6202 review:
- From release emr-7.11.0 a BATCH run's executionTimeoutMinutes must be
1 to 10080. The model: "the maximum value is 10080 minutes (7 days)
starting with Amazon EMR release 7.11. Setting a value of 0 to disable
the timeout is no longer supported for BATCH mode job runs." Earlier
releases and STREAMING runs keep 0 to 1,000,000. No source gives the
error; ValidationException, in Floci's words. The check runs before
auto-start, under the application's lock, so a refused run leaves the
application as it was.
- ListJobRuns refuses a state or mode that does not exist and more than
8 states, and ListApplications a state that does not exist and more
than 7, with the framework ValidationException. A typo listed nothing
before. ListApplications' maxResults outside 1 to 50 now answers the
same framework message, joined with any states violation.
- EmrServerlessRegionIntegrationTest uses EmrServerlessRequests, which
gains tagsPath, and pins a job run ARN across Regions;
EmrServerlessTagIntegrationTest moves onto the same helpers.
The enum and range violations are now SmithyValidationErrors.notInEnum,
notAllInEnum and outOfRange, which EMR Serverless uses.
Part of #6046 (part 9).
|
||
|
|
27338a62b7 |
feat(iam): answer GetHumanReadableSummary for a delegation request (#6298)
The ninth and last operation of IAM temporary delegation, and the last one the model publishes that is not an M3 404: a delegation request now comes back as a Markdown summary instead of UnsupportedOperation, which takes IAM to 177 of the 180 operations botocore 1.43.113 publishes. AWS generates that text with a large language model, so this is the one piece of the family that cannot be its answer. What is sourced is the format, the reference's own example answering "Human readable summary in Markdown format", and the shape: EntityArn 20 to 2048, Locale 2 to 12, SummaryContent up to 10000 characters and the four SummaryState values. Every line is read off the record, so one request summarizes the same way twice: what is being asked for, by whom, for how long, and where it has got to. The services and actions the console credits its AI summary with are the one half missing, for the same reason nothing renders a PermissionPolicy here, that no API registers the template AWS resolves one from, so the template and its parameters are named instead. Who may read a summary is who may read the request, which the reference states outright, so the lookup is GetDelegationRequest's and so is the NoSuchEntity it answers. The request is authorized against the ARN Floci mints around the id EntityArn names, which is the one its five by-id siblings already resolve: a policy naming one request authorizes that request alone, and a deny on it holds however the caller respells the ARN. An ARN of another service names no request of IAM's to summarize. Four answers are chosen rather than read, each recorded in docs/services/iam.md: an ARN of another entity type is NOT_SUPPORTED, a locale Floci does not write is NOT_AVAILABLE with no content, a value that is no ARN at all is the modeled InvalidInput, and an id inside a well formed ARN that no id could match is NoSuchEntity rather than a constraint failure. The text is the requester's, and the summary is Markdown, so it is escaped rather than passed through: the model lets a description, a message and a parameter value carry newlines and backticks, which would otherwise forge a heading, a bullet or a code span inside a document read as Floci's own account of the request. A parameter value the record does not hold is left out, and an indexed value arriving as a key with nothing under it is no longer stored as one. |
||
|
|
c094ce3973 |
feat(sts): dispatch AssumeRoot and authorize centralized root access (#6251)
Floci dispatched the five operations that turn centralized root access on and off and nothing that uses it, so the feature was half emulated: AssumeRoot, the operation they exist for, answered UnsupportedOperation. The five took no caller check of their own either, so any account could enable or disable organization wide root features, and the record they wrote was scoped to the calling account, which left the management account's toggle invisible to a delegated administrator. All five answer for one organization now, so all five check the caller, and each refusal is a shape the reference models on them and on nothing else: no organization is OrganizationNotFound, one without All features is OrganizationNotInAllFeaturesMode, one without trusted access for IAM is ServiceAccessNotEnabled, and a caller that is neither the management account nor a delegated administrator is AccountNotManagementOrDelegatedAdministrator. The two enable operations add CallerIsNotManagementAccount, modeled on them alone, so a delegated administrator may read the features and turn them off but not on. The feature set belongs to the organization, so it is read and written in the management account's scope whoever asks, and the OrganizationId the model declares beside EnabledFeatures is answered now that the organization is known. Organizations answers all of this through a provider interface in the iam package, the way ScpProvider already does, so IAM still does not depend on it. AssumeRoot opens the session those features allow. It acts as the member account's root user, which no identity policy grants or denies, scoped by the TaskPolicyArn the request names: the five AWS managed policies the model names, under the root-task path, each denying everything it does not name, so the policy is the whole of the bound and is read beside the root's own allow-all rather than as a session policy with nothing to allow. A customer- managed policy can carry that path too and is refused, being the caller's own document rather than one of AWS's. The caller must be able to manage root access and have RootSessions enabled, the target must be a member account other than the management account, and the audit reads those policies allow name the member account's root user when they carry no UserName, which is what their own arn:aws:iam::*:root asks for. What is chosen rather than read is documented in docs/services/sts.md: the operation models only RegionDisabled and ExpiredToken, so every caller, target and feature refusal is AccessDenied 403 and a task policy outside the root-task path is a ValidationError, the shape MinimumSessionTokenSize also answers outside the 0 to 4096 the model declares for it, the size asked for being the size issued. The guide's refusal of root user credentials covers both credentials this emulator reads as the account root, one that resolves to a root ARN and the bare account-id key the enforcement filter calls floci's account-root principal, so a privileged session is opened by an IAM user or role of the management account as it is on AWS. The global endpoint is refused when the request arrives on that host, which is the only way a request says so. |
||
|
|
d2f2625005 |
feat(redshift): add ResetClusterParameterGroup (#6230)
* feat(redshift): add ResetClusterParameterGroup * docs(redshift): update supported operation count * fix(redshift): validate resets and preserve legacy parameter groups * fix(redshift): accept empty Query parameter lists |
||
|
|
1f1e5db1bc |
feat(emr-serverless): start, get, list and cancel job runs (#6202)
Adds StartJobRun, GetJobRun, ListJobRuns and CancelJobRun under
/applications/{applicationId}/jobruns. Job runs are metadata only, like
Glue's: a run is RUNNING from submission and settles when read. With the
new floci.services.emrserverless.job-run-duration-seconds at its default
of 0, a BATCH run is SUCCESS as soon as it starts; a positive duration
keeps it RUNNING that long, and a run that would outlast its
executionTimeoutMinutes (720 when not given) is CANCELLED at the
timeout. A STREAMING run stays RUNNING until it is cancelled.
A run on a CREATED or STOPPED application starts it, as auto-start
defaults to on; with auto-start off the run is refused. clientToken is
the idempotency token: a retry returns the original run, and the same
token with another request answers ConflictException "Request did not
match the original". CancelJobRun on a finished run answers
ValidationException "Job run is not in a cancellable state". ListJobRuns
returns the newest runs first, filtered by states, creation time and
mode, and its nextToken resumes only the listing it came from. A run
needs a jobDriver that sets exactly one of sparkSubmit and hive, as
GetJobRun's JobRun always carries one, and tags are checked before
auto-start, so a refused run leaves the application as it was.
createdBy is the caller's ARN.
Application createdAt and updatedAt now go out as epoch seconds, the
restJson1 default for the model's Date shape, as job runs do. They were
epoch milliseconds, which the Java SDK reads as the year 58774 and
botocore refuses as out of range. Auto-start rewrites updatedAt, so a
run's own submission reached the bug. Applications persisted with
millisecond timestamps read back at the same instant.
Part of #6046 (part 8).
|
||
|
|
9e66185c9d |
feat(codeartifact): add ListPackageVersions for every format (#6204)
Lists a package's versions with status, revision, and origin, the second of the six missing list/lifecycle actions (ListPackageVersionAssets already shipped). Scoped to all five formats from the start, matching real AWS: none of the action's own format-field documentation carries a generic-only restriction. For generic, reads straight from the stored packageVersions records. Container-backed formats (maven/npm/pypi/nuget) have no such record, so each sidecar client gains a new RepositorySidecarManager.listPackageVersions primitive: Reposilite's artifact-level directory listing plus each version's own lastModifiedTime, Verdaccio's packument versions/time maps, pypiserver's per-project JSON releases keys plus a HEAD on each version's file for Last-Modified, and BaGetter's flat-container index.json plus the NuGet V3 Registration resource's catalogEntry.published (read only as an internal timestamp source, not as a registration endpoint exposed to real NuGet clients). Every container-backed version reports status Published, the same convention DescribePackageVersion's own bridge already established. Real-AWS behavior confirmed against the wire model and the User Guide before writing any code: default page size is 50 (not the 100 this codebase's other List actions use), sortBy=PUBLISHED_TIME is always applied (the only value that enum has) most-recent-first, Archived and Disposed versions are excluded unless the caller filters by that exact status (two sibling actions' own docs name this operation as the one that hides them), Unlisted stays included by default, and originType filtering to EXTERNAL/UNKNOWN always answers empty since Floci never ingests from an external connection. defaultDisplayVersion prefers npm's own dist-tags.latest, falling back to the most recently published Published version for every format (the only stated rule for Maven/PyPI; applied to generic/NuGet too as the best-justified inference, since AWS states no rule for those two). Verified live against all four real sidecar containers, not just mocks, with new Docker-gated tests per format (Maven 26/26, npm 25/25, pypi 24/24, nuget 17/17 overall), plus the fast CodeArtifactServiceTest suite (210/210). Checkstyle and docs-check clean. |
||
|
|
4eea01741f |
feat(sts): dispatch GetAccessKeyInfo, the account an access key id belongs to (#6121)
GetAccessKeyInfo answered UnsupportedOperation 400. It takes one member and answers one: "when you pass an access key ID to this operation, it returns the ID of the AWS account to which the keys belong", and it models no errors at all, so the whole operation is that lookup plus the shape of its input. The lookup is not the one authentication uses. resolveAccountId takes only an active long-term key and a live session, because that is what a request may be signed with, where this operation is explicit about the opposite: "this operation does not indicate the state of the access key. The key might be active, inactive, or deleted". So findAccountForAccessKeyId answers from what is stored whatever state it is in, a long-term key through the account that holds it and an ASIA key through the session that minted it, which is the split the page draws between AKIA as "long-term credentials for an IAM user or the AWS account root user" and ASIA as "temporary credentials that are created using AWS STS operations". Both long-term lookups read one scan now, the authentication one keeping the Active filter over what the new one answers whole, so the guard and the scan are written once. The id is read against accessKeyIdType first, 16 to 128 characters of [\w], which the reference glosses as "any upper- or lowercase letter or digit", so a malformed id answers for its own shape rather than for a key that could not exist. The violation is rendered the way the one recorded IAM rendering Floci already follows renders it, the member in lower camel case and the offending value quoted beside it; the older STS operations name the parameter as written instead, which is drift of its own rather than something to copy here. An absent member and a present empty one are different answers as well: only the absent one reads as null, where AccessKeyId= is a value that fails the minimum and is quoted as the empty string it is, which is what IAM answers for an empty RoleName over this same wire. One answer is chosen rather than read. The operation models no error for a key that is not there, and the page says only that "providing a deleted access key might return an error that the key doesn't exist", so a well-formed id this emulator never issued answers InvalidParameterValue, the published common error closest to that sentence. docs/services/sts.md records it as a deviation rather than a recorded behaviour, since nothing says what AWS answers for an id it never issued. Enforcement is untouched on purpose. The "No permissions are required" note appears on GetCallerIdentity and GetSessionToken and on no other page in the reference, and sts:GetAccessKeyInfo is in the service authorization reference, so this one is authorized like any other action rather than exempted the way GetCallerIdentity is. Ten tests. Five over the wire: a long-term key answering the account that holds it, an inactive key still answering it, a session key answering the account its session belongs to, four shapes refused ahead of any lookup, and a well-formed id nobody holds. Five on the handler: the account answered and the authentication path not consulted, the absent, short, long and malformed ids, a present blank id read as a value rather than an absence, and the refusal for a key the service does not hold. Docs carry the action, a section on what it does and does not say about the key, and the matrix row at 9. |
||
|
|
f2b62fbbec |
feat(dsql): serve each cluster's database on the DSQL endpoint (#6102)
* feat(dsql): serve each cluster's database on the DSQL endpoint Each Aurora DSQL cluster gets a PostgreSQL 16 database in a Docker container, set up as DSQL's (the role admin owning public, repeatable read), and every cluster is served on one TLS endpoint where the server name picks the cluster. A connection is admitted as DSQL admits it, measured on AWS: an IAM token for the endpoint, DbConnectAdmin for admin, 5 seconds of grace past expiry, a long-term key only in its own account, IAM enforcement with the account's SCPs, and DSQL's SQLSTATE, text and hint for every refusal. A role other than admin is refused as an unmapped one, since role mappings come with AWS IAM GRANT in the next part. The startup is read as DSQL reads it: a dotted parameter is refused, and of options only -c name=value counts, the first for a name. The cluster is CREATING until its database answers; a multi-Region peer is ACTIVE after peering only once its database answers. A start that fails after the container exists removes it, a deletion Docker cannot finish leaves the cluster DELETING for the next start, and whether a cluster is wanted and its route change under one lock, so a deletion racing a start leaves no route. The data plane was first one PR; it is split by layer at the maintainer's request: this part (transport and admin), then AWS IAM GRANT and the other roles, then DSQL's dialect and limits. * refactor(postgres): speak PostgreSQL's wire protocol through one shared helper The DSQL endpoint brought a third copy of the startup parsing, message framing and ErrorResponse building that the RDS proxy's PostgresProtocolHandler and Redshift's PostgresWireDecoder each carried. They now go through core.common.PostgresWire: the startup packet and its parameters, reading and writing a message with its checked length, and the fields of an ErrorResponse or NoticeResponse. The length refusals keep the RDS proxy's wording, which its tests assert; Redshift's oversized-message refusal now reads the same way. Also from the review: the DSQL integration test makes its IAM users with EnforcementFixtures.createUser, which removes them after the test; the service test shares one ready-at-once provision stub; and every exception the endpoint and session swallow is named ignored, with the reason it is safe. |
||
|
|
1108bc75dc |
feat(rds): DB proxy endpoints (#6062)
* feat(rds): DB proxy endpoints CreateDBProxyEndpoint, DescribeDBProxyEndpoints, ModifyDBProxyEndpoint and DeleteDBProxyEndpoint store endpoints per account and Region, checked against the service model. Each endpoint reports its proxy's own host, so a client connects through it as through the proxy. DescribeDBProxyEndpoints lists each proxy's default endpoint first; it cannot be modified or deleted. Deleting a proxy deletes its endpoints, and endpoint ARNs take tags. Closes #5805 * fix(rds): report each proxy endpoint at the proxy's current host A custom endpoint kept the proxy's host from when it was created, so after a restore gave the proxy a new host, every custom endpoint still reported the old one while default reported the new one. The host is no longer stored with the endpoint: create, describe, modify and delete take it from the proxy when they answer. A missing DBProxyName, DBProxyEndpointName or VpcSubnetIds is now MissingParameter, checked before the proxy is looked up. * test(rds): import Executable and assertTrue instead of naming them inline |
||
|
|
94b09ff46b |
feat(iam): dispatch UpdateRoleDescription, the description half of UpdateRole (#6029)
UpdateRoleDescription answered UnsupportedOperation 400, where the reference publishes it as a role operation of its own: "Use UpdateRole instead", and "modifies only the description of a role. This operation performs the same function as the Description parameter in the UpdateRole operation". So it is that path rather than a second one. updateRole now answers the role it wrote, updateRoleDescription is that call with the session duration left alone, and the roleNameType check comes along rather than being restated. The handler renders the Role the operation answers through the same roleXml fragment GetRole and CreateRole use, detailed, there being no documented exclusion to honour: the page's Response Elements section lists one Role object and says only that it "contains details about the modified role". Both members are required here, where UpdateRole's are optional, and that is the one place this does not simply delegate. Description is read off the request rather than through requireParam, which reads a blank value as an absent member: roleDescriptionType carries a maximum of 1000 and no minimum, so an empty description is a value that clears the description and only a missing one is a refusal. It is rendered the way the handler renders every other missing required member, "Value null at 'description' failed to satisfy constraint: Member must not be null". RoleName is answered for by validateRoleName, which reads a null as "Member must not be null" and a bad shape before any lookup, as the other 21 roleNameType operations have since #5391. A service-linked role takes a description edit, through either action. The user guide says so plainly, "You can edit the description of any role from the IAM console, API, or CLI", its own procedure for editing one is update-role with --description or the UpdateRoleDescription API, and it publishes a policy granting iam:UpdateRoleDescription over arn:aws:iam::*:role/aws-service-role/* for that. Both actions model UnmodifiableEntity, and a modelled error is not a list of what triggers it: the guard now stands on MaxSessionDuration, the only other member UpdateRole takes. So a description-only UpdateRole goes through where it was refused before, a request carrying both is refused whole with neither field written, and the other ten protected role actions are untouched. Authorization needed nothing. AWS gives the action the role resource type in the vendored authorization metadata, NAME_PARAMETERS already maps role to RoleName, and ResourceArnBuilder mints the ARN from the stored role, so the action is authorized against that role rather than against the wildcard. The routing table has carried the name since routing became generated from the model, so what changed there is only that it stops falling through to the unsupported-action arm. A role Description is held to the shape AWS publishes for it, and on every action that takes one rather than only the new one: at most 1000 characters of [\u0009\u000A\u000D -~¡-ÿ], which admits tab, newline and carriage return and no other control character. CreateRole, UpdateRole, UpdateRoleDescription and CreateServiceLinkedRole share one validateRoleDescription, run before the role is looked up or created, so a refused description never reaches a stored role. That is more than strictness. XmlBuilder escapes the five XML entities and passes everything else through, so a control character stored in a description would make the Role these actions and GetRole answer unparsable, which CreateRole could already produce before this. The rendering names neither the offending value nor the set, following the one IAM constraint message a recording covers, which also keeps the refused bytes out of the error body they would otherwise break. Reverting the three call sites fails the maximum, the control character and the sibling cases and nothing else. Sixteen tests. Ten over the wire in IamRoleDescriptionIntegrationTest: the description applied and answered, an empty description clearing it, the session duration and the trust policy untouched, the maximum taken and one character past it refused with the stored description intact, a control character refused while tab and newline are taken, CreateRole and UpdateRole answering the same way with nothing stored, an absent Description refused with the role left as it was, an absent RoleName, a name outside the shape refused ahead of the lookup, and an unknown role answering NoSuchEntity. Four on the service: the role that comes back, the shape across the create and update paths, the name read before the lookup, and a service-linked role taking the edit while refusing the duration. Two in IamServiceLinkedRoleIntegrationTest: that allowance over the wire, and CreateServiceLinkedRole answering ValidationError for a description outside the shape rather than its own InvalidInput. The protected-actions test pins UpdateRole on MaxSessionDuration, which is what AWS protects there. Docs carry the table row, the three ways this differs from UpdateRole, the description constraint and why it matters for the answer, the carve-out in the service-linked section, and the matrix row at 176, which check_service_matrix reads off the handler's own switch rather than taking the number on trust. |
||
|
|
95bf6df474 |
feat(dsql): add Aurora DSQL's control plane and AWS::DSQL::Cluster (#6048)
* feat(dsql): add Aurora DSQL's control plane and AWS::DSQL::Cluster The first half of #6014. Aurora DSQL's REST JSON control plane, with the answers measured on AWS (eu-west-1): CreateCluster, GetCluster, ListClusters, UpdateCluster, DeleteCluster, GetVpcEndpointServiceName, the cluster policy calls and tagging on cluster ARNs. Identifiers are 26 characters of lowercase base32 as DSQL's are, and malformed or unknown ones are refused with DSQL's messages; a cluster created without deletionProtectionEnabled is protected, and deleting a protected one is refused. CreateCluster answers CREATING and the cluster is ACTIVE right after. AWS::DSQL::Cluster waits for ACTIVE, returns the identifier from Ref and Identifier, ResourceArn, Status, CreationTime, Endpoint, VpcEndpoint and VpcEndpointServiceName through Fn::GetAtt, and a protected cluster makes the stack's deletion fail, as on AWS. A cluster has no database behind it here: its endpoint is named as on AWS, <id>.dsql.<region>.localhost.floci.io, but not served. Serving it is the second half of #6014, its own pull request. * fix(dsql): answer the control plane's edge cases as DSQL does Review of #6048, each answer measured on DSQL (eu-west-1) first: - ListClusters carries on from a page token whose cluster was deleted in between, as AWS does: the token now holds the sort position of the next page's first cluster rather than its identifier. - deletionProtectionEnabled is read as DSQL reads it: text is false when it spells false in any case and true otherwise; empty text, a number, an object and a list fail with SerializationException. - The tag calls refuse another account's cluster ARN with 403 AccessDeniedException instead of reading it in the caller's account. - A client token reused with other parameters answers 409 ConflictException; with the same ones, the earlier cluster. - AWS_OWNED_KMS_KEY names AWS's own key on create and update. AWS::DSQL::Cluster reads DeletionProtectionEnabled and PolicyDocument with AWS::NoValue as left out, and an update that drops the multi-Region properties clears them, as it already reset the key and deletion protection. ListTagsForResource copies the tags under the cluster's lock, and a cluster's lock goes with the cluster. * fix(dsql): answer errors, policies, updates and multi-Region clusters as DSQL does A review asked for the attribute coverage, the reason ValidationException carries, a real untag assertion and tests of the stack-update path. Measuring them on DSQL (eu-west-1, 2026-10-20) found more that did not match, fixed here too. - Attributes are written with resource.getAttributes().put, which the schema coverage test reads; EncryptionDetails, an object an output refuses on AWS, is recorded as a gap. - DSQL leaves reason out of its model-validation errors. Only the page token's refusal carries it, with fieldList naming next-token and its own text. maxResults no longer quotes the value. - Tag calls answer what DSQL answers: 403 for an ARN that is not a cluster ARN, 400 BadRequestException for another Region's, 404 NotFoundException for no cluster. The 403s name the caller. - Policy versions are epoch milliseconds, DeleteClusterPolicy answers the deleted version, and the missing-policy and stale-version errors carry DSQL's texts and resourceType. - Policies are checked and kept as DSQL does: its three refusal texts, a service principal, a principal that names no one, a public grant, and the lockout check when both policy actions are denied to the caller, unless bypassPolicyLockoutSafetyCheck. The kept form is Jackson's pretty printer in DSQL's element order, with condition operators and keys in HashMap order, as measured. - The public check shares its condition keys with Lambda web functions through PublicAccessConditions, and S3 now takes its fixed-value and SourceIp range tests from there. Sharing the whole rule was tried and dropped: DSQL was measured to treat some operators otherwise than LambdaWeb's and S3's rules do (ForAnyValue:, ArnLike "*", StringEquals "*"), so the operator rules stay per service. The lockout check is IamPolicyEvaluator's. - A multi-Region cluster is PENDING_SETUP and lists itself until it and each peer name one another, then ACTIVE; its deletion answers PENDING_DELETE. - AWS::DSQL::Cluster reads its properties through CfnPropertyTypes, so a PolicyDocument object or DeletionProtectionEnabled "yes" fails as on AWS, where Boolean.valueOf made "yes" false. An update leaves a property the template no longer sets as it was, deletion protection, KMS key and multi-Region alike, and removes only the tags and the policy; an earlier change put them back to their defaults, which was not measured and is not what CloudFormation does. A policy the template does not change keeps its version, and create settles on PENDING_SETUP too. DsqlServiceTest, DsqlClusterPoliciesTest and DsqlCfnProvisionerTest cover these in isolation, the integration tests over the wire. * fix(dsql): keep the public access rule to DSQL and forget a deleted policy's version A review asked to leave S3 and Lambda web functions out of this change, and pointed at DSQL's own block public access page. The shared helper is dropped and S3 and Lambda web functions are as on main; folding their copies into one helper belongs to a separate change. DSQL now has its own keys: the trusted ones its page lists, and aws:SourceIp, aws:SourceVpcArn and the three aws:Vpce* keys, which the page leaves out but DSQL accepts (measured, eu-west-1, 2026-10-20). As the page says, a policy variable never restricts: StringEquals with ${aws:PrincipalArn}, ${aws:SourceVpc} or a role/${aws:username} ARN is public on DSQL. ArnEquals reads like ArnLike, as IAM matches both the same way, so a value that is no ARN, ${aws:SourceArn} among them, matches nothing and restricts, as measured. DeleteClusterPolicy left the deleted version on the cluster, so a put naming it went through; it is now cleared, and a put that names a version on a cluster with no policy is refused as not found. |
||
|
|
1f96bf42f1 |
feat(ecr): registry policy, replication and scanning configuration (#5817)
* feat(ecr): registry policy, replication and scanning configuration PutRegistryPolicy, GetRegistryPolicy, DeleteRegistryPolicy, PutReplicationConfiguration, DescribeRegistry, PutRegistryScanningConfiguration and GetRegistryScanningConfiguration store the registry's own settings per account and Region and return them as written. Floci does not replicate or scan images or evaluate the policy, as with repository policies. - The policy must be a JSON object; a missing one is RegistryPolicyNotFoundException. - Replication destinations, filters and rule counts are checked against the service model, and an empty rules list clears the configuration. - Scanning defaults to BASIC with no rules, and CONTINUOUS_SCAN is refused with BASIC. Closes #5803 * fix(ecr): put the registry setting writes under one lock PutRegistryPolicy, DeleteRegistryPolicy, PutReplicationConfiguration and PutRegistryScanningConfiguration read the registry's one settings record, change a field and write it back. Terraform applies the three resources in parallel, so two writers could start from the same record and the later write dropped the other's setting. The read, change and write now happen under a lock per account and Region. * refactor(ecr): check registry setting requests against the vendored model The Resource Groups request walker moves to core.common as RequestConstraintCheck, so a service can check a JSON request against botocore's constraints: member types, required members, lengths and counts, number ranges, patterns and enums, each answered in the service's own words. Resource Groups keeps its BadRequestException messages. - tools/aws/request_shapes.py gains build_constraints, which regen_resource_groups_shapes.py now calls; its vendored file is unchanged. - tools/aws/regen_ecr_shapes.py vendors ecr-request-shapes.json for the seven registry setting actions, and aws-data-sync and aws-data-check run it. - EcrJsonHandler checks those requests first, answering InvalidParameterException in ECR's form. The hand-written checks the model states are gone; a policy that is not a JSON object and CONTINUOUS_SCAN with BASIC stay, as the model cannot say them. |
||
|
|
c6551a47bc |
feat(ecr): PutImage and the layer API (#5784)
* feat(ecr): PutImage and the layer API PutImage, BatchCheckLayerAvailability, GetDownloadUrlForLayer, InitiateLayerUpload, UploadLayerPart and CompleteLayerUpload now go through the registry:2 container that docker push already writes to, so an image written through the API is the image docker pull and BatchGetImage return. - PutImage writes the manifest under its tag, or under its digest. It answers ImageDigestDoesNotMatchException, ImageAlreadyExistsException, ImageTagAlreadyExistsException and LayersNotFoundException as the model lists them. - Layer uploads map onto registry upload sessions, held in memory. Parts must follow each other, be at most 20 MiB, and all but the last at least 5 MiB. - GetDownloadUrlForLayer returns the blob's address on Floci's registry endpoint. - The immutable-tag guard moves into EcrService, so a docker push and a PutImage of one tag cannot both succeed. Closes #5735 * fix(ecr): refuse mixed layer digests, keep push time on retag, expire idle uploads CompleteLayerUpload refuses a second, different layer digest instead of ignoring it. PutImage keeps an image's first push time when it retags it. A layer upload idle for a day is refused even when no other upload opens, and dropping one cancels its registry upload session. * fix(ecr): check PutImage tags, require a manifest media type, share registry error handling - PutImage checks imageTag against the OCI tag grammar and answers InvalidParameterException otherwise. The tag goes into the registry's manifest URL, so v1?x wrote v1 and a slash wrote into another repository. - A manifest with no mediaType needs imageManifestMediaType, as on AWS, instead of Floci guessing one from the manifest's shape. - PutImage and the layer API reach the registry through one helper, callRegistry, in place of five copies of the same failure handling. * fix(ecr): answer ECR's own message for a tag outside its rule PutImage refuses a tag outside ECR's rule, [a-zA-Z0-9-_.]+ up to 300 characters, with ECR's message. A tag ECR takes but the backing registry cannot hold, one starting with '.' or '-' or longer than 128 characters, is refused with a message naming that limit, which docs/services/ecr.md now notes. |
||
|
|
be2cb677d0 |
feat(resourcegroups): support EC2 capacity reservation pools (#6011)
Signed-off-by: Andre Kurait <akurait@amazon.com> |
||
|
|
2f6f3a8f86 |
feat(route53resolver): add TagResource, UntagResource and ListTagsForResource (#6035)
* feat(route53resolver): add TagResource, UntagResource and ListTagsForResource The Terraform provider lists tags after creating any aws_route53_resolver_* resource, and Route 53 Resolver had no tagging operations, so the apply failed right after the create succeeded. Tags are kept per ARN in their own store, because none of the modelled resource shapes carries a Tags member. Resolver endpoints, resolver rules and custom firewall domain lists are taggable; tags passed to their Create calls are stored, and validated before anything is allocated. Lookup resolves the id in the caller's account and requires the stored ARN to match exactly, so an ARN naming another account, region or partition is ResourceNotFoundException. ListTagsForResource pages with MaxResults (1-100, default 100) and NextToken. * fix(route53resolver): scope tagging lookups to the caller and type-check tag input TagResource, UntagResource and ListTagsForResource now require the ARN to name the caller's own partition, region and account before reading any store, and fetch the resource with getForAccountMigratingLegacy, so an unprefixed pre-multi-account entry is migrated only into the account its stored ARN names. Before, a plain get() moved such an entry into whichever account looked it up first, and that account could then tag it by naming its original ARN. Tag Key and Value, and each UntagResource TagKeys entry, must be JSON strings (TagKey/TagValue are string shapes) instead of being coerced with asText(). MaxResults must be an integral number before its 1-100 range is checked, so 1.5 or true is InvalidParameterException rather than 1. ListTagsForResource copies the stored tag node under the monitor that TagResource and UntagResource mutate it under, so a concurrent tag change can no longer break the iteration or show a half-applied page. * fix(route53resolver): page tags through Pagination and cap tag lists at 200 ListTagsForResource now pages through the shared Pagination.paginate with an opaque, namespaced cursor on the tag key instead of a raw offset, so a forged or stale offset token is InvalidNextTokenException. MaxResults stays type-checked against the JSON value (integer 1-100, InvalidParameterException). TagResource Tags, UntagResource TagKeys and the Tags on CreateResolverEndpoint, CreateResolverRule and CreateFirewallDomainList are capped at the modelled 200 entries per request (TagList/TagKeyList max 200). Over the cap is the operation's parameter error: InvalidParameterException, or ValidationException on CreateFirewallDomainList. No per-resource total is enforced; the model does not state one. |
||
|
|
fb390968d5 |
feat(guardduty): support publishing destinations (#6016)
* feat(guardduty): support publishing destinations
Add CreatePublishingDestination, DescribePublishingDestination,
UpdatePublishingDestination, DeletePublishingDestination and
ListPublishingDestinations under /detector/{detectorId}/publishingDestination.
Previously these returned UnknownOperationException, which broke
Terraform's aws_guardduty_publishing_destination.
Destinations are stored per detector through StorageFactory, so they follow
the detector's account and region scoping, survive a persistent-storage
reload, and report PUBLISHING on create (the state Terraform's create waiter
targets). A missing destination returns BadRequestException with the message
the Terraform provider matches for not-found. Deleting a detector removes its
destinations.
clientToken makes create idempotent and is capped at the model's 64
characters, measured in code points as the model's length constraint is.
destinationArn stays optional on create: the GuardDuty model marks
DestinationProperties.DestinationArn and KmsKeyArn as not required
(botocore guardduty/2017-11-28 service-2.json).
The service gains a five-store constructor; the existing three- and
four-store (malware protection plan) constructors delegate to it.
Closes #4983
* docs(guardduty): update the service matrix operation count
* test(guardduty): cover the publishing destination lifecycle through the SDK
Create, describe, update, list and delete an S3 publishing destination
with the AWS SDK v2 GuardDuty client, asserting the shapes as the SDK
reads them, including the required publishingFailureStartTimestamp.
|
||
|
|
65e35adf54 |
feat(backup): add CreateLogicallyAirGappedBackupVault (#6015)
* feat(backup): add CreateLogicallyAirGappedBackupVault
Route PUT /logically-air-gapped-backup-vaults/{name}. The vault shares the
standard vault namespace and ARN shape; DescribeBackupVault reports VaultType
LOGICALLY_AIR_GAPPED_BACKUP_VAULT, VaultState and the retention days. Both
retention values are required, MinRetentionDays >= 7, MaxRetentionDays >= Min.
The vault is locked at creation so the existing retention enforcement applies,
vault-lock put/delete are rejected on it, and ListBackupVaults honours the
vaultType filter.
Closes #4986
* docs(backup): correct the service matrix operation count
* fix(backup): fail a job whose vault was replaced before it completed
A backup job resolved its vault by name at completion. Deleting a
logically air-gapped (or locked) vault while a job was in flight is
allowed, since it holds no recovery point yet; recreating the name as a
standard vault then received the old job's recovery point, which the
unlocked replacement let be deleted inside the original vault's minimum
retention.
Completion now checks, under the vault-name monitor, that the vault
holding the name is the incarnation the job started in. If not, the job
ends FAILED with no recovery point, as it cannot land in a vault that no
longer exists.
* fix(backup): air-gapped vault LockDate at creation; standard vault VaultType BACKUP_VAULT
CreateLogicallyAirGappedBackupVault now sets LockDate to the creation
date, so the vault's lock reads as compliance mode (immutable) rather
than a governance lock with no LockDate. DescribeBackupVault and
ListBackupVaults report VaultType BACKUP_VAULT for standard vaults,
filled at read time so vaults stored with no VaultType are covered.
|
||
|
|
e06013e1fe |
docs: keep grouped service action counts in sync (#5991)
* docs: keep grouped service action counts in sync * docs: guard service action source coverage * docs: require counts for generated action tables * docs: correct on-premises instance tag descriptions |
||
|
|
6027872078 |
feat(codeartifact): add ListPackageVersionAssets for every format (#5962)
Lists a package version's assets with size and SHA-256 hash, for generic (from its own packageVersions record) and maven/npm/pypi/nuget (bridged to each sidecar, reusing the listPackageVersionAssetNames/fetchPackageVersionAsset primitives CopyPackageVersions already built). Confirmed live against all four sidecars with Docker-gated tests; real AWS places no format restriction on this action either. First of the six list/lifecycle actions (item 10 in the design plan). Fixes caught by Qodo's review after opening the PR, verified against the wire model and the sidecar code before applying: the endpoint was registered as GET, but real CodeArtifact's ListPackageVersionAssets is a bodyless POST with query parameters, like every other List* action in this service (the Describe*/Get* actions are the ones that use GET) - switched the controller and its Docker-gated tests to POST. Also stopped fetching and hashing every asset in a container-backed version before paginating: asset names are now paginated first, and only the page actually being returned gets fetched and hashed. Added regression tests for the validation paths (missing fields, invalid format, and namespace requirements) that had none. |
||
|
|
494a6725a1 |
feat(iam): release and exchange the delegation token (#5914)
M4a dispatched the delegation request lifecycle as far as ACCEPTED and stopped there, so no request reached FINALIZED and the credentials the whole feature exists to hand over could not be obtained at all. This is the token half: IAM SendDelegationToken and STS GetDelegatedAccessToken, the last two of the ten operations the family spans. SendDelegationToken takes a request id, answers no output shape, and moves an ACCEPTED request to FINALIZED. The reference says that "cannot be rolled back", which makes it the one transition that refuses to repeat itself: releasing twice answers ConcurrentModification, the wrong-state shape the other four writers already use. Releasing mints the token and records the instant it happened, both on the request, because the shape publishes neither and nothing else is going to hold them. Releasing is also where OnlySendByOwner is finally read. M4a stored the flag with nothing looking at it, which was right while nothing could release; SendDelegationToken is the one operation it speaks to. It "prevents any party other than the owner from calling SendDelegationToken API for this delegation request", for the case the reference spells out: the owner lacked the permission to approve, forwarded the request to a more privileged user, and still has to be the one who hands the token over. So the release is the one call on this family decided per identity rather than per account, the handler passing the caller ARN as associate and accept already do, and an approver who is not the owner answers AccessDenied 403, which the API reference publishes as a common error for every IAM operation. GetDelegatedAccessToken exchanges that token for credentials in the customer's account. The delegation period "starts when customer releases the exchange token, not when the product provider redeems it", and "all credentials obtained from the same exchange token expire at the same time", so the expiry is release plus SessionDuration whenever it is redeemed and a token can be exchanged repeatedly, each exchange buying less time than the one before. AssumedPrincipal is the identity that approved the request rather than the one that claimed it: accepting a request "records the details and the state of the identity that called this API", and "this is the identity that gets mapped to the delegated credential", which the user guide says the same way, the provider obtaining the "approver's temporary credentials". The two are the same identity until a request is forwarded for approval, which is the case OnlySendByOwner serves. PackedPolicySize is left out: the model deprecates it and states it is not populated for this operation. Two answers had to be chosen rather than read off, both forced by the error set. GetDelegatedAccessToken models exactly three errors, and none of them says "no such token", so a token nothing matches is answered as an expired one: from the caller's side the two are the same situation, and the reference's own remedy, "Request a new token and retry the operation", fits both. A token offered by an account that did not file the request answers AccessDenied 403 instead, the shape this handler already uses for a caller who may not perform the operation, because "the exchange token can only be redeemed by the product provider account that created the delegation request" is a refusal rather than an expiry. The account is checked before the window so that neither guard can hide the other, and both are tested with the other one passing. The code is ExpiredTradeInTokenException, not ExpiredTradeInToken. The model writes the Exception suffix into error.code for that shape and for RegionDisabledException while PackedPolicyTooLarge drops it, so each code is read off its own shape rather than derived from the shape's name. What the credentials carry is the request's PermissionPolicy, the policy AWS renders from the partner's registered template. No API registers a template, so nothing sets it and the session carries none, which is where M4a left PolicyTemplateArn for the same reason. The session is filed in the customer's account with no issuing key, and as a delegated session rather than an issued one. The delegation is the customer's grant, so a partner key that happened to name an IAM user must not become the session's issuer: issuingUser bounds a session by the issuer's own permissions, which would be the partner's rather than what the customer gave away. The approver is carried in a field of its own for the same reason the issuer is left empty. An issued session holds its identity in the role ARN slot, which is resolved by name, so an approver named like a role would act with that role's permissions, one named like no role would act with none, and GetCallerIdentity would answer for a role that does not exist. A delegated session instead resolves its approver from what the ARN says it is: a user's own policies and boundary, the account's access where the root approved the request, the role behind a session assumed from one, and nothing where that identity is gone. The account is the owner's either way, a request being visible only from the account that claimed it. The request's PermissionPolicy still bounds it on top wherever one exists, which is where the registered template would land. One gap this step cannot close on its own. AWS publishes the exchange token only in the ExchangeToken notification on the partner's SNS topic, and no operation on the family answers it. Floci sends no notification yet, so the token is minted onto the record and nothing hands it back over the wire. The integration test reads it from the service for that one step and drives everything either side of it over the wire. Twenty-one tests: eight on the service covering the release, the owner-only flag either way, the repeated exchange, both refusals and the window, with a clock the test owns, eight over the wire across the two accounts, one on the handler holding the session to the customer's account and to its approver, and four under IAM enforcement on what the credentials may then do: an approver allowed to read and not write, whose delegated credentials do exactly that, a request forwarded to an administrator who approved it, whose credentials write where its owner can only read, a role carrying the approver's name that lends them nothing, and a request approved by the account root. Four probes, each reverting one thing: mapping the credentials to the owner fails the forwarded case and the handler test and nothing else, anchoring the expiry at the redemption instant fails the two tests that describe it, filing the session against the partner fails the one that holds it, and dropping the owner-only guard fails the one that asks for it. SendDelegationToken joins the delegation family in ResourceArnBuilder, AWS giving it the delegation-request type, so it is authorized against the request rather than the wildcard. Routing needs nothing added since #5879 reads each service's actions from its botocore model, which names both of these, so the matrix rows in docs/services/index.md are the only counts this moves: IAM 174 to 175 and STS 7 to 8. |
||
|
|
7dc514b52f |
feat(emr): ListReleaseLabels, DescribeReleaseLabel and ListSupportedInstanceTypes (#5748)
* feat(emr): ListReleaseLabels, DescribeReleaseLabel and ListSupportedInstanceTypes None was served, so Terraform's aws_emr_release_labels and aws_emr_supported_instance_types data sources failed against Floci. A curated catalogue of EMR releases (emr-7.5.0, Floci's default, and emr-7.4.0, emr-6.15.0, emr-6.14.0 and emr-5.36.2) carries each release's applications and versions from the EMR Release Guide and its recent Amazon Linux releases, with common instance types and their EC2 sizes. The three actions filter and page it as the API documents, and answer InvalidRequestException for an unknown release, a bad token or an out-of-range MaxResults. A configured default release outside the catalogue is still listed. Closes #5734 * fix(emr): report EMR architecture values and match application versions without regard to case ListSupportedInstanceTypes returned the EC2 spellings x86_64 and arm64; the EMR model gives X86_64 and AARCH64 for Architecture. The ListReleaseLabels application filter matched the name without regard to case but not the version, so phoenix@4.14.3-hbase-1.4 missed emr-5.36.2. * refactor(emr): page the release catalogue with the shared Pagination ListReleaseLabels and ListSupportedInstanceTypes now page through core.common.Pagination, with the filters in the token namespace so a token replayed with other filters, or altered, is refused. DescribeReleaseLabel answers every application, as AWS reserves its MaxResults and NextToken. The EMR integration tests share one request helper. |
||
|
|
e3e06a1122 |
feat(iot): add RegisterCertificateWithoutCA and the V2 principal lists (#5772)
* feat(iot): add RegisterCertificateWithoutCA and the V2 principal lists RegisterCertificateWithoutCA registers a certificate from any issuer in SNI_ONLY mode. ListThingPrincipalsV2 and ListPrincipalThingsV2 page the thing principal attachments and report each one as NON_EXCLUSIVE_THING, because Floci does not model exclusive attachment. * fix(iot): validate the principal and page size of the V2 principal lists ListPrincipalThingsV2 requires a principal, and both V2 lists accept 1 to 250 results per page, as on AWS. Tests cover these checks and the RegisterCertificateWithoutCA rejection of a missing PEM and an unknown status. * fix(iot): refuse a device certificate registered in more than one account AWS selects the account from the server name, which Floci does not do yet. The MQTT TLS listener therefore refuses a certificate that more than one account registers, instead of admitting it under the lowest account ID. RegisterCertificateWithoutCA drops the cached location, and the lookup runs under compute, so a connect cannot cache a stale account. * fix(iot): make the RegisterCertificateWithoutCA duplicate check atomic A lock holds the duplicate check and the store write together, as CreateAuthorizer does, so two identical registrations at the same moment store one certificate and the other caller gets the 409. The 409 carries resourceId and resourceArn, as AWS lists for this call. |
||
|
|
66fce77bdc |
feat(iam): generate, claim and answer delegation requests (#5797)
IAM temporary delegation lets an AWS Partner ask a customer for scoped, time-limited access to the customer's account: the partner files a request, the customer claims and answers it, and an accepted request releases an exchange token the partner trades for credentials. Floci dispatched none of it, so all seven lifecycle operations answered UnsupportedOperation 400. The family was filed as a non-goal on the strength of CreateDelegationRequest stating "This API is not available for general use. In order to use this API, a caller first need to go through an onboarding process described in the partner onboarding documentation". That sentence appears exactly once in the whole API reference, and the partner user guide describes a generally available feature with a published lifecycle. The gate is an AWS-side account allowlist for ISV Accelerate partners, "Enable API access for your specified accounts", not a protocol behaviour, and an emulator has no allowlist. Answering NoSuchEntity because nothing can exist would emulate the feature's absence rather than the feature. This is the lifecycle half: Create, Associate, Accept, Reject, Update, Get and List. SendDelegationToken and STS GetDelegatedAccessToken are the token exchange and come next, so no request reaches FINALIZED yet, and GetHumanReadableSummary stays undispatched because its summary is LLM- generated on AWS. A delegation request is the one IAM record two accounts share, which decides how it is stored: keyed by id under the creating account and resolved across accounts on read, because the reference makes the id globally resolvable and decides access from the request's own owner fields. A request nobody owns "can be called by any account"; one naming a target account is readable only from there, which is why a partner loses sight of its own filing once it is aimed. Floci decides that at account granularity, there being no per- identity permission on a request to consult. ListDelegationRequests leaves out a request with no owner even when it names the listing account, as the reference states, so a partner does not list its own filings at all, which matches the guide telling partners to track state from the notifications. Expiry is applied when a request is next read rather than swept by a worker. Each state carries the window AWS publishes, a day for UNASSIGNED and a week for every other state including the terminal ones, and a request past its window reads back as EXPIRED. That needs no scheduler to be correct and no clock to be mocked globally, so the service takes its own Clock and the unit test advances that rather than the shared test clock. Two answers had to be chosen rather than read off. An operation asked to move a request out of a state it no longer holds answers ConcurrentModification: no modeled error says "wrong state", and AcceptDelegationRequest models only NoSuchEntity, ServiceFailure and ConcurrentModification, so the conflict is the closest of the three and is used on all four writers rather than a different code each. PermissionCheckResult answers UNSURE when the check is asked for, which the enum models, because a delegation request carries no permission to evaluate. A member that breaks the format or constraints it declares answers ValidationError. The reference publishes that as a common error, "the input doesn't meet the required format or constraints", for every IAM operation while listing it on no operation at all, which is why it appears in no error table and in none of these; the rest of IAM answers it in the same shape and wording, so these operations do too. The InvalidInput they do model is kept for a value that cannot be read as the member's type, which is where the shared pagination already puts a MaxItems that is not a number. A lifecycle call reads a request, checks its state and writes it back, so all of them take one lock, as the sibling IAM services do with theirs. Without it two callers could both claim the same unassigned request and the later write would decide the owner, and two creates could both pass the workflow-id uniqueness check. Each call also takes a single clock reading, threaded from the lookup into the transition, so a request cannot be expired on the way in and moved on anyway. Two shape details come from the pinned botocore model rather than the reference PDF, which omits both: GetDelegationRequest also takes DelegationPermissionCheck and answers PermissionCheckStatus and PermissionCheckResult, and ListDelegationRequests spells its flag isTruncated in lower case where every other IAM list spells it IsTruncated. The model names the member, so the wire follows the model. SessionDuration's 300 to 43200 range, PolicyParameter's shape and the 100-default, 1000-maximum page size come from there too. The CLI reference supplies the constraints the PDF leaves hard to read: the redirect URL's whole pattern, which the PDF breaks across a line, the character class the free-text members carry, and the printable-ASCII class on a policy parameter's name and values. Each is enforced. It also settles that the Permissions structure is required while both of its members are optional, marking neither. Reading it is what caught an empty required member being treated as an omission: Description is required and its pattern permits an empty string, so Description= is a value and only an absent member is missing, which is a distinction that exists on the wire and is tested there. Notes and RejectionReason both exist on the shape and each gets exactly one writer: an update carries notes for an administrator and a rejection carries the explanation the reference describes for it. An indexed member is read from the keys the request carries rather than counted up from one, so Parameters.member.2 without a member.1 keeps its entry instead of being dropped at the gap, and a boolean member has to carry true or false rather than being read as false for anything else. delegation-request leaves ResourceArnBuilder.UNRESOLVED_TYPES, since that entry claimed the type belongs only to actions nothing dispatches. The four by-id actions mint arn:<partition>:iam::<account>:delegation-request/<id> from the request, the same way the ARN-carrying actions pass an ARN through, one step earlier. CreateDelegationRequest stays at the wildcard because IAM assigns the id, and UpdateDelegationRequest stays there because AWS publishes no authorizable action for it at all. UnresolvedResourceTypesIntegrationTest would have failed until this was done, which is that test working as intended. The console deep link follows the partition too. CreateDelegationRequest answers the URL the partner redirects the customer to, and a caller in China or GovCloud was handed a console their account cannot reach. The host now comes from the region's partition, the way the CodePipeline approval links already resolve theirs, keeping the commercial console's path because that is the only path any partition publishes. The account-root stand-in behind an owner ARN is minted through RegionResolver for the same reason rather than concatenated, which is also the shape IamEnforcementFilter synthesizes. Nothing is enforced that AWS does not publish. LimitExceeded is modeled with no quota behind it, so none is invented. NotificationChannel is validated and stored and nothing reads it, there being no notification to send yet. PolicyTemplateArn is kept as given and resolved against nothing, templates being registered by email with no API. All four new model types are registered for reflection, the state enum included: it is reachable from a stored request, and a native image that cannot read it back loses every delegation request on restart, which is what the persistence guard checks. Twenty-seven unit tests drive the state machine, both expiry windows, the two races and the deep link in each partition, with a clock the test owns, and fifteen integration tests drive the lifecycle over the wire across two accounts, the access key id being the account id as the rest of the suite does it. Routing needs nothing added: #5879 has the Query router read each service's actions from its botocore model, which names all seven already, so the matrix row in docs/services/index.md moving 167 to 174 is the only count this changes. |
||
|
|
faf344afd1 |
feat(codeartifact): add CopyPackageVersions for the generic format (#5854)
Copies one or more versions of a package between repositories in the same domain, matching AWS's documented all-or-nothing batch semantics: a version missing from the source fails NOT_FOUND, a version already identical at the destination is a silent no-op, a differing one fails ALREADY_EXISTS unless allowOverwrite is set, and any one failure reports every other requested version as SKIPPED rather than performing a partial copy. versionRevisions is checked against the source's actual revision (MISMATCHED_REVISION on a mismatch). Maven, npm, pypi, and nuget are not yet bridged, the same restriction PublishPackageVersion already has for those formats, and are documented as a known limitation. |
||
|
|
fa2a49e771 |
feat(redshift-serverless): add scheduled action actions (#5852)
Add CreateScheduledAction, GetScheduledAction, ListScheduledActions, UpdateScheduledAction and DeleteScheduledAction. An action is recorded and echoed, never run, and a cron schedule reports no upcoming invocations. It is tied to the namespace by the namespace's generated id, so a namespace recreated under the same name does not inherit it. Required members, name patterns, the snapshot name prefix length and the tag shape come from the AWS model through RedshiftServerlessRequestShapes. Only what the model cannot express stays in the service: the schedule union, the time window, the retention range and the namespaces that must exist. |
||
|
|
2a012cf9a4 |
feat(redshift-serverless): add snapshot copy configuration actions (#5798)
* feat(redshift-serverless): add snapshot copy configuration actions Add CreateSnapshotCopyConfiguration, ListSnapshotCopyConfigurations, UpdateSnapshotCopyConfiguration and DeleteSnapshotCopyConfiguration. A configuration is recorded and echoed; Floci copies no snapshot. A namespace has one configuration at a time and the destination Region must differ from its own. The configuration is tied to the namespace by the namespace's generated id, so a namespace recreated under the same name does not inherit it. Required members come from the AWS model through RedshiftServerlessRequestShapes. The destination Region name and the retention range are checked by hand because the model leaves them unconstrained. * fix(redshift-serverless): validate boundary inputs and scope snapshot copy pagination tokens * refactor(redshift-serverless): share maxResults range check and invalidPagination helper |
||
|
|
7cab804d22 |
feat(redshift-serverless): add custom domain association actions (#5766)
* feat(redshift-serverless): add custom domain association actions Add CreateCustomDomainAssociation, GetCustomDomainAssociation, ListCustomDomainAssociations, UpdateCustomDomainAssociation and DeleteCustomDomainAssociation. An association is recorded and echoed; Floci serves no traffic on the domain and reads no ACM certificate. It is tied to the workgroup by the workgroup's generated id, so a workgroup recreated under the same name does not inherit it. The domain name and certificate ARN patterns, lengths and the required members come from the AWS model through RedshiftServerlessRequestShapes, so the service carries no validation of its own. * fix(redshift-serverless): address review findings for custom domains - Expose custom domain name and certificate ARN in workgroup responses. - Ensure custom domain names are unique across workgroups in a region. - Remove ambiguous Pagination.paginate overload in favor of paginateNamespaced. - Add domain name and certificate ARN validation patterns and length checks. - Enforce validation for required parameters in custom domain operations. * fix(redshift-serverless): enforce single custom domain per workgroup and populate certificate expiry * fix(redshift-serverless): read certificate expiry dynamically and share custom domain serialization |
||
|
|
c67a5afbc3 |
feat(redshift-serverless): add endpoint access actions (#5742)
* feat(redshift-serverless): add endpoint access actions Add CreateEndpointAccess, GetEndpointAccess, ListEndpointAccess, UpdateEndpointAccess and DeleteEndpointAccess. Floci creates no VPC endpoint, so an endpoint is recorded and echoed with the workgroup's own address and port. It is tied to the workgroup by the workgroup's generated id, so a workgroup recreated under the same name does not inherit its predecessor's endpoints. Required members and the ownerAccount pattern come from the AWS model through RedshiftServerlessRequestShapes. The endpoint name rule is checked by hand because the model documents it but does not encode it. * fix(redshift-serverless): validate boundary inputs and scope endpoint pagination tokens Validate policy is not null or blank in requireJsonObject before Jackson parsing to avoid unchecked IllegalArgumentException. Validate required endpointName, workgroupName, and subnetIds at create boundary. Validate non-null vpcSecurityGroupIds on endpoint updates. Add namespaced paginate overload with limit validation, scope ListEndpointAccess tokens to endpoint-access, and report pagination errors as ValidationException. * fix(redshift-serverless): allow optional vpcSecurityGroupIds on update and reuse existing pagination overload Allow omitting or passing null vpcSecurityGroupIds in UpdateEndpointAccess to leave existing security groups unchanged. Validate maxResults in the service and call the existing namespaced Pagination.paginate overload instead of adding core overloads. Omit the snapshot policy null check which belongs to #5730. |
||
|
|
772ec8d0c9 |
feat(rds): add the snapshot export task API (#5787)
* feat(rds): add StartExportTask, DescribeExportTasks and CancelExportTask with the export task lifecycle * docs(rds): document the snapshot export task API * fix(rds): route the export task actions to RDS when a request has no signing scope * fix(rds): refuse an export to a bucket outside the snapshot's region * fix(rds): answer export task calls with a copy of the task taken under the lock * fix(rds): refuse an unknown DescribeExportTasks filter name before matching any task * fix(rds): fail an export to a bucket in another region as a task, as RDS does, rather than refuse it * docs(rds): say that a bucket in another region fails an export in mock mode too |
||
|
|
4353e4232b |
feat(rds): DescribeDBLogFiles and DownloadDBLogFilePortion (#5741)
* feat(rds): DescribeDBLogFiles and DownloadDBLogFilePortion Both answered UnsupportedOperation, so an instance's log could only be read with docker logs, outside the AWS API. An instance's log is now read from its database container and cut into files the way RDS names them: hourly error/postgresql.log.* files for PostgreSQL, error/mysql-error.log for MySQL and MariaDB, and log/ERROR for SQL Server. DescribeDBLogFiles filters and pages them, and DownloadDBLogFilePortion follows the API reference's marker rules with a 1 MB block cap. Control characters XML cannot carry come back as U+FFFD. In mock RDS mode an instance has no log files. Closes #5733 * fix(rds): bound and validate log file reads A log read now takes the most recent 100,000 lines instead of the whole history, fails when Docker does not finish in time instead of returning part of the log, and, when Docker no longer knows the container, finds or starts the backend once before answering DBInstanceNotReady rather than an empty log. A single line over 1 MB is cut at 1 MB like the rest of the block. Negative FileSize, FileLastWritten and Marker values are InvalidParameterValue; the shared offset paging refuses a negative marker instead of starting over. * fix(rds): close the Docker log stream when a log read times out A timed-out read now closes its callback before failing, so the stream stops and nothing writes into the buffer after the read gives up; the buffer is also written and read under one lock. * refactor(rds): keep portion's Javadoc on portion truncateUtf8 had landed between portion's comment and portion itself. It now follows portion. * test(rds): read log files on the first call, and import class names CreateDBInstance returns once the database accepts connections, so the startup log is already in the container's output. The Docker and SDK log tests now assert on the first DescribeDBLogFiles and DownloadDBLogFilePortion call instead of polling. The timeout test and RdsLogFilesTest import the classes they had written out in full. |
||
|
|
a68e6bc768 |
feat(redshift-serverless): add resource policy actions for snapshots (#5730)
* feat(redshift-serverless): add resource policy actions for snapshots Add PutResourcePolicy, GetResourcePolicy and DeleteResourcePolicy. A policy is stored per account and Region and echoed in the shape of the API model, not evaluated. It is tied to the snapshot it was put on by the snapshot's creation time, so a snapshot recreated under the same name does not inherit it. Required members come from the AWS model through RedshiftServerlessRequestShapes. * fix(redshift-serverless): validate resource ARN before policy lookup and add account isolation tests Validate resourceArn with snapshotNameFromArn at the start of require() so that foreign-account or non-snapshot ARNs return ValidationException on GetResourcePolicy and DeleteResourcePolicy even when no policy is stored. Parameterize snapshotNameFromArn so error messages reference resourceArn. Add regression tests covering missing resourceArn on PutResourcePolicy and foreign ARN reads/deletes. Add integration test verifying policy isolation across accounts under real request contexts. |
||
|
|
9174147cb6 |
fix(account): implement DeleteAlternateContact (#5560)
* fix(account): implement DeleteAlternateContact Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> * docs(account): document DeleteAlternateContact Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> --------- Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> |
||
|
|
9cd9002e73 |
feat(rds): EnableHttpEndpoint, DisableHttpEndpoint and HttpEndpointEnabled (#5736)
* feat(rds): EnableHttpEndpoint, DisableHttpEndpoint and HttpEndpointEnabled EnableHttpEndpoint and DisableHttpEndpoint answered UnsupportedOperation and DBCluster carried no HttpEndpointEnabled, so Terraform's enable_http_endpoint and CDK's enableDataApi never read back what they set. Clusters now record the flag and report it. The two actions take the cluster's ARN and raise ResourceNotFoundFault and InvalidResourceStateFault as the model lists them; CreateDBCluster, ModifyDBCluster and the AWS::RDS::DBCluster EnableHttpEndpoint property set it too. Turning it on is refused for engines other than Aurora PostgreSQL and Aurora MySQL. The Data API itself does not check the flag, so existing callers keep working. Closes #5732 * refactor(rds): one cluster ARN parser, and stricter Data API inputs clusterForResourceArn repeated the ARN parsing, cluster: prefix and account and Region check of clusterIdentifierFromArnOrName; both now call clusterIdFromArn, each raising the error its API documents. The Data API engine check takes aurora-postgresql, aurora-mysql and the older aurora name exactly instead of any name starting with aurora, and the AWS::RDS::DBCluster EnableHttpEndpoint property accepts true or false only, so a malformed value fails instead of turning the endpoint off. * fix(rds): take only aurora-mysql and aurora-postgresql for the Data API The API reference lists those two engines, and new clusters cannot carry the bare aurora name, so the check no longer accepts it. |
||
|
|
a37c27516a |
feat(route53resolver): implement ListResolverEndpointIpAddresses (#5731)
* feat(route53resolver): implement ListResolverEndpointIpAddresses The Terraform provider lists an endpoint's IP addresses right after CreateResolverEndpoint, so the missing operation (UnknownOperationException) failed every aws_route53_resolver_endpoint create. Built from the IpAddresses recorded at create time: one ATTACHED entry per request with a deterministic rni- IpId. Unknown endpoint ids raise ResourceNotFoundException. Not paginated, like the sibling List operations. * docs(route53resolver): update service matrix operation count * refactor(route53resolver): add endpoint IP addresses with a single addAll * fix(route53resolver): distinct IpIds for repeated entries; fail on missing IP record ListResolverEndpointIpAddresses hashed only the endpoint id and the entry, so two identical entries (two addresses in one subnet, both left for AWS to pick, which IpAddressesRequest allows) shared an IpId. Include the entry's position in the recorded list, which is normalised once at create and so stable across reads. An endpoint whose recorded IP requests are missing returned an empty list beside a nonzero IpAddressCount. Throw the modeled InternalServiceErrorException instead. * test(route53resolver): import List/HashSet instead of fully qualifying (checkstyle NoFqcn) * fix(route53resolver): return InternalServiceErrorException as HTTP 400 The Route 53 Resolver model gives InternalServiceErrorException no httpStatusCode, so clients expect the awsJson default of 400, as with every other Resolver error. |
||
|
|
d3fce14256 |
feat(redshift-serverless): add release track, managed workgroup and reservation reads (#5691)
* feat(redshift-serverless): add release track, managed workgroup and reservation reads Add GetTrack, ListTracks, ListManagedWorkgroups, ListReservations, ListReservationOfferings, GetReservation, GetReservationOffering and CreateReservation so SDK, CLI and IaC clients no longer get an unknown operation error. Floci models no zero-ETL managed workgroups and sells no reservations, so the lists are empty and the reservation lookups answer ResourceNotFoundException. The two release tracks are current and trailing. Required members, patterns and lengths come from the AWS model through RedshiftServerlessRequestShapes; only the track names, which the model leaves unenumerated, are checked by hand. * refactor(redshift-serverless): reuse Pagination.paginate and remove unused admin handle method Rely on Pagination.paginate for maxResults and nextToken validation in listTracks and listWithoutItems, matching the other Redshift Serverless lists. Remove the unused handle method and its duplicate unknown-operation response in RedshiftServerlessAdminJsonHandler. |