diff --git a/AGENTS.md b/AGENTS.md index d10a5c190a..7071571cfe 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -377,7 +377,8 @@ the registry and stubs what nothing serves; never add type-specific code to it. `CfnSchemaCoverageTest` requires every unset attribute to be fixed or recorded. A new type also needs its row in `schema-surface.tsv` (same directory): run `make cfn-schema-surface-sync`. A writable property the provisioner never reads goes in - `writable-property-gaps.tsv`. + `writable-property-gaps.tsv`. A provisioner arm that calls `droppedProperties` records, for each + writable property it reads, what a drop does in `drop-policy.tsv` (same directory). References: `SqsCfnProvisioner` (smallest), `Ec2LaunchTemplateCfnProvisioner` (update-in-place and replacement), `LogsCfnProvisioner` (reconcile-vs-replace update). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 64aa7c331b..b76ddef758 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -250,7 +250,8 @@ service you need already has a `*CfnProvisioner`, add your type there; otherwise "not emulated" stays distinguishable from "forgotten". A new type also needs its row in `schema-surface.tsv` (same directory): run `make cfn-schema-surface-sync`. A writable property the provisioner never reads goes in - `writable-property-gaps.tsv`. + `writable-property-gaps.tsv`. A provisioner arm that calls `droppedProperties` records, for each + writable property it reads, what a drop does in `drop-policy.tsv` (same directory). `SqsCfnProvisioner` is the smallest reference implementation; `Ec2LaunchTemplateCfnProvisioner` shows update-in-place and replacement handling; `LogsCfnProvisioner` shows a full reconcile-vs-replace diff --git a/docs/services/cloudformation.md b/docs/services/cloudformation.md index 8e5a14db9f..237c070c95 100644 --- a/docs/services/cloudformation.md +++ b/docs/services/cloudformation.md @@ -729,25 +729,28 @@ writable property is neither read nor listed, and when a listed property has sta closing a gap deletes its row. A new type needs a row in that file: `make cfn-schema-surface-sync` regenerates it from AWS's published schemas, and `cfn-schema-drift.yml` compares it weekly. -On AppSync resources, a property the previous template declared and the new template drops is cleared -on `UpdateStack`; one the stack never declared keeps the value set outside it. A few members go back to -their create default (`XrayEnabled`, `AdditionalAuthenticationProviders`, a function's `FunctionVersion`, -a resolver's `Kind`). Not cleared: the identifiers, `Tags` and `EnvironmentVariables`, which the -provisioner already drives to the template, required members (`AuthenticationType`, `Type`, a function's -`DataSourceName`), create-only members, an API key's `Expires`, a GraphQL API's `ApiType` and -`Visibility`, and a UNIT resolver's `DataSourceName`. When a later resource fails the update, the -rollback puts each AppSync API, data source, function, resolver and API key that the update changed in +A property the previous template declared and the new template drops is cleared on `UpdateStack`, +goes back to its create default, or is kept, on the AppSync resources and the EC2 networking types +(`Subnet`, `InternetGateway`, `RouteTable`, `NatGateway`, `EIP`, `PrefixList`). Kept: required members +(`AuthenticationType`, `Type`, a function's `DataSourceName`), a data source's and a function's `Name`, +an API key's `Expires`, a GraphQL API's `ApiType` and `Visibility`, a UNIT resolver's `DataSourceName`, +a `NatGateway`'s `PrivateIpAddress` and a `PrefixList`'s `MaxEntries`. An update that drops a +`PrefixList`'s `AddressFamily` or `PrefixListName` fails. Create-only members are not cleared either. +A property the stack never declared keeps the value set outside it, with two exceptions that an update +clears even then: a GraphQL API's `Tags` and `EnvironmentVariables`, which every update drives to the +template, and the `NatGateway` secondary address properties. The table says so on each of those rows. + +`src/test/resources/cloudformation/drop-policy.tsv` lists what a drop does to each property, and +`CfnSchemaCoverageTest` keeps the list complete. Other services follow +[#6606](https://github.com/floci-io/floci/issues/6606). + +When a later resource fails the update, the rollback puts each AppSync API, data source, function, resolver and API key that the update changed in place back to the members it had, including the ones the update cleared. An API that had no `AdditionalAuthenticationProviders` gets an empty list back, and an API key's `Expires` is sent again only when the update changed it, so one now less than a day away fails the rollback and the key stays as the update left it. A `GraphQLSchema` and a replaced AppSync resource (a changed `ApiId`, name, `TypeName` or `FieldName`) are not rolled back and end the stack in `UPDATE_ROLLBACK_FAILED`. -On the EC2 networking types (`Subnet`, `InternetGateway`, `RouteTable`, `NatGateway`, `EIP`, `PrefixList`), -a `Tags` property the previous template declared and the new one drops is cleared on `UpdateStack`, and -`Subnet`'s `MapPublicIpOnLaunch` goes back to `false`. A resource whose templates never declared `Tags` keeps the ones set outside the stack. Other services follow -[#6606](https://github.com/floci-io/floci/issues/6606). - ## Template URLs A `TemplateURL` names an object in Floci's S3, virtual-hosted or path-style. As on AWS, one whose diff --git a/src/main/java/io/github/hectorvent/floci/services/cloudformation/provisioners/AppSyncCfnProvisioner.java b/src/main/java/io/github/hectorvent/floci/services/cloudformation/provisioners/AppSyncCfnProvisioner.java index 338e2b83eb..ad12e461b0 100644 --- a/src/main/java/io/github/hectorvent/floci/services/cloudformation/provisioners/AppSyncCfnProvisioner.java +++ b/src/main/java/io/github/hectorvent/floci/services/cloudformation/provisioners/AppSyncCfnProvisioner.java @@ -668,17 +668,43 @@ public class AppSyncCfnProvisioner implements CfnResourceProvisioner { */ private void clearDropped(Map req, JsonNode props, ProvisionContext ctx, String resourceType) { - Set kept = KEPT_ON_DROP.getOrDefault(resourceType, Set.of()); Map defaults = DEFAULT_ON_DROP.getOrDefault(resourceType, Map.of()); for (String name : ctx.droppedProperties(props)) { - if (NEVER_CLEARED.contains(name) || kept.contains(name) - || CfnCreateOnlyProperties.isCreateOnly(resourceType, name)) { + if (NEVER_CLEARED.contains(name)) { continue; } - req.put(apiMemberName(name), defaults.get(name)); + String policy = dropPolicy(resourceType, name); + if ("clear".equals(policy) || policy.startsWith("default:")) { + req.put(apiMemberName(name), defaults.get(name)); + } } } + /** + * What an update does with a property of {@code resourceType} that the previous template declared + * and the new one drops: {@code clear}, {@code default:}, {@code keep} or + * {@code create-only} (a create-only property: skipped or refused, never cleared). + * {@link #clearDropped} acts on it, and {@code drop-policy.tsv} is checked against it. For a + * {@link #NEVER_CLEARED} name it gives what the provisioner's own handling of that name does, + * which is why {@link #clearDropped} skips those names before asking. + */ + static String dropPolicy(String resourceType, String property) { + if ("Name".equals(property)) { + return GRAPHQL_API.equals(resourceType) ? "default:generated name" : "keep"; + } + if ("Tags".equals(property) || "EnvironmentVariables".equals(property)) { + return "clear"; + } + if (KEPT_ON_DROP.getOrDefault(resourceType, Set.of()).contains(property)) { + return "keep"; + } + if (CfnCreateOnlyProperties.isCreateOnly(resourceType, property)) { + return "create-only"; + } + Object fallback = DEFAULT_ON_DROP.getOrDefault(resourceType, Map.of()).get(property); + return fallback == null ? "clear" : "default:" + fallback; + } + private boolean isPipeline(Map req, String apiId, String typeName, String fieldName) { Object kind = req.get("kind"); diff --git a/src/test/java/io/github/hectorvent/floci/services/cloudformation/CfnDropPolicyTable.java b/src/test/java/io/github/hectorvent/floci/services/cloudformation/CfnDropPolicyTable.java new file mode 100644 index 0000000000..17fb2068fa --- /dev/null +++ b/src/test/java/io/github/hectorvent/floci/services/cloudformation/CfnDropPolicyTable.java @@ -0,0 +1,80 @@ +package io.github.hectorvent.floci.services.cloudformation; + +import java.io.IOException; +import java.io.UncheckedIOException; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.List; +import java.util.Map; +import java.util.TreeMap; + +/** + * The committed {@code drop-policy.tsv}: what an update does with a property the previous template + * declared and the new one drops, one row per writable property that a provisioner arm calling + * {@code ProvisionContext.droppedProperties} reads. Shared by {@link CfnSchemaCoverageTest}, which + * checks the rows against the sources, and by the AppSync provisioner test, which checks them + * against {@code AppSyncCfnProvisioner.dropPolicy}. + * + *

Columns, tab separated, no header: type, property, policy, and an optional reason. A policy is + * {@code clear}, {@code default:}, {@code keep:} or {@code create-only}. {@code create-only} + * marks a create-only property: a drop is skipped or refused, never cleared. + */ +public final class CfnDropPolicyTable { + + public static final Path FILE = Path.of("src/test/resources/cloudformation/drop-policy.tsv"); + + /** One row: the policy as written, and the optional fourth column. */ + public record Row(String policy, String reason) { + + /** {@code clear}, {@code default}, {@code keep} or {@code create-only}. */ + public String kind() { + int colon = policy.indexOf(':'); + return colon < 0 ? policy : policy.substring(0, colon); + } + + /** The text after the colon of {@code default:} and {@code keep:}, empty otherwise. */ + public String detail() { + int colon = policy.indexOf(':'); + return colon < 0 ? "" : policy.substring(colon + 1); + } + } + + private CfnDropPolicyTable() { + } + + /** "type<TAB>property" to its row. */ + public static Map load() { + try { + return parse(Files.readAllLines(FILE, StandardCharsets.UTF_8)); + } catch (IOException e) { + throw new UncheckedIOException("Cannot read " + FILE, e); + } + } + + /** A repeated key, a wrong field count or an unknown policy is refused with the line named. */ + public static Map parse(List lines) { + Map rows = new TreeMap<>(); + for (String line : lines) { + if (line.isBlank()) { + continue; + } + String[] parts = line.split("\t", -1); + if (parts.length < 3 || parts.length > 4) { + throw new AssertionError("Expected 'typepropertypolicy[reason]' in " + FILE + + " but found: " + line); + } + Row row = new Row(parts[2], parts.length == 4 ? parts[3] : ""); + if (!List.of("clear", "default", "keep", "create-only").contains(row.kind())) { + throw new AssertionError("Unknown policy '" + parts[2] + "' in " + FILE + ": " + line + + ". Use clear, default:, keep: or create-only."); + } + String key = parts[0] + "\t" + parts[1]; + if (rows.put(key, row) != null) { + throw new AssertionError("Two rows for " + parts[0] + " " + parts[1] + " in " + FILE + + "; the later would replace the earlier."); + } + } + return rows; + } +} diff --git a/src/test/java/io/github/hectorvent/floci/services/cloudformation/CfnSchemaCoverageTest.java b/src/test/java/io/github/hectorvent/floci/services/cloudformation/CfnSchemaCoverageTest.java index 145bbda3de..22b1c835f1 100644 --- a/src/test/java/io/github/hectorvent/floci/services/cloudformation/CfnSchemaCoverageTest.java +++ b/src/test/java/io/github/hectorvent/floci/services/cloudformation/CfnSchemaCoverageTest.java @@ -51,6 +51,12 @@ import static org.junit.jupiter.api.Assertions.assertTrue; *

Known limit: a property counts as read when its name appears as a literal in a read call or in * a helper's arguments in the type's reachable code, so the scan can credit a property that is not * applied. It is a ratchet on what the sources mention, not proof that a value takes effect. + * + *

The same scan pins {@code drop-policy.tsv}: one row for each writable property that an arm + * calling {@code droppedProperties} reads, saying what an update that drops it does. Only the + * presence of a row and the {@code create-only} rows are checked here; the AppSync values + * are checked against {@code AppSyncCfnProvisioner.dropPolicy} in {@code AppSyncCfnProvisionerTest}, + * and the EC2 values are not checked against the code. */ class CfnSchemaCoverageTest { @@ -141,6 +147,8 @@ class CfnSchemaCoverageTest { "requestBody(props, ctx)", "request(props, ctx)"); private static final String ALL_PROPERTIES = "*"; + /** A call that makes an arm decide what a dropped property means, see {@code drop-policy.tsv}. */ + private static final String DROPPED_PROPERTIES_CALL = "droppedProperties("; /** What the registry schemas declare for one resource type, see {@link #schemaSurface}. */ private record SchemaSurface(Set readOnly, Set writable) { } @@ -253,6 +261,84 @@ class CfnSchemaCoverageTest { } } + /** + * The drop-policy rows are the writable properties that the arms calling {@code droppedProperties} + * read, one row each, no more and no fewer. Same scan as the property gaps, so a provisioner that + * starts reading a property in such an arm, or a new arm that calls it, needs a row. + */ + @Test + void dropPolicyRowsMatchTheArmsThatCallDroppedProperties() { + assertSameLines(render(recordedDropPolicyKeys()), render(actualDropPolicyKeys()), + "The set of properties with a recorded drop policy changed.", + "(an arm that calls droppedProperties reads a property, or a new such arm arrived): " + + "add a row with its policy to " + CfnDropPolicyTable.FILE, + "(no longer read in an arm that calls droppedProperties): delete their rows from " + + CfnDropPolicyTable.FILE); + } + + @Test + void everyDropPolicyRowIsStillReal() { + Map actual = actualDropPolicyKeys(); + List stale = CfnDropPolicyTable.load().keySet().stream() + .filter(key -> !actual.containsKey(key)) + .sorted() + .toList(); + + if (!stale.isEmpty()) { + throw new AssertionError("These properties are no longer read by an arm that calls " + + "droppedProperties, so their rows in " + CfnDropPolicyTable.FILE + + " are stale and should be deleted: " + stale); + } + } + + @Test + void everyKeepPolicyNamesItsReason() { + List unexplained = CfnDropPolicyTable.load().entrySet().stream() + .filter(e -> "keep".equals(e.getValue().kind()) + && (e.getValue().detail().isBlank() || e.getValue().detail().startsWith("TODO"))) + .map(Map.Entry::getKey) + .sorted() + .toList(); + + if (!unexplained.isEmpty()) { + throw new AssertionError("A 'keep' policy in " + CfnDropPolicyTable.FILE + + " must say why the value stays, as keep:: " + unexplained); + } + } + + /** {@code create-only} is the class: a drop there is skipped or refused, never cleared. */ + @Test + void everyCreateOnlyPolicyIsACreateOnlyProperty() { + List wrong = CfnDropPolicyTable.load().entrySet().stream() + .filter(e -> "create-only".equals(e.getValue().kind())) + .map(Map.Entry::getKey) + .filter(key -> { + String[] parts = key.split("\t"); + return !CfnCreateOnlyProperties.isCreateOnly(parts[0], parts[1]); + }) + .sorted() + .toList(); + + if (!wrong.isEmpty()) { + throw new AssertionError("These 'create-only' rows in " + CfnDropPolicyTable.FILE + + " are not create-only in create-only-properties.json: " + wrong); + } + } + + @Test + void aDuplicateDropPolicyRowIsRefused() { + AssertionError e = assertThrows(AssertionError.class, () -> CfnDropPolicyTable.parse(List.of( + "AWS::EC2::Subnet\tTags\tclear", "AWS::EC2::Subnet\tTags\tclear"))); + assertTrue(e.getMessage().contains("AWS::EC2::Subnet Tags"), e.getMessage()); + } + + @Test + void anUnknownDropPolicyIsRefused() { + AssertionError e = assertThrows(AssertionError.class, + () -> CfnDropPolicyTable.parse(List.of("AWS::EC2::Subnet\tTags\tremove"))); + assertTrue(e.getMessage().contains("remove"), e.getMessage()); + } + /** An entry no provisioner contains credits nothing: a renamed helper must not leave it behind. */ @Test void everyWholesaleCallAndHelperReadStillOccursInAProvisioner() { @@ -348,6 +434,36 @@ class CfnSchemaCoverageTest { return gaps; } + /** "AWS::EC2::Subnet\tTags" for each row of {@code drop-policy.tsv}. */ + private static Map recordedDropPolicyKeys() { + Map keys = new TreeMap<>(); + CfnDropPolicyTable.load().keySet().forEach(key -> keys.put(key, "")); + return keys; + } + + /** + * The writable properties read by the arms whose reachable code calls {@code droppedProperties}, + * keyed as in {@link CfnDropPolicyTable}. + */ + private static Map actualDropPolicyKeys() { + Map scans = scanProvisioners(); + Map keys = new TreeMap<>(); + for (Map.Entry entry : inventory().entrySet()) { + String type = entry.getKey(); + ProvisionerScan scan = scans.get(entry.getValue()); + if (scan == null || !scan.reaches(type, DROPPED_PROPERTIES_CALL)) { + continue; + } + Set read = scan.propertiesReadBy(type); + for (String property : schemaWritableProperties(type)) { + if (read.contains(ALL_PROPERTIES) || read.contains(property)) { + keys.put(type + "\t" + property, ""); + } + } + } + return keys; + } + /** The gaps computed from the schemas and the provisioner sources, keyed the same way. */ private static Map actualGaps() { Map scans = scanProvisioners(); @@ -432,6 +548,12 @@ class CfnSchemaCoverageTest { return read; } + /** Whether the code reachable from the type's arm contains {@code call}. */ + boolean reaches(String resourceType, String call) { + String code = codeByType.isEmpty() ? classCode : codeByType.get(resourceType); + return code != null && code.contains(call); + } + Set attributesFor(String resourceType) { if (byType.isEmpty()) { return classWide; diff --git a/src/test/java/io/github/hectorvent/floci/services/cloudformation/provisioners/AppSyncCfnProvisionerTest.java b/src/test/java/io/github/hectorvent/floci/services/cloudformation/provisioners/AppSyncCfnProvisionerTest.java index 5410cf0c24..04917eaddc 100644 --- a/src/test/java/io/github/hectorvent/floci/services/cloudformation/provisioners/AppSyncCfnProvisionerTest.java +++ b/src/test/java/io/github/hectorvent/floci/services/cloudformation/provisioners/AppSyncCfnProvisionerTest.java @@ -16,6 +16,7 @@ import io.github.hectorvent.floci.services.appsync.model.Resolver; import io.github.hectorvent.floci.services.appsync.model.ResolverKind; import io.github.hectorvent.floci.services.appsync.model.SchemaCreationStatus; import io.github.hectorvent.floci.services.appsync.model.SchemaCreationStatusType; +import io.github.hectorvent.floci.services.cloudformation.CfnDropPolicyTable; import io.github.hectorvent.floci.services.cloudformation.CloudFormationTemplateEngine; import io.github.hectorvent.floci.services.cloudformation.model.StackResource; import org.junit.jupiter.api.Test; @@ -26,6 +27,7 @@ import java.time.Clock; import java.time.Duration; import java.time.Instant; import java.time.ZoneOffset; +import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -1517,4 +1519,30 @@ class AppSyncCfnProvisionerTest { "AWS::AppSync::Resolver", "AWS::AppSync::ApiKey"), provisioner.resourceTypes()); } + + /** + * The AppSync rows of drop-policy.tsv are what {@code clearDropped} acts on. A {@code keep} row + * carries its reason after the colon, which the accessor does not repeat. + */ + @Test + void appSyncDropPolicyRowsMatchWhatClearDroppedActsOn() { + List mismatched = new ArrayList<>(); + int checked = 0; + for (Map.Entry entry : CfnDropPolicyTable.load().entrySet()) { + String[] key = entry.getKey().split("\t"); + if (!key[0].startsWith("AWS::AppSync::")) { + continue; + } + checked++; + CfnDropPolicyTable.Row row = entry.getValue(); + String expected = AppSyncCfnProvisioner.dropPolicy(key[0], key[1]); + String recorded = "keep".equals(row.kind()) ? "keep" : row.policy(); + if (!expected.equals(recorded)) { + mismatched.add(key[0] + " " + key[1] + ": file says " + row.policy() + ", code says " + expected); + } + } + assertTrue(checked > 0, "no AppSync rows in " + CfnDropPolicyTable.FILE); + assertTrue(mismatched.isEmpty(), "Rows in " + CfnDropPolicyTable.FILE + + " that differ from AppSyncCfnProvisioner.dropPolicy: " + mismatched); + } } diff --git a/src/test/resources/cloudformation/drop-policy.tsv b/src/test/resources/cloudformation/drop-policy.tsv new file mode 100644 index 0000000000..bdf57e2cf3 --- /dev/null +++ b/src/test/resources/cloudformation/drop-policy.tsv @@ -0,0 +1,87 @@ +AWS::AppSync::ApiKey ApiId create-only +AWS::AppSync::ApiKey Description clear +AWS::AppSync::ApiKey Expires keep:the update parses a date, null is refused +AWS::AppSync::DataSource ApiId create-only +AWS::AppSync::DataSource Description clear +AWS::AppSync::DataSource DynamoDBConfig clear +AWS::AppSync::DataSource EventBridgeConfig clear +AWS::AppSync::DataSource HttpConfig clear +AWS::AppSync::DataSource LambdaConfig clear +AWS::AppSync::DataSource MetricsConfig clear not stored by the service +AWS::AppSync::DataSource Name keep:prior name is reused +AWS::AppSync::DataSource OpenSearchServiceConfig clear +AWS::AppSync::DataSource RelationalDatabaseConfig clear +AWS::AppSync::DataSource ServiceRoleArn clear +AWS::AppSync::DataSource Type keep:required +AWS::AppSync::FunctionConfiguration ApiId create-only +AWS::AppSync::FunctionConfiguration Code clear +AWS::AppSync::FunctionConfiguration CodeS3Location clear not stored by the service; the provisioner refuses a value +AWS::AppSync::FunctionConfiguration DataSourceName keep:required +AWS::AppSync::FunctionConfiguration Description clear +AWS::AppSync::FunctionConfiguration FunctionVersion default:2018-05-29 +AWS::AppSync::FunctionConfiguration MaxBatchSize clear +AWS::AppSync::FunctionConfiguration Name keep:prior name is reused +AWS::AppSync::FunctionConfiguration RequestMappingTemplate clear +AWS::AppSync::FunctionConfiguration RequestMappingTemplateS3Location clear not stored by the service +AWS::AppSync::FunctionConfiguration ResponseMappingTemplate clear +AWS::AppSync::FunctionConfiguration ResponseMappingTemplateS3Location clear not stored by the service +AWS::AppSync::FunctionConfiguration Runtime clear +AWS::AppSync::FunctionConfiguration SyncConfig clear not stored by the service +AWS::AppSync::GraphQLApi AdditionalAuthenticationProviders default:[] +AWS::AppSync::GraphQLApi ApiType keep:the provisioner leaves it out of the update, so the stored value stays +AWS::AppSync::GraphQLApi AuthenticationType keep:required +AWS::AppSync::GraphQLApi EnhancedMetricsConfig clear +AWS::AppSync::GraphQLApi EnvironmentVariables clear an update also clears it when the stack never declared it, so a value set outside the stack is lost +AWS::AppSync::GraphQLApi IntrospectionConfig clear +AWS::AppSync::GraphQLApi LambdaAuthorizerConfig clear +AWS::AppSync::GraphQLApi LogConfig clear +AWS::AppSync::GraphQLApi MergedApiExecutionRoleArn clear +AWS::AppSync::GraphQLApi Name default:generated name +AWS::AppSync::GraphQLApi OpenIDConnectConfig clear +AWS::AppSync::GraphQLApi OwnerContact clear +AWS::AppSync::GraphQLApi QueryDepthLimit clear +AWS::AppSync::GraphQLApi ResolverCountLimit clear +AWS::AppSync::GraphQLApi Tags clear an update also clears it when the stack never declared it, so a value set outside the stack is lost +AWS::AppSync::GraphQLApi UserPoolConfig clear +AWS::AppSync::GraphQLApi Visibility keep:the provisioner leaves it out of the update, so the stored value stays +AWS::AppSync::GraphQLApi XrayEnabled default:false +AWS::AppSync::Resolver ApiId create-only +AWS::AppSync::Resolver CachingConfig clear +AWS::AppSync::Resolver Code clear +AWS::AppSync::Resolver CodeS3Location clear not stored by the service; the provisioner refuses a value +AWS::AppSync::Resolver DataSourceName keep:required for a UNIT resolver, cleared only for a PIPELINE resolver +AWS::AppSync::Resolver FieldName create-only +AWS::AppSync::Resolver Kind default:UNIT +AWS::AppSync::Resolver MaxBatchSize clear +AWS::AppSync::Resolver MetricsConfig clear +AWS::AppSync::Resolver PipelineConfig clear +AWS::AppSync::Resolver RequestMappingTemplate clear +AWS::AppSync::Resolver RequestMappingTemplateS3Location clear not stored by the service +AWS::AppSync::Resolver ResponseMappingTemplate clear +AWS::AppSync::Resolver ResponseMappingTemplateS3Location clear not stored by the service +AWS::AppSync::Resolver Runtime clear +AWS::AppSync::Resolver SyncConfig clear +AWS::AppSync::Resolver TypeName create-only +AWS::EC2::EIP Tags clear +AWS::EC2::InternetGateway Tags clear +AWS::EC2::NatGateway AllocationId create-only a drop is refused for a public gateway +AWS::EC2::NatGateway AvailabilityMode create-only a drop is accepted and skipped +AWS::EC2::NatGateway ConnectivityType create-only a drop reads as public, so a private gateway is replaced +AWS::EC2::NatGateway PrivateIpAddress keep:a drop keeps the address the gateway holds +AWS::EC2::NatGateway SecondaryAllocationIds clear an update also clears it when the stack never declared it, so a value set outside the stack is lost +AWS::EC2::NatGateway SecondaryPrivateIpAddressCount clear an update also clears it when the stack never declared it, so a value set outside the stack is lost +AWS::EC2::NatGateway SecondaryPrivateIpAddresses clear an update also clears it when the stack never declared it, so a value set outside the stack is lost +AWS::EC2::NatGateway SubnetId create-only a drop is refused +AWS::EC2::NatGateway Tags clear +AWS::EC2::PrefixList AddressFamily keep:required, a drop is refused +AWS::EC2::PrefixList Entries clear +AWS::EC2::PrefixList MaxEntries keep:an update that leaves it out keeps the list capacity +AWS::EC2::PrefixList PrefixListName keep:required, a drop is refused +AWS::EC2::PrefixList Tags clear +AWS::EC2::RouteTable Tags clear +AWS::EC2::RouteTable VpcId create-only a drop is refused +AWS::EC2::Subnet AvailabilityZone create-only a drop is read as no preference and the subnet is kept +AWS::EC2::Subnet CidrBlock create-only a drop never matches the stored block, so the subnet is replaced +AWS::EC2::Subnet MapPublicIpOnLaunch default:false +AWS::EC2::Subnet Tags clear +AWS::EC2::Subnet VpcId create-only a drop is refused