Skip to content

Commit 447e339

Browse files
refactor(schema): remove unused writeOnly, persist, nonprovisionable annotations
Remove annotations that are declared in the formae schema but never used: - writeOnly: Extensively set but never checked in formae agent - persist: Set in PKL but never checked in Go code - nonprovisionable: Only printed in dev CLI, no logic depends on it This cleanup prepares for the corresponding formae schema change that removes these fields entirely.
1 parent 4fa915d commit 447e339

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+69
-152
lines changed

schema/pkl/apigateway/apikey.pkl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ open class ApiKey extends formae.Resource {
4646

4747
@aws.FieldHint{
4848
createOnly = true
49-
writeOnly = true
5049
}
5150
generateDistinctId: Boolean?
5251

schema/pkl/apigateway/deployment.pkl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ open class Deployment extends formae.Resource {
8383

8484
@aws.FieldHint{
8585
createOnly = true
86-
writeOnly = true
8786
}
8887
deploymentCanarySettings: CanarySetting?
8988

@@ -95,13 +94,11 @@ open class Deployment extends formae.Resource {
9594

9695
@aws.FieldHint{
9796
createOnly = true
98-
writeOnly = true
9997
}
10098
stageDescription: StageDescription?
10199

102100
@aws.FieldHint{
103101
createOnly = true
104-
writeOnly = true
105102
}
106103
stageName: String?
107104

schema/pkl/apigateway/restapi.pkl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,16 @@ open class RestApi extends formae.Resource {
5757

5858
@aws.FieldHint{
5959
createOnly = true
60-
writeOnly = true
6160
}
6261
body: Dynamic?
6362

6463
@aws.FieldHint{
6564
createOnly = true
66-
writeOnly = true
6765
}
6866
bodyS3Location: BodyS3Location?
6967

7068
@aws.FieldHint{
7169
createOnly = true
72-
writeOnly = true
7370
}
7471
cloneFrom: String?
7572

@@ -83,23 +80,20 @@ open class RestApi extends formae.Resource {
8380
endpointConfiguration: EndpointConfiguration?
8481

8582
@aws.FieldHint{
86-
writeOnly = true
8783
}
8884
failOnWarnings: Boolean?
8985

9086
@aws.FieldHint
9187
minimumCompressionSize: Int?
9288

9389
@aws.FieldHint{
94-
writeOnly = true
9590
}
9691
mode: String?
9792

9893
@aws.FieldHint
9994
name: String?
10095

10196
@aws.FieldHint{
102-
writeOnly = true
10397
}
10498
parameters: Mapping<String, Any>?
10599

schema/pkl/dynamodb/globaltable.pkl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ open class AttributeDefinition extends formae.SubResource {
2121
open class CapacityAutoScalingSettings extends formae.SubResource {
2222
maxCapacity: Int
2323
minCapacity: Int
24-
@aws.FieldHint{writeOnly = true}
24+
@aws.FieldHint{}
2525
seedCapacity: Int?
2626
targetTrackingScalingPolicyConfiguration: TargetTrackingScalingPolicyConfiguration
2727
}

schema/pkl/dynamodb/table.pkl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ open class Table extends formae.Resource {
160160

161161
@aws.FieldHint{
162162
createOnly = true
163-
writeOnly = true
164163
}
165164
importSourceSpecification: ImportSourceSpecification?
166165

schema/pkl/ec2/capacityreservation.pkl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ open class CapacityReservation extends formae.Resource {
6767
@aws.FieldHint
6868
tenancy: String?
6969

70-
@aws.FieldHint{writeOnly = true}
70+
@aws.FieldHint{}
7171
unusedReservationBillingOwnerId: String?
7272
}

schema/pkl/ec2/eip.pkl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ open class EIP extends formae.Resource {
3131

3232
@aws.FieldHint{
3333
createOnly = true
34-
writeOnly = true
3534
}
3635
address: String?
3736

@@ -43,7 +42,6 @@ open class EIP extends formae.Resource {
4342

4443
@aws.FieldHint{
4544
createOnly = true
46-
writeOnly = true
4745
}
4846
ipamPoolId: String?
4947

@@ -61,7 +59,6 @@ open class EIP extends formae.Resource {
6159

6260
@aws.FieldHint{
6361
createOnly = true
64-
writeOnly = true
6562
}
6663
transferAddress: String?
6764

schema/pkl/ec2/instance.pkl

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ open class BlockDeviceMapping extends formae.SubResource {
2424
deviceName: String
2525
ebs: EBS?
2626

27-
@aws.FieldHint{writeOnly = true}
27+
@aws.FieldHint{}
2828
noDevice: Dynamic?
2929

30-
@aws.FieldHint{writeOnly = true}
30+
@aws.FieldHint{}
3131
virtualName: String?
3232
}
3333

@@ -157,7 +157,7 @@ open class InstanceResolvable extends formae.Resolvable {
157157
}
158158
open class Instance extends formae.Resource {
159159

160-
@aws.FieldHint{writeOnly = true}
160+
@aws.FieldHint{}
161161
additionalInfo: String?
162162

163163
@aws.FieldHint
@@ -213,13 +213,11 @@ open class Instance extends formae.Resource {
213213

214214
@aws.FieldHint{
215215
createOnly = true
216-
writeOnly = true
217216
}
218217
ipv6AddressCount: Int?
219218

220219
@aws.FieldHint{
221220
createOnly = true
222-
writeOnly = true
223221
}
224222
ipv6Addresses: Listing<Ipv6Address>?
225223

@@ -231,7 +229,6 @@ open class Instance extends formae.Resource {
231229

232230
@aws.FieldHint{
233231
createOnly = true
234-
writeOnly = true
235232
}
236233
launchTemplate: Dynamic?
237234

@@ -253,7 +250,7 @@ open class Instance extends formae.Resource {
253250
@aws.FieldHint{createOnly = true}
254251
privateIpAddress: String?
255252

256-
@aws.FieldHint{writeOnly = true}
253+
@aws.FieldHint{}
257254
propagateTagsToVolumeOnCreation: Boolean?
258255

259256
@aws.FieldHint

schema/pkl/ec2/instanceconnectendpoint.pkl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ open class InstanceConnectEndpoint extends formae.Resource {
1919

2020
@aws.FieldHint{
2121
createOnly = true
22-
writeOnly = true
2322
}
2423
clientToken: String?
2524

schema/pkl/ec2/ipamallocation.pkl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ open class IPAMAllocation extends formae.Resource {
3030

3131
@aws.FieldHint{
3232
createOnly = true
33-
writeOnly = true
3433
}
3534
netmaskLength: Int?
3635
}

0 commit comments

Comments
 (0)