From 334f7ad6e66bc8d368603398abf1bf9aae3cc988 Mon Sep 17 00:00:00 2001 From: Priamo Germosen <6233424+pgermosen@users.noreply.github.com> Date: Fri, 20 Nov 2026 21:41:54 -0400 Subject: [PATCH] chore(cloudformation): resync the schema surface and create-only properties with AWS (#9123) AWS has changed resource schemas since the last sync, so the online drift check fails on every pull request that touches these files. `make cfn-schema-surface-sync` and `make cfn-create-only-sync` bring them back in line: - New writable properties: `JwtConfiguration` on `AWS::ApiGateway::Authorizer`, `HooksConfiguration` and `ResourceConfigurations` on `AWS::BedrockAgentCore::Runtime` and `AZAffinity` on `AWS::Route53::RecordSet`. None of their services models them, so each gets a row in `writable-property-gaps.tsv`, and the AgentCore runtime's two are warned about by name like its other unstored properties. - Create-only: `AWS::Route53::HealthCheck` adds `HealthCheckConfig/EndpointType`, and `AWS::S3Vectors::Index` narrows `MetadataConfiguration` to `MetadataConfiguration/NonFilterableMetadataKeys`, the only member Floci reads, so replacement is unchanged there. --- .../provisioners/BedrockAgentCoreCfnProvisioner.java | 9 +++++---- .../resources/cloudformation/create-only-properties.json | 5 +++-- .../cloudformation/CfnCreateOnlyPropertiesTest.java | 2 +- src/test/resources/cloudformation/schema-surface.tsv | 6 +++--- .../resources/cloudformation/writable-property-gaps.tsv | 4 ++++ 5 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/main/java/io/floci/aws/services/cloudformation/provisioners/BedrockAgentCoreCfnProvisioner.java b/src/main/java/io/floci/aws/services/cloudformation/provisioners/BedrockAgentCoreCfnProvisioner.java index 6dcc31f796..edfa38ef49 100644 --- a/src/main/java/io/floci/aws/services/cloudformation/provisioners/BedrockAgentCoreCfnProvisioner.java +++ b/src/main/java/io/floci/aws/services/cloudformation/provisioners/BedrockAgentCoreCfnProvisioner.java @@ -61,12 +61,13 @@ public class BedrockAgentCoreCfnProvisioner implements CfnResourceProvisioner { /** * Template properties the backing service does not store. The runtime's capacity provider, - * filesystems, lifecycle, platform version and request-header allowlist, and the memory's - * strategies, indexed keys, namespace keys and stream delivery have no representation in the - * emulated control plane; the endpoint model carries no tags. + * filesystems, hooks, lifecycle, platform version, request-header allowlist and resource + * configurations, and the memory's strategies, indexed keys, namespace keys and stream delivery + * have no representation in the emulated control plane; the endpoint model carries no tags. */ private static final Set RUNTIME_NOT_STORED = Set.of("CapacityProviderConfiguration", - "FilesystemConfigurations", "LifecycleConfiguration", "PlatformVersion", "RequestHeaderConfiguration"); + "FilesystemConfigurations", "HooksConfiguration", "LifecycleConfiguration", "PlatformVersion", + "RequestHeaderConfiguration", "ResourceConfigurations"); private static final Set RUNTIME_ENDPOINT_NOT_STORED = Set.of("Tags"); private static final Set MEMORY_NOT_STORED = Set.of("IndexedKeys", "MemoryStrategies", "NamespaceKeys", "StreamDeliveryResources"); diff --git a/src/main/resources/cloudformation/create-only-properties.json b/src/main/resources/cloudformation/create-only-properties.json index 96c6a0ad8f..d1e7dd4c4b 100644 --- a/src/main/resources/cloudformation/create-only-properties.json +++ b/src/main/resources/cloudformation/create-only-properties.json @@ -874,7 +874,8 @@ "AWS::Route53::HealthCheck": [ "HealthCheckConfig/Type", "HealthCheckConfig/MeasureLatency", - "HealthCheckConfig/RequestInterval" + "HealthCheckConfig/RequestInterval", + "HealthCheckConfig/EndpointType" ], "AWS::Route53::HostedZone": [ "Name", @@ -902,7 +903,7 @@ "DistanceMetric", "EncryptionConfiguration", "IndexName", - "MetadataConfiguration", + "MetadataConfiguration/NonFilterableMetadataKeys", "VectorBucketArn", "VectorBucketName" ], diff --git a/src/test/java/io/floci/aws/services/cloudformation/CfnCreateOnlyPropertiesTest.java b/src/test/java/io/floci/aws/services/cloudformation/CfnCreateOnlyPropertiesTest.java index a1e6895539..6ad6f5d28a 100644 --- a/src/test/java/io/floci/aws/services/cloudformation/CfnCreateOnlyPropertiesTest.java +++ b/src/test/java/io/floci/aws/services/cloudformation/CfnCreateOnlyPropertiesTest.java @@ -30,7 +30,7 @@ class CfnCreateOnlyPropertiesTest { @Test void s3VectorsCreateOnlyPropertiesMatchTheRegistrySchemas() { assertEquals(Set.of("DataType", "Dimension", "DistanceMetric", "EncryptionConfiguration", "IndexName", - "MetadataConfiguration", "VectorBucketArn", "VectorBucketName"), + "MetadataConfiguration/NonFilterableMetadataKeys", "VectorBucketArn", "VectorBucketName"), CfnCreateOnlyProperties.getCreateOnlyProperties("AWS::S3Vectors::Index")); assertEquals(Set.of("VectorBucketName", "EncryptionConfiguration"), CfnCreateOnlyProperties.getCreateOnlyProperties("AWS::S3Vectors::VectorBucket")); diff --git a/src/test/resources/cloudformation/schema-surface.tsv b/src/test/resources/cloudformation/schema-surface.tsv index 8d14719bff..476403812d 100644 --- a/src/test/resources/cloudformation/schema-surface.tsv +++ b/src/test/resources/cloudformation/schema-surface.tsv @@ -1,6 +1,6 @@ AWS::ApiGateway::Account Id CloudWatchRoleArn AWS::ApiGateway::ApiKey APIKeyId CustomerId,Description,Enabled,GenerateDistinctId,Name,StageKeys,Tags,Value -AWS::ApiGateway::Authorizer AuthorizerId AuthType,AuthorizerCredentials,AuthorizerResultTtlInSeconds,AuthorizerUri,IdentitySource,IdentityValidationExpression,Name,ProviderARNs,RestApiId,Type +AWS::ApiGateway::Authorizer AuthorizerId AuthType,AuthorizerCredentials,AuthorizerResultTtlInSeconds,AuthorizerUri,IdentitySource,IdentityValidationExpression,JwtConfiguration,Name,ProviderARNs,RestApiId,Type AWS::ApiGateway::BasePathMapping BasePath,DomainName,RestApiId,Stage AWS::ApiGateway::Deployment DeploymentId DeploymentCanarySettings,Description,RestApiId,StageDescription,StageName AWS::ApiGateway::DomainName DistributionDomainName,DistributionHostedZoneId,DomainNameArn,RegionalDomainName,RegionalHostedZoneId CertificateArn,DomainName,EndpointAccessMode,EndpointConfiguration,MutualTlsAuthentication,OwnershipVerificationCertificateArn,RegionalCertificateArn,RoutingMode,SecurityPolicy,Tags @@ -42,7 +42,7 @@ AWS::Batch::JobDefinition JobDefinitionArn ConsumableResourceProperties,Containe AWS::Batch::JobQueue JobQueueArn ComputeEnvironmentOrder,JobQueueName,JobQueueType,JobStateTimeLimitActions,Priority,SchedulingPolicyArn,ServiceEnvironmentOrder,State,Tags AWS::Bedrock::ApplicationInferenceProfile CreatedAt,InferenceProfileArn,InferenceProfileId,InferenceProfileIdentifier,Models,Status,Type,UpdatedAt Description,InferenceProfileName,ModelSource,Tags AWS::BedrockAgentCore::Memory CreatedAt,FailureReason,MemoryArn,MemoryId,Status,UpdatedAt Description,EncryptionKeyArn,EventExpiryDuration,IndexedKeys,MemoryExecutionRoleArn,MemoryStrategies,Name,NamespaceKeys,StreamDeliveryResources,Tags -AWS::BedrockAgentCore::Runtime AgentRuntimeArn,AgentRuntimeId,AgentRuntimeVersion,CreatedAt,FailureReason,LastUpdatedAt,Status,WorkloadIdentityDetails AgentRuntimeArtifact,AgentRuntimeName,AuthorizerConfiguration,CapacityProviderConfiguration,Description,EnvironmentVariables,FilesystemConfigurations,LifecycleConfiguration,NetworkConfiguration,PlatformVersion,ProtocolConfiguration,RequestHeaderConfiguration,RoleArn,Tags +AWS::BedrockAgentCore::Runtime AgentRuntimeArn,AgentRuntimeId,AgentRuntimeVersion,CreatedAt,FailureReason,LastUpdatedAt,Status,WorkloadIdentityDetails AgentRuntimeArtifact,AgentRuntimeName,AuthorizerConfiguration,CapacityProviderConfiguration,Description,EnvironmentVariables,FilesystemConfigurations,HooksConfiguration,LifecycleConfiguration,NetworkConfiguration,PlatformVersion,ProtocolConfiguration,RequestHeaderConfiguration,ResourceConfigurations,RoleArn,Tags AWS::BedrockAgentCore::RuntimeEndpoint AgentRuntimeArn,AgentRuntimeEndpointArn,CreatedAt,FailureReason,Id,LastUpdatedAt,LiveVersion,Status,TargetVersion AgentRuntimeId,AgentRuntimeVersion,Description,Name,Tags AWS::CertificateManager::Certificate CertificateArn CertificateAuthorityArn,CertificateExport,CertificateTransparencyLoggingPreference,DomainName,DomainValidationOptions,KeyAlgorithm,SubjectAlternativeNames,Tags,ValidationMethod AWS::CloudFormation::CustomResource Id ServiceTimeout,ServiceToken @@ -180,7 +180,7 @@ AWS::RedshiftServerless::Namespace Namespace AdminPasswordSecretKmsKeyId,AdminUs AWS::RedshiftServerless::Workgroup BaseCapacity,ConfigParameters,EnhancedVpcRouting,MaxCapacity,NamespaceName,Port,PricePerformanceTarget,PubliclyAccessible,RecoveryPointId,SecurityGroupIds,SnapshotArn,SnapshotName,SnapshotOwnerAccount,SubnetIds,Tags,TrackName,Workgroup,WorkgroupName AWS::Route53::HealthCheck HealthCheckId HealthCheckConfig,HealthCheckTags AWS::Route53::HostedZone Id,NameServers DelegationSetId,HostedZoneConfig,HostedZoneFeatures,HostedZoneTags,Name,QueryLoggingConfig,VPCs -AWS::Route53::RecordSet AliasTarget,CidrRoutingConfig,Comment,Failover,GeoLocation,HealthCheckId,HostedZoneId,HostedZoneName,MultiValueAnswer,Name,Region,ResourceRecords,SetIdentifier,TTL,Type,Weight +AWS::Route53::RecordSet AZAffinity,AliasTarget,CidrRoutingConfig,Comment,Failover,GeoLocation,HealthCheckId,HostedZoneId,HostedZoneName,MultiValueAnswer,Name,Region,ResourceRecords,SetIdentifier,TTL,Type,Weight AWS::Route53::RecordSetGroup Id Comment,HostedZoneId,HostedZoneName,RecordSets AWS::S3::Bucket Arn,DomainName,DualStackDomainName,RegionalDomainName,WebsiteURL AbacStatus,AccelerateConfiguration,AccessControl,AnalyticsConfigurations,BucketEncryption,BucketName,BucketNamePrefix,BucketNamespace,CorsConfiguration,IntelligentTieringConfigurations,InventoryConfigurations,LifecycleConfiguration,LoggingConfiguration,MetadataConfiguration,MetadataTableConfiguration,MetricsConfigurations,NotificationConfiguration,ObjectLockConfiguration,ObjectLockEnabled,OwnershipControls,PublicAccessBlockConfiguration,ReplicationConfiguration,Tags,VersioningConfiguration,WebsiteConfiguration AWS::S3::BucketPolicy Bucket,PolicyDocument diff --git a/src/test/resources/cloudformation/writable-property-gaps.tsv b/src/test/resources/cloudformation/writable-property-gaps.tsv index 4376c323fe..e9b187fa7d 100644 --- a/src/test/resources/cloudformation/writable-property-gaps.tsv +++ b/src/test/resources/cloudformation/writable-property-gaps.tsv @@ -2,6 +2,7 @@ AWS::ApiGateway::ApiKey StageKeys accepted and ignored, as the ApiGatewayApiKeyC AWS::ApiGateway::Authorizer AuthType accepted and ignored AWS::ApiGateway::Authorizer AuthorizerCredentials accepted and ignored AWS::ApiGateway::Authorizer IdentityValidationExpression accepted and ignored +AWS::ApiGateway::Authorizer JwtConfiguration accepted and ignored AWS::ApiGateway::Deployment DeploymentCanarySettings accepted and ignored AWS::ApiGateway::DomainName EndpointAccessMode accepted and ignored, as the ApiGatewayDomainCfnProvisioner javadoc records AWS::ApiGateway::DomainName MutualTlsAuthentication accepted and ignored, as the ApiGatewayDomainCfnProvisioner javadoc records @@ -120,9 +121,11 @@ AWS::BedrockAgentCore::Memory NamespaceKeys accepted and not stored, a warning i AWS::BedrockAgentCore::Memory StreamDeliveryResources accepted and not stored, a warning is logged AWS::BedrockAgentCore::Runtime CapacityProviderConfiguration accepted and not stored, a warning is logged AWS::BedrockAgentCore::Runtime FilesystemConfigurations accepted and not stored, a warning is logged +AWS::BedrockAgentCore::Runtime HooksConfiguration accepted and not stored, a warning is logged AWS::BedrockAgentCore::Runtime LifecycleConfiguration accepted and not stored, a warning is logged AWS::BedrockAgentCore::Runtime PlatformVersion accepted and not stored, a warning is logged AWS::BedrockAgentCore::Runtime RequestHeaderConfiguration accepted and not stored, a warning is logged +AWS::BedrockAgentCore::Runtime ResourceConfigurations accepted and not stored, a warning is logged AWS::BedrockAgentCore::RuntimeEndpoint Tags accepted and not stored, a warning is logged AWS::CertificateManager::Certificate CertificateAuthorityArn accepted and ignored AWS::CertificateManager::Certificate DomainValidationOptions accepted and ignored, as the AcmCfnProvisioner javadoc records @@ -593,6 +596,7 @@ AWS::RedshiftServerless::Workgroup SnapshotOwnerAccount documented as ignored (d AWS::RedshiftServerless::Workgroup Workgroup accepted and ignored AWS::Route53::HostedZone HostedZoneFeatures accepted and ignored AWS::Route53::HostedZone QueryLoggingConfig accepted and ignored +AWS::Route53::RecordSet AZAffinity accepted and ignored AWS::Route53::RecordSet CidrRoutingConfig accepted and ignored AWS::Route53::RecordSet Comment accepted and ignored AWS::Route53::RecordSet GeoLocation accepted and ignored